Difference between revisions of "Template:PathLinks"
Jump to navigation
Jump to search
m (multi-lang support) |
|||
(12 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{#vardefine:s|{{#if:{{{ | {{#if: | ||
{{#vardefine:e|{{#explode:{{ | {{#vardefine:s|{{#if:{{{s|}}}|{{{s| > }}}| > }}}} | ||
{{#var:e}}|{{#var:s}}[[{{#var:e}}]]}}{{#if: | {{#vardefine:r|{{#if:{{{1|}}}|{{{1|}}}|{{#if:{{#var:langbase}}|{{#var:langbase}}|{{PAGENAME}}}}}}}} | ||
{{#vardefine:e|{{#explode:{{ | {{#vardefine:e|{{#explode:{{#var:r}}|/|0}}}} | ||
{{#var:e}}|{{#var:s}}[[{{#var:e}}]]}}{{#if: | {{#vardefine:p|{{{n|{{#if:{{NAMESPACE}}|{{NAMESPACE}}:}}}}}{{#var:e}}}} | ||
{{#vardefine:e|{{#explode:{{ | }}[[{{#var:p}}{{#var:lang}}|{{#if:{{{f|}}}|{{#var:p}}|{{#var:e}}}}]]{{#if: | ||
{{#var:e}}|{{#var:s}}[[{{#var:e}}]]}}{{#if: | {{#vardefine:e|{{#explode:{{#var:r}}|/|1}}}} | ||
{{#vardefine:e|{{#explode:{{ | {{#vardefine:p|{{#var:p}}/{{#var:e}}}} | ||
{{#var:e}}|{{#var:s}}[[{{#var:e}}]]}}{{#if: | {{#var:e}}|{{#var:s}}[[{{#var:p}}{{#var:lang}}|{{#if:{{{f|}}}|{{#var:p}}|{{#var:e}}}}]]}}{{#if: | ||
{{#vardefine:e|{{#explode:{{ | {{#vardefine:e|{{#explode:{{#var:r}}|/|2}}}} | ||
{{#var:e}}|{{#var:s}}[[{{#var:e}}]]}} | {{#vardefine:p|{{#var:p}}/{{#var:e}}}} | ||
{{#var:e}}|{{#var:s}}[[{{#var:p}}{{#var:lang}}|{{#if:{{{f|}}}|{{#var:p}}|{{#var:e}}}}]]}}{{#if: | |||
{{#vardefine:e|{{#explode:{{#var:r}}|/|3}}}} | |||
{{#vardefine:p|{{#var:p}}/{{#var:e}}}} | |||
{{#var:e}}|{{#var:s}}[[{{#var:p}}{{#var:lang}}|{{#if:{{{f|}}}|{{#var:p}}|{{#var:e}}}}]]}}{{#if: | |||
{{#vardefine:e|{{#explode:{{#var:r}}|/|4}}}} | |||
{{#vardefine:p|{{#var:p}}/{{#var:e}}}} | |||
{{#var:e}}|{{#var:s}}[[{{#var:p}}{{#var:lang}}|{{#if:{{{f|}}}|{{#var:p}}|{{#var:e}}}}]]}}{{#if: | |||
{{#vardefine:e|{{#explode:{{#var:r}}|/|5}}}} | |||
{{#vardefine:p|{{#var:p}}/{{#var:e}}}} | |||
{{#var:e}}|{{#var:s}}[[{{#var:p}}{{#var:lang}}|{{#if:{{{f|}}}|{{#var:p}}|{{#var:e}}}}]]}} |