Difference between revisions of "Template:Traverse"

From PC-BSD Wiki
Jump to: navigation, search
(30 intermediate revisions by one user not shown)
Line 1: Line 1:
<includeonly><span class="traverse boldtxt" >
+
<includeonly><span class="traverse realtraverse">{{#switch: {{{here}}}
{{#switch: {{{here}}}
+
| {{{1}}} = {{#if:{{{1|}}}|{{i|{{#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}}} }} }} }}
| {{{1}}} = ''{{local|link={{{1}}}|{{{t1}}}}}''{{#if:{{{2|}}}|➜{{local|link={{{2}}}|{{{t2|}}}}}}}{{#if:{{{3|}}}|➜{{local|link={{{3}}}|{{{t3|}}}}}}}{{#if:{{{4|}}}|➜{{local|link={{{4}}}|{{{t4|}}}}}}}{{#if:{{{5|}}}|➜{{local|link={{{5}}}|{{{t5|}}}}}}}{{#if:{{{6|}}}|➜{{local|link={{{6}}}|{{{t6|}}}}}}}{{#if:{{{7|}}}|➜{{local|link={{{7}}}|{{{t7|}}}}}}}
+
| {{{2}}} = {{#if:{{{1|}}}|{{#if:{{{t1|}}}|{{local|link={{{1}}}|{{{t1|}}} }} |{{local|link={{{1}}} }} }} }}{{#if:{{{2|}}}|➜{{i|{{#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}}} }} }} }}
 +
| {{{3}}} = {{#if:{{{1|}}}|{{#if:{{{t1|}}}|{{local|link={{{1}}}|{{{t1|}}} }} |{{local|link={{{1}}} }} }} }}{{#if:{{{2|}}}|➜{{#if:{{{t2|}}}|{{local|link={{{2}}}|{{{t2|}}} }} |{{local|link={{{2}}} }} }} }}{{#if:{{{3|}}}|➜{{i|{{#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}}} }} }} }}
 +
| {{{4}}} = {{#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|}}}|➜{{i|{{#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}}} }} }} }}
 +
| {{{5}}} = {{#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|}}}|➜{{i|{{#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}}} }} }} }}
 +
| {{{6}}} = {{#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|}}}|➜{{i|{{#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|}}}|➜{{i|{{#if:{{{t7|}}}|{{local|link={{{7}}}|{{{t7|}}} }} |{{local|link={{{7}}} }} }} }}}}
 
| Error in <nowiki>{{Traverse}}</nowiki>
 
| Error in <nowiki>{{Traverse}}</nowiki>
}}</span></includeonly><noinclude><!-- {{#if: {{{th|}}}|{{!}}|}} -->
+
}}</span></includeonly><noinclude>
 
The basic concept is to turn this:
 
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|t1=Tasks}} (broken)<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/>
Well, the anchor is not causing troubles, something in the template or call to 'local' is causing the problem(s).
+
This will allow for up to a series of seven (7) links. Notice that ''alternate'' link text is handled by '''t3''' for the ''third'' from the left value, while '''here''' matches a specific bit of text (System manager) and is intended to be highlighted with italic. {{traverse|Control Panel|template:traverse|here=template:traverse}} This template is translation-friendly.
-->
+
[[category:templates]]</noinclude>[[category:Uses Traverse]]
</noinclude>
+

Revision as of 22:30, 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}}
This will allow for up to a series of seven (7) links. Notice that alternate link text is handled by t3 for the third from the left value, while here matches a specific bit of text (System manager) and is intended to be highlighted with italic. Control Panel → template:traverse This template is translation-friendly.

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox