Difference between revisions of "Template:Traverse"

From PC-BSD Wiki
Jump to: navigation, search
(fixed and localization is automated too)
Line 9: Line 9:
 
| {{{7}}} = {{#if:{{{1|}}}| {{#if:{{{t1|}}}|{{local|link={{{1}}}|{{{t1|}}} }} |{{local|link={{{1}}} }} }} }}{{#if:{{{2|}}}|➜{{#if:{{{t2|}}}|{{local|link={{{2}}}|{{{t2|}}} }} |{{local|link={{{2}}} }} }} }}{{#if:{{{3|}}}|➜{{#if:{{{t3|}}}|{{local|link={{{3}}}|{{{t3|}}} }} |{{local|link={{{3}}} }} }} }}{{#if:{{{4|}}}|➜{{#if:{{{t4|}}}|{{local|link={{{4}}}|{{{t4|}}} }} |{{local|link={{{4}}} }} }} }}{{#if:{{{5|}}}|➜{{#if:{{{t5|}}}|{{local|link={{{5}}}|{{{t5|}}} }} |{{local|link={{{5}}} }} }} }}{{#if:{{{6|}}}|➜{{#if:{{{t6|}}}|{{local|link={{{6}}}|{{{t6|}}} }} |{{local|link={{{6}}} }} }} }}''{{#if:{{{7|}}}|➜{{#if:{{{t7|}}}|{{local|link={{{7}}}|{{{t7|}}} }} |{{local|link={{{7}}} }} }} }}''
 
| {{{7}}} = {{#if:{{{1|}}}| {{#if:{{{t1|}}}|{{local|link={{{1}}}|{{{t1|}}} }} |{{local|link={{{1}}} }} }} }}{{#if:{{{2|}}}|➜{{#if:{{{t2|}}}|{{local|link={{{2}}}|{{{t2|}}} }} |{{local|link={{{2}}} }} }} }}{{#if:{{{3|}}}|➜{{#if:{{{t3|}}}|{{local|link={{{3}}}|{{{t3|}}} }} |{{local|link={{{3}}} }} }} }}{{#if:{{{4|}}}|➜{{#if:{{{t4|}}}|{{local|link={{{4}}}|{{{t4|}}} }} |{{local|link={{{4}}} }} }} }}{{#if:{{{5|}}}|➜{{#if:{{{t5|}}}|{{local|link={{{5}}}|{{{t5|}}} }} |{{local|link={{{5}}} }} }} }}{{#if:{{{6|}}}|➜{{#if:{{{t6|}}}|{{local|link={{{6}}}|{{{t6|}}} }} |{{local|link={{{6}}} }} }} }}''{{#if:{{{7|}}}|➜{{#if:{{{t7|}}}|{{local|link={{{7}}}|{{{t7|}}} }} |{{local|link={{{7}}} }} }} }}''
 
| Error in <nowiki>{{Traverse}}</nowiki>
 
| Error in <nowiki>{{Traverse}}</nowiki>
}}</span></includeonly><noinclude><!-- {{#if: {{getLang}}|{{:Translations:{{#titleparts: {{{2}}}|1|1}}/Page display title/{{getLang}}}}|{{{2}}}}} -->
+
}}</span></includeonly><noinclude>
The basic concept is to turn this:<!-- {{#if:{{t2|}}|{{local|link={{{2}}}|{{{t2|}}}}}|{{local|link={{{2}}}}}  -->
+
The basic concept is to turn this:
 
[[Control Panel]] ➜ [[System Manager]] ➜ [[System Manager#Install FreeBSD Source and Ports|Tasks]]<br/>
 
[[Control Panel]] ➜ [[System Manager]] ➜ [[System Manager#Install FreeBSD Source and Ports|Tasks]]<br/>
  
 
Into something more like this:
 
Into something more like this:
 
{{traverse|Control Panel|System Manager|System Manager#Install FreeBSD Source and Ports|here=Control Panel|t3=Tasks}} <br/>
 
{{traverse|Control Panel|System Manager|System Manager#Install FreeBSD Source and Ports|here=Control Panel|t3=Tasks}} <br/>
 
+
{{b|<nowiki>{{</nowiki>traverse{{!}}}}Control Panel|System Manager|System Manager#Install FreeBSD Source and Ports|here=Control Panel|t3=Tasks{{b|<nowiki>}}</nowiki>}}<br/>
This seems to be translation-friendly.
+
Notice that alternate link text is handled by '''t3''' for the ''third'' from the left value, while '''here''' is intended to be highlighted with italic.
 +
This template is translation-friendly.
 
</noinclude>
 
</noinclude>

Revision as of 05:49, 30 October 2013

The basic concept is to turn this: Control PanelSystem ManagerTasks

Into something more like this: Control Panel → System Manager → Tasks
{{traverse|Control Panel|System Manager|System Manager#Install FreeBSD Source and Ports|here=Control Panel|t3=Tasks}}
Notice that alternate link text is handled by t3 for the third from the left value, while here is intended to be highlighted with italic. This template is translation-friendly.

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox