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 2: | Line 2: | ||
{{#if: {{{1|}}} | <!-- Check if input is not empty --> |
{{#if: {{{1|}}} | <!-- Check if input is not empty --> |
||
{{#ifexpr: {{#expr: {{#count: {{{1|}}} }} > 1}} | <!-- Check if there is a '#' key --> |
{{#ifexpr: {{#expr: {{#count: {{{1|}}} }} > 1}} | <!-- Check if there is a '#' key --> |
||
{{#expr: {{#explode: {{{1|}}}|#|1}} }} <!-- Display content after '#' key --> |
|||
[[{{#explode: {{{1|}}}|#|0}} {{#explode: {{{1|}}}|#|1}}|{{'#'}}{{#explode: {{{1|}}}|#|1}}]] <!-- If different, display link with '#' --> |
|||
| <!-- Otherwise --> |
|||
{{#explode: {{{1|}}}|#|1}} <!-- Display content after '#' key --> |
|||
}} |
|||
| <!-- If no '#' key --> |
| <!-- If no '#' key --> |
||
{{{1}}} <!-- Display input --> |
|||
}} |
}} |
||
}} |
}} |