Help us get to over 8,749 articles in 2024.
If you know of a magician not listed in MagicPedia, start a New Biography for them. Contact us at magicpediahelp@gmail.com
Difference between revisions of "Template:Exists"
From Magicpedia, the free online encyclopedia for magicians by magicians.
(Created page with "<includeonly>{{#ifeq:{{anchorencode:{{lc:[[:{{{page|{{{1|defaultFalse}}}}}}]]}}}}|{{anchorencode:{{lc:{{:{{{page|{{{1|defaultFalse}}}}}}}}}}}}|{{{else|0}}}|{{{then|1}}}}}</inc...") |
m |
||
Line 3: | Line 3: | ||
The full syntax for using it is: | The full syntax for using it is: | ||
− | + | <nowiki> | |
{{exists | page=page | then=result if page exists | else=result if page does not exist }} | {{exists | page=page | then=result if page exists | else=result if page does not exist }} | ||
+ | </nowiki> | ||
+ | |||
</noinclude> | </noinclude> |
Latest revision as of 18:32, 30 January 2015
This template tests whether a given page exists. It can be useful in view of the maximum number of #ifexist calls that can be used on a page. (However, in the case of frivolous use of #ifexist which was the reason for the limit, do not replace this use with frivolous use of this template!)
The full syntax for using it is: {{exists | page=page | then=result if page exists | else=result if page does not exist }}