Difference between revisions of "Template:Traverse"

From PC-BSD Wiki
Jump to: navigation, search
 
(41 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}}}   <!-- The idea is to have a series of arrow spaced links with italic at "here" -->
+
|{{{1}}}={{#if:{{{1|}}}|{{i|{{#if:{{{t1|}}}|{{local|link={{{1}}}|{{{t1|}}}}}|{{local|link={{{1}}}}}}}}}}}{{#if:{{{2|}}}|{{rarr}}{{#if:{{{t2|}}}|{{local|link={{{2}}}|{{{t2|}}}}}|{{local|link={{{2}}}}}}}}}{{#if:{{{3|}}}|{{rarr}}{{#if:{{{t3|}}}|{{local|link={{{3}}}|{{{t3|}}}}}|{{local|link={{{3}}}}}}}}}{{#if:{{{4|}}}|{{rarr}}{{#if:{{{t4|}}}|{{local|link={{{4}}}|{{{t4|}}}}}|{{local|link={{{4}}}}}}}}}{{#if:{{{5|}}}|{{rarr}}{{#if:{{{t5|}}}|{{local|link={
| {{{1}}} = ''{{local|link={{{1}}}|{{{th|}}}}}''{{#if:{{{2|}}}|{{local|link={{{2}}}|{{{t2|}}}}}}}{{#if:{{{3|}}}|{{local|link={{{3}}}|{{{t3|}}}}}}}{{#if:{{{4|}}}|{{local|link={{{4}}}{{#if:{{{t4|}}}|{{!}}{{{t4}}}|}}}}}}{{#if:{{{5|}}}|{{local|link={{{5}}}{{#if:{{{t5|}}}|{{!}}{{{t5}}}|}}}}}}{{#if:{{{6|}}}|{{local|link={{{6}}}{{#if:{{{t6|}}}|{{!}}{{{t6}}}|}}}}}}{{#if:{{{7|}}}|{{local|link={{{7}}}{{#if:{{{t7|}}}|{{!}}{{{t7}}}|}}}}}}
+
{{5}}}|{{{t5|}}}}}|{{local|link={{{5}}}}}}}}}{{#if:{{{6|}}}|{{rarr}}{{#if:{{{t6|}}}|{{local|link={{{6}}}|{{{t6|}}}}}|{{local|link={{{6}}}}}}}}}{{#if:{{{7|}}}|{{rarr}}{{#if:{{{t7|}}}|{{local|link={{{7}}}|{{{t7|}}}}}|{{local|link={{{7}}}}}}}}}
 
+
|{{{2}}}={{#if:{{{1|}}}|{{#if:{{{t1|}}}|{{local|link={{{1}}}|{{{t1|}}}}}|{{local|link={{{1}}}}}}}}}{{#if:{{{2|}}}|{{rarr}}{{i|{{#if:{{{t2|}}}|{{local|link={{{2}}}|{{{t2|}}}}}|{{local|link={{{2}}}}}}}}}}}{{#if:{{{3|}}}|{{rarr}}{{#if:{{{t3|}}}|{{local|link={{{3}}}|{{{t3|}}}}}|{{local|link={{{3}}}}}}}}}{{#if:{{{4|}}}|{{rarr}}{{#if:{{{t4|}}}|{{local|link={{{4}}}|{{{t4|}}}}}|{{local|link={{{4}}}}}}}}}{{#if:{{{5|}}}|{{rarr}}{{#if:{{{t5|}}}|{{local|link={{{5}}}|{{{t5|}}}}}|{{local|link={{{5}}}}}}}}}{{#if:{{{6|}}}|{{rarr}}{{#if:{{{t6|}}}|{{local|link={{{6}}}|{{{t6|}}}}}|{{local|link={{{6}}}}}}}}}{{#if:{{{7|}}}|{{rarr}}{{#if:{{{t7|}}}|{{local|link={{{7}}}|{{{t7|}}}}}|{{local|link={{{7}}}}}}}}}
| {{{2}}} = 2{{local|link={{{1}}}   {{#if: {{{t1|}}}|{{!}}|}} {{{t1|}}}}}{{i|{{local|link={{{here}}}{{#if: {{{th|}}}|{{!}}|}} {{{th|}}}}}}}{{#if: {{{3|}}}|{{local|link={{{3}}}   {{#if: {{{t3|}}}|{{!}}|}} {{{t3|}}}}}}}{{#if: {{{4|}}}|{{local|link={{{4}}}   {{#if: {{{t4|}}}|{{!}}|}} {{{t4|}}}}}}}{{#if: {{{5|}}}|{{local|link={{{5}}}   {{#if: {{{t5|}}}|{{!}}|}} {{{t5|}}}}}}}{{#if: {{{6|}}}|{{local|link={{{6}}}   {{#if: {{{t6|}}}|{{!}}|}} {{{t6|}}}}}}}{{#if: {{{7|}}}|{{local|link={{{7}}}   {{#if: {{{t7|}}}|{{!}}|}} {{{t7|}}}}}}}
+
|{{{3}}}={{#if:{{{1|}}}|{{#if:{{{t1|}}}|{{local|link={{{1}}}|{{{t1|}}}}}|{{local|link={{{1}}}}}}}}}{{#if:{{{2|}}}|{{rarr}}{{#if:{{{t2|}}}|{{local|link={{{2}}}|{{{t2|}}}}}|{{local|link={{{2}}}}}}}}}{{#if:{{{3|}}}|{{rarr}}{{i|{{#if:{{{t3|}}}|{{local|link={{{3}}}|{{{t3|}}}}}|{{local|link={{{3}}}}}}}}}}}{{#if:{{{4|}}}|{{rarr}}{{#if:{{{t4|}}}|{{local|link={{{4}}}|{{{t4|}}}}}|{{local|link={{{4}}}}}}}}}{{#if:{{{5|}}}|{{rarr}}{{#if:{{{t5|}}}|{{local|link={{{5}}}|{{{t5|}}}}}|{{local|link={{{5}}}}}}}}}{{#if:{{{6|}}}|{{rarr}}{{#if:{{{t6|}}}|{{local|link={{{6}}}|{{{t6|}}}}}|{{local|link={{{6}}}}}}}}}{{#if:{{{7|}}}|{{rarr}}{{#if:{{{t7|}}}|{{local|link={{{7}}}|{{{t7|}}}}}|{{local|link={{{7}}}}}}}}}
| {{{3}}} = Error: Need to add levels
+
|{{{4}}}={{#if:{{{1|}}}|{{#if:{{{t1|}}}|{{local|link={{{1}}}|{{{t1|}}}}}|{{local|link={{{1}}}}}}}}}{{#if:{{{2|}}}|{{rarr}}{{#if:{{{t2|}}}|{{local|link={{{2}}}|{{{t2|}}}}}|{{local|link={{{2}}}}}}}}}{{#if:{{{3|}}}|{{rarr}}{{#if:{{{t3|}}}|{{local|link={{{3}}}|{{{t3|}}}}}|{{local|link={{{3}}}}}}}}}{{#if:{{{4|}}}|{{rarr}}{{i|{{#if:{{{t4|}}}|{{local|link={{{4}}}|{{{t4|}}}}}|{{local|link={{{4}}}}}}}}}}}{{#if:{{{5|}}}|{{rarr}}{{#if:{{{t5|}}}|{{local|link={{{5}}}|{{{t5|}}}}}|{{local|link={{{5}}}}}}}}}{{#if:{{{6|}}}|{{rarr}}{{#if:{{{t6|}}}|{{local|link={{{6}}}|{{{t6|}}}}}|{{local|link={{{6}}}}}}}}}{{#if:{{{7|}}}|{{rarr}}{{#if:{{{t7|}}}|{{local|link={{{7}}}|{{{t7|}}}}}|{{local|link={{{7}}}}}}}}}
 +
|{{{5}}}={{#if:{{{1|}}}|{{#if:{{{t1|}}}|{{local|link={{{1}}}|{{{t1|}}}}}|{{local|link={{{1}}}}}}}}}{{#if:{{{2|}}}|{{rarr}}{{#if:{{{t2|}}}|{{local|link={{{2}}}|{{{t2|}}}}}|{{local|link={{{2}}}}}}}}}{{#if:{{{3|}}}|{{rarr}}{{#if:{{{t3|}}}|{{local|link={{{3}}}|{{{t3|}}}}}|{{local|link={{{3}}}}}}}}}{{#if:{{{4|}}}|{{rarr}}{{#if:{{{t4|}}}|{{local|link={{{4}}}|{{{t4|}}}}}|{{local|link={{{4}}}}}}}}}{{#if:{{{5|}}}|{{rarr}}{{i|{{#if:{{{t5|}}}|{{local|link={{{
 +
5}}}|{{{t5|}}}}}|{{local|link={{{5}}}}}}}}}}}{{#if:{{{6|}}}|{{rarr}}{{#if:{{{t6|}}}|{{local|link={{{6}}}|{{{t6|}}}}}|{{local|link={{{6}}}}}}}}}{{#if:{{{7|}}}|{{rarr}}{{#if:{{{t7|}}}|{{local|link={{{7}}}|{{{t7|}}}}}|{{local|link={{{7}}}}}}}}}
 +
|{{{6}}}={{#if:{{{1|}}}|{{#if:{{{t1|}}}|{{local|link={{{1}}}|{{{t1|}}}}}|{{local|link={{{1}}}}}}}}}{{#if:{{{2|}}}|{{rarr}}{{#if:{{{t2|}}}|{{local|link={{{2}}}|{{{t2|}}}}}|{{local|link={{{2}}}}}}}}}{{#if:{{{3|}}}|{{rarr}}{{#if:{{{t3|}}}|{{local|link={{{3}}}|{{{t3|}}}}}|{{local|link={{{3}}}}}}}}}{{#if:{{{4|}}}|{{rarr}}{{#if:{{{t4|}}}|{{local|link={{{4}}}|{{{t4|}}}}}|{{local|link={{{4}}}}}}}}}{{#if:{{{5|}}}|{{rarr}}{{#if:{{{t5|}}}|{{local|link={{{5}}}
 +
|{{{t5|}}}}}|{{local|link={{{5}}}}}}}}}{{#if:{{{6|}}}|{{rarr}}{{i|{{#if:{{{t6|}}}|{{local|link={{{6}}}|{{{t6|}}}}}|{{local|link={{{6}}}}}}}}}}}{{#if:{{{7|}}}|{{rarr}}{{#if:{{{t7|}}}|{{local|link={{{7}}}|{{{t7|}}}}}|{{local|link={{{7}}}}}}}}}
 +
|{{{7}}}={{#if:{{{1|}}}|{{#if:{{{t1|}}}|{{local|link={{{1}}}|{{{t1|}}}}}|{{local|link={{{1}}}}}}}}}{{#if:{{{2|}}}|{{rarr}}{{#if:{{{t2|}}}|{{local|link={{{2}}}|{{{t2|}}}}}|{{local|link={{{2}}}}}}}}}{{#if:{{{3|}}}|{{rarr}}{{#if:{{{t3|}}}|{{local|link={{{3}}}|{{{t3|}}}}}|{{local|link={{{3}}}}}}}}}{{#if:{{{4|}}}|{{rarr}}{{#if:{{{t4|}}}|{{local|link={{{4}}}|{{{t4|}}}}}|{{local|link={{{4}}}}}}}}}{{#if:{{{5|}}}|{{rarr}}{{#if:{{{t5|}}}|{{local|link={{{5}}}
 +
|{{{t5|}}}}}|{{local|link={{{5}}}}}}}}}{{#if:{{{6|}}}|{{rarr}}{{#if:{{{t6|}}}|{{local|link={{{6}}}|{{{t6|}}}}}|{{local|link={{{6}}}}}}}}}{{#if:{{{7|}}}|{{rarr}}{{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: &#8594; &rarr;
 
[[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}} (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. This template is translation-friendly.
</noinclude>
+
[[category:templates]]</noinclude>[[category:Uses Traverse]]

Latest revision as of 14:28, 3 November 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. This template is translation-friendly.

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox