Template:!
From Lolitics Wiki
Jump to navigationJump to searchA utility template that allows the pipe character '|' to be transcluded into places where it would otherwise screw up the formatting. (Usually in conditional parser statements that need to produce new cells for a table, because the pipe character required by the table would end the conditional clause.)
Template Usage[edit source]
{{!}} will produce '|' once the wikitext is parsed.
Thus this
{| |- |1 |2 |- {{#if:Yes|{{!}}3 {{!}}4|Nope}} |- |5 |6 |}
gives you this:
1 | 2 |
3 | 4 |
5 | 6 |
But without the template
{| |- |1 |2 |- {{#if:Yes||3 |4|Nope}} |- |5 |6 |}
the pipe characters break you out of the conditional and you get this:
1 | 2 |
5 | 6 |