Useful: Difference between revisions

From TV-Nihon
mNo edit summary
mNo edit summary
Line 2: Line 2:
<pre style="overflow:auto;">
<pre style="overflow:auto;">
  {{#if:x| p | q }} gives "p"  
  {{#if:x| p | q }} gives "p"  
{{#if:  {{{4}}}|[[{{{4}}}]]|'''N/A'''}}
</pre>
</pre>


http://www.mediawiki.org/wiki/Help:Extension:ParserFunctions#.23if
http://www.mediawiki.org/wiki/Help:Extension:ParserFunctions#.23if
==If Exist==
<pre style="overflow:auto;">
{{#ifexist: {{{{{1}}}/list|{{{2}}}}} Guests|[[{{{{{1}}}/list|{{{2}}}}} Guests|Guests]]<br>}}
</pre>
==Collapsible table==
{| class="wikitable sortable collapsible"
|-
|}

Revision as of 17:42, 10 December 2014

If Code

 {{#if:x| p | q }} gives "p" 

{{#if:  {{{4}}}|[[{{{4}}}]]|'''N/A'''}}

http://www.mediawiki.org/wiki/Help:Extension:ParserFunctions#.23if

If Exist

{{#ifexist: {{{{{1}}}/list|{{{2}}}}} Guests|[[{{{{{1}}}/list|{{{2}}}}} Guests|Guests]]<br>}}

Collapsible table