Difference between revisions of "Template:PathLinks"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
{{#if: | {{#if: | ||
{{#vardefine:s|{{#if:{{{1|}}}|{{{1| > }}}| > }}}} | {{#vardefine:s|{{#if:{{{1|}}}|{{{1| > }}}| > }}}} | ||
{{#vardefine: | {{#vardefine:1|{{#if:{{NAMESPACE}}|{{NAMESPACE}}:}}{{#explode:{{PAGENAME}}|/|0}}}} | ||
{{#vardefine:2|{{#explode:{{PAGENAME}}|/|1}}}} | {{#vardefine:2|{{#explode:{{PAGENAME}}|/|1}}}} | ||
{{#vardefine:3|{{#explode:{{PAGENAME}}|/|2}}}} | {{#vardefine:3|{{#explode:{{PAGENAME}}|/|2}}}} | ||
Line 8: | Line 7: | ||
{{#vardefine:5|{{#explode:{{PAGENAME}}|/|4}}}} | {{#vardefine:5|{{#explode:{{PAGENAME}}|/|4}}}} | ||
{{#vardefine:6|{{#explode:{{PAGENAME}}|/|5}}}} | {{#vardefine:6|{{#explode:{{PAGENAME}}|/|5}}}} | ||
}}[[ | }}[[{{#var:1}}]]{{#if: | ||
{{#var:2}}|{{#var:s}}[[ | {{#var:2}}|{{#var:s}}[[{{#var:1}}/{{#var:2}}|{{#var:2}}]]}}{{#if: | ||
{{#var:3}}|{{#var:s}}[[ | {{#var:3}}|{{#var:s}}[[{{#var:1}}/{{#var:2}}/{{#var:3}}|{{#var:3}}]]}}{{#if: | ||
{{#var:3}}|{{#var:s}}[[ | {{#var:3}}|{{#var:s}}[[{{#var:1}}/{{#var:2}}/{{#var:3}}/{{#var:4}}|{{#var:4}}]]}}{{#if: | ||
{{#var:3}}|{{#var:s}}[[ | {{#var:3}}|{{#var:s}}[[{{#var:1}}/{{#var:2}}/{{#var:3}}/{{#var:4}}/{{#var:5}}|{{#var:5}}]]}}{{#if: | ||
{{#var:3}}|{{#var:s}}[[ | {{#var:3}}|{{#var:s}}[[{{#var:1}}/{{#var:2}}/{{#var:3}}/{{#var:4}}/{{#var:5}}/{{#var:6}}|{{#var:6}}]]}} |