Content deleted Content added
TheDemon08 (talk | contribs) No edit summary Tag: 2017 source edit |
TheDemon08 (talk | contribs) No edit summary Tag: 2017 source edit |
||
Line 3: | Line 3: | ||
{{#ifexpr: {{#expr: {{#count: {{{1|}}} }} > 1}} | <!-- Check if there is a '#' key --> |
{{#ifexpr: {{#expr: {{#count: {{{1|}}} }} > 1}} | <!-- Check if there is a '#' key --> |
||
{{#ifexpr: {{#expr: {{#explode: {{{1|}}}|#|0}} != {{#explode: {{{1|}}}|#|1}} }} | <!-- Check if content before and after '#' key are different --> |
{{#ifexpr: {{#expr: {{#explode: {{{1|}}}|#|0}} != {{#explode: {{{1|}}}|#|1}} }} | <!-- Check if content before and after '#' key are different --> |
||
[[{{#explode: {{{1|}}}|#|0}} {{#explode: {{{1|}}}|#|1}}|{{{1}}}]] <!-- If different, display link --> |
[[{{#explode: {{{1|}}}|#|0}} {{#explode: {{{1|}}}|#|1}}|{{'#'}}{{#explode: {{{1|}}}|#|1}}]] <!-- If different, display link with '#' --> |
||
| <!-- Otherwise --> |
| <!-- Otherwise --> |
||
{{#explode: {{{1|}}}|#|1}} <!-- Display content after '#' key --> |
{{#explode: {{{1|}}}|#|1}} <!-- Display content after '#' key --> |
||
}} |
}} |
||
| <!-- If no '#' key --> |
| <!-- If no '#' key --> |
||
{{'#'}}{{#explode: {{{1|}}}|#|0}} <!-- Display '#' key --> |
|||
}} |
}} |
||
}} |
}} |