Difference between revisions of "Template:Exists"

From Istaria Lexica

Line 1: Line 1:
<includeonly>{{#ifeq:{{anchorencode:{{lc:[[:{{{page|{{{1|defaultFalse}}}}}}]]}}}}|{{anchorencode:{{lc:{{:{{{page|{{{1|defaultFalse}}}}}}}}}}}}|{{{else|0}}}|{{{then|1}}}}}</includeonly><!-- <noinclude>{{Clr}}{{documentation}}[[Category:Templates]]</noinclude> -->
+
<includeonly>{{#ifeq:{{anchorencode:{{lc:[[:{{{page|{{{1|defaultFalse}}}}}}]]}}}}|{{anchorencode:{{lc:{{:{{{page|{{{1|defaultFalse}}}}}}}}}}}}|{{{else|0}}}|{{{then|1}}}}}</includeonly><noinclude>{{Clr}}{{documentation}}[[Category:Templates]]</noinclude>

Revision as of 08:58, 8 August 2022

Template documentation (for the template shown above, sometimes hidden or invisible)

Description[edit]

Checks for an article to be existent and returns something.


Syntax[edit]

{{Exists|page=Article Name|then=Output when exists (defaults to true)|else=Output when not exists}}

Examples[edit]

{{Exists|page=Captain Bortol Alvas|then=Article exists|else=Article does not exist}}
Visit Template:Exists/doc to edit this text. (How to: document correctly)