Difference between revisions of "Template:!-"

From SWG Utopia
Jump to navigation Jump to search
(Created page with "<onlyinclude>|-</onlyinclude><noinclude> This template is used as a method to embed a wikitable new_row when it appears inside a <nowiki>{{#if:</nowiki> or other structure th...")
 
m (Protected "Template:!-" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)) [cascading])
 
(No difference)

Latest revision as of 21:18, 9 November 2023

|-

This template is used as a method to embed a wikitable new_row when it appears inside a {{#if: or other structure that would become confused.

This would break because the #if thinks the |'s belong to it:

{{#if: condition |
{| width="100%"
| align="center" | some stuff
|-
| more stuff
|}
}}

but the following works.

{{#if: condition |
{{{!}} width="100%"
{{!}} align="center" {{!}} some stuff
{{!-}}
{{!}}  more stuff
{{!}}}
}}

Please notice that the }} closing the #if MUST be on it's own line!

See also: Template:!