Difference between revisions of "Template:Exist"
(create template that should fix the #ifexist problem where it ends up as a wanted page) |
m (added category + some extra information) |
||
Line 1: | Line 1: | ||
− | <includeonly>{{#ifeq:{{anchorencode:{{lc:[[:{{{1|defaultFalse}}}]]}}}}|{{anchorencode:{{lc:{{:{{{1|defaultFalse}}}}}}}}}|{{{3|}}}|{{{2|}}}}}</includeonly><noinclude>Usage: | + | <includeonly>{{#ifeq:{{anchorencode:{{lc:[[:{{{1|defaultFalse}}}]]}}}}|{{anchorencode:{{lc:{{:{{{1|defaultFalse}}}}}}}}}|{{{3|}}}|{{{2|}}}}}</includeonly><noinclude> |
+ | This helper template will work the same way as the #ifexist parser function with the difference that it doesn't trigger a [[Special:WantedPages|'wanted page']] listing, which is typically something that you sometimes want to prevent in some cases (like check for a project image) | ||
+ | |||
+ | Usage: | ||
<pre>{{exists | page | result if page exists | result if page does not exist }}</pre> | <pre>{{exists | page | result if page exists | result if page does not exist }}</pre> | ||
</noinclude> | </noinclude> |
Revision as of 09:55, 21 October 2016
This helper template will work the same way as the #ifexist parser function with the difference that it doesn't trigger a 'wanted page' listing, which is typically something that you sometimes want to prevent in some cases (like check for a project image)
Usage:
{{exists | page | result if page exists | result if page does not exist }}