Useful: Difference between revisions

From TV-Nihon
mNo edit summary
mNo edit summary
Line 7: Line 7:


http://www.mediawiki.org/wiki/Help:Extension:ParserFunctions#.23if
http://www.mediawiki.org/wiki/Help:Extension:ParserFunctions#.23if
==If Equal==
<pre style="overflow:auto;">
{{#ifeq: string 1 | string 2 | value if identical | value if different }}
</pre>
==If Exist==
==If Exist==
<pre style="overflow:auto;">
<pre style="overflow:auto;">

Revision as of 23:14, 23 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 Equal

{{#ifeq: string 1 | string 2 | value if identical | value if different }}

If Exist

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

Collapsible table