Difference between revisions of "Template:Exists"
From Istaria Lexica
(3 intermediate revisions by the same user not shown) | |||
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:Utility Templates]]</noinclude> |
Latest revision as of 19:48, 1 October 2022
Template documentation (for the template shown above, sometimes hidden or invisible)
Description[edit]
Checks for an article to be existent and returns something.
- Try out this template in your sandbox
- Find pages using this template
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)