Changes

574 bytes added ,  07:25, June 16, 2007
Documentation
Line 1: Line 1: −
{{#if:{{{2|}}}
+
<includeonly>{{#if:{{{2}}}
 
  |{{!}}-
 
  |{{!}}-
−
  {{!}}{{{1}}}{{!}}{{!}}[[{{{2}}}]]
+
  {{!}}{{{1}}}{{!}}{{!}}{{{2}}}
−
|<i></i>}}
+
|<i></i>}}</includeonly><noinclude>
 +
{{TemplateDoc|pages=Templates|purpose=Conditional table row|}}
 +
{{parms|
 +
{{parm|1|First column text|yes|}}
 +
{{parm|2|Second column text|yes|}}
 +
}}
 +
If parameter 2 is not empty, then the code for a table row (wiki syntax) with two columns is returned, else nothing is returned.
 +
 
 +
Example:
 +
 
 +
<pre><nowiki>{| class="wikitable"
 +
{{t row if|Provided:|{{{yes|yes}}}}}
 +
{{t row if|Not Provided:|{{{no|}}}}}
 +
|}</nowiki></pre>
 +
Displays as:
 +
 
 +
{| class="wikitable"
 +
{{t row if|Provided:|{{{yes|yes}}}}}
 +
{{t row if|Not Provided:|{{{no|}}}}}
 +
|}
 +
</noinclude>
nsTeam2RO, nsTeam2RW, nsTeam2_talkRO, nsTeam2_talkRW
13,254

edits