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