Difference between revisions of "Template:!"

From Technologia Incognita
Jump to: navigation, search
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>[[Category:Workaround templates|{{PAGENAME}}]]</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 18: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
|}