Difference between revisions of "Template:!"

From Technologia Incognita
Jump to: navigation, search
m (21 revisions from w:en:Template:!: template for use in drives)
 
m (1 revision: Mediawiki helpp-text import)
 
(One intermediate revision by one other user not shown)
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>

Latest revision as of 15:35, 18 January 2013

| 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
|}