Changes

Jump to navigation Jump to search
Use {{Documentation}}
{| class="wikitable"
! width="33%" | Code
! width="66%" | Result
<onlyinclude>
|-{{#if:{{{style-r|}}}|style="{{{style-r|}}}"}}
|style="white-space:nowrap; vertical-align:top;{{{style-l|}}}" |
&#123;&#123;<!--
-->{{#if:{{{s|}}}|subst:}}{{T|{{{1|example}}}|i=9}}<!--
-->{{#ifeq:{{{2|x}}}|{{{2|}}}|&#124;{{{2}}} }}<!--
-->{{#ifeq:{{{3|x}}}|{{{3|}}}|&#124;{{{3}}} }}<!--
-->{{#ifeq:{{{4|x}}}|{{{4|}}}|&#124;{{{4}}} }}<!--
-->{{#ifeq:{{{5|x}}}|{{{5|}}}|&#124;{{{5}}} }}<!--
-->{{#ifeq:{{{6|x}}}|{{{6|}}}|&#124;{{{6}}} }}<!--
-->{{#ifeq:{{{7|x}}}|{{{7|}}}|&#124;{{{7}}} }}<!--
-->{{#ifeq:{{{8|x}}}|{{{8|}}}|&#124;{{{8}}} }}<!--
-->{{#ifeq:{{{9|x}}}|{{{9|}}}|&#124;{{{9}}} }}<!--
-->{{#ifeq:{{{10|x}}}|{{{10|}}}|&#124;{{{10}}} }}<!--
-->{{#ifeq:{{{11|x}}}|{{{11|}}}|&#124;{{{11}}} }}<!--
-->{{#ifeq:{{{12|x}}}|{{{12|}}}|&#124;{{{12}}} }}<!--
-->{{#ifeq:{{{13|x}}}|{{{13|}}}|&#124;{{{13}}} }}<!--
-->{{#ifeq:{{{14|x}}}|{{{14|}}}|&#124;{{{14}}} }}<!--
-->{{#ifeq:{{{15|x}}}|{{{15|}}}|&#124;{{{15}}} }}<!--
-->&#125;&#125;
|{{#if:{{{example|}}}|{{{example}}}
|{{{{{1|example}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}<!--
-->|{{{6|}}}|{{{7|}}}|{{{8|}}}|{{{9|}}}|{{{10|}}}<!--
-->|{{{11|}}}|{{{12|}}}|{{{13|}}}|{{{14|}}}|{{{15|}}}}}}}<!--
-->{{#if:{{{col3|}}}|<td style="vertical-align:top">{{{col3}}}</td>}}<!--
-->{{#if:{{{eq|}}}|<td>{{#tag:nowiki|{{{eq}}}}}</td>}}</onlyinclude>
|}



{{Documentation|content=
'''T'''emplate e'''x'''ample '''row'''. This template is used inside tables to demonstrate other templates. The borders here are not part of the template. It's similar to {{tl|tlrow}} but doesn't include the extra links. It also handles empty parameters slightly different for the first column ("what to type" part) and the second column (result) can be overridden with <code>&#124;example=</code> to do perform the template directly in case it doesn't work correctly.

The following compares {{tlf|tlrow}} and {{tlf|txrow}} with and without using the <tt>example</tt> parameter. They are demonstrating {{tl|tlf}} and {{tl|tle}}, templates where empty parameters are not ignored. Only the last two rows display correctly.
<pre><nowiki>
{| class="wikitable"
! Code !! Result
{{tlrow|tlf|example|example_param1||example_param3}}
{{txrow|tlf|example|example_param1||example_param3}}
{{txrow|tle|example|example_param1||example_param3|example={{tle|t=example|example_param1||example_param3}}}}
{{txrow|tlf|example|example_param1||example_param3|example={{tlf|example|example_param1||example_param3}}}}
|}
</nowiki></pre>
;Gives<nowiki>:</nowiki>
{{(!}} class="wikitable"
! Code !! Result
{{tlrow|tlf|example|example_param1||example_param3}}
{{txrow|tlf|example|example_param1||example_param3}}
{{txrow|tle|example|example_param1||example_param3|example={{tle|t=example|example_param1||example_param3}}}}
{{txrow|tlf|example|example_param1||example_param3|example={{tlf|example|example_param1||example_param3}}}}
{{!)}}

{{Txrow/doc}}
}}
Anonymous user

Navigation menu