Difference between revisions of "Template:Exists"

From Istaria Lexica

(Created page with "<includeonly>{{#if:{{{1|}}}|{{{2|true}}}|{{{3|}}}}}</includeonly><noinclude>{{Clr}}{{documentation}}Category:Templates</noinclude>")
 
Line 1: Line 1:
<includeonly>{{#if:{{{1|}}}|{{{2|true}}}|{{{3|}}}}}</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 12:09, 8 July 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)