Difference between revisions of "Template:!"
m (21 revisions from w:en:Template:!: template for use in drives) |
(Created page with "|<noinclude> this is a dummy-template to allow if-conditions in wiki tables. '''<nowiki>{!}</nowiki>''' replaces your '''<nowiki>|</nowiki>''' in #if: conditions. example: <...") |
||
Line 1: | Line 1: | ||
− | |<noinclude> | + | |<noinclude> |
+ | this is a dummy-template to allow if-conditions in wiki tables. | ||
+ | |||
+ | '''<nowiki>{!}</nowiki>''' replaces your '''<nowiki>|</nowiki>''' in #if: conditions. | ||
+ | |||
+ | example: | ||
+ | <pre> | ||
+ | {| | ||
+ | {{#if:{{{foobar|}}}| | ||
+ | {{!}}- | ||
+ | ! FooBar | ||
+ | {{!}} {{{foobar}}} | ||
+ | }} | ||
+ | |} | ||
+ | </pre> | ||
+ | for ''foobar="barfoo"'' this will result in: | ||
+ | <pre> | ||
+ | {| | ||
+ | |- | ||
+ | ! FooBar | ||
+ | | barfoo | ||
+ | |} | ||
+ | </pre> | ||
+ | </noinclude> |
Revision as of 17:46, 31 March 2012
| this is a dummy-template to allow if-conditions in wiki tables.
{!} replaces your | in #if: conditions.
example:
{| {{#if:{{{foobar|}}}| {{!}}- ! FooBar {{!}} {{{foobar}}} }} |}
for foobar="barfoo" this will result in:
{| |- ! FooBar | barfoo |}