Content added Content deleted
TheDemon08 (talk | contribs) No edit summary Tag: 2017 source edit |
TheDemon08 (talk | contribs) No edit summary Tag: 2017 source edit |
||
Line 1: | Line 1: | ||
<includeonly><i> |
<includeonly><i> |
||
{{#if: {{{1|}}} | <!-- Check if input is not empty --> |
{{#if: {{{1|}}} | <!-- Check if input is not empty --> |
||
{{# |
{{#if: {{#explode: {{{1|}}}|#|2}} | <!-- Check if there is a '#' key --> |
||
[[{{#explode: {{{1|}}}|#|1}}#{{#explode: {{{1|}}}|#|2}}|{{{1}}}]] <!-- Display link with '#' --> |
|||
[[{{#explode: {{{1|}}}|#|0}} {{#explode: {{{1|}}}|#|1}}|{{'#'}}{{#explode: {{{1|}}}|#|1}}]] <!-- If different, display link with '#' --> |
|||
| <!-- Otherwise --> |
|||
[[{{#explode: {{{1|}}}|#|0}}#{{#explode: {{{1|}}}|#|1}}]] <!-- Display link with '#' --> |
|||
}} |
|||
| <!-- If no '#' key --> |
| <!-- If no '#' key --> |
||
{{{1}}} <!-- Display input --> |
{{{1}}} <!-- Display input --> |