Difference between revisions of "Template:Ifexist"
Jump to navigation
Jump to search
(Created page with '<includeonly><onlyinclude>{{#ifeq:{{:{{{1|}}}}}|[[:{{{1|}}}]]|{{{3|}}}|{{{2|}}}}}</onlyinclude></includeonly> This is a hack which provides the same functionality as the [http://...') |
(Warning about using with #vardefine teplates) |
||
Line 1: | Line 1: | ||
<includeonly><onlyinclude>{{#ifeq:{{:{{{1|}}}}}|[[:{{{1|}}}]]|{{{3|}}}|{{{2|}}}}}</onlyinclude></includeonly> | <includeonly><onlyinclude>{{#ifeq:{{:{{{1|}}}}}|[[:{{{1|}}}]]|{{{3|}}}|{{{2|}}}}}</onlyinclude></includeonly> | ||
This is a hack which provides the same functionality as the [http://www.mediawiki.org/wiki/Help:Extension:ParserFunctions#.23ifexist #ifexist] parser function. It is used to circumvent the [http://www.mediawiki.org/wiki/Manual:$wgExpensiveParserFunctionLimit limitation of expensive parser function calls]. Since this template might even be '''more''' resource expensive than the #ifexist function, it should generally be avoided to use it. | This is a hack which provides the same functionality as the [http://www.mediawiki.org/wiki/Help:Extension:ParserFunctions#.23ifexist #ifexist] parser function. It is used to circumvent the [http://www.mediawiki.org/wiki/Manual:$wgExpensiveParserFunctionLimit limitation of expensive parser function calls]. Since this template might even be '''more''' resource expensive than the #ifexist function, it should generally be avoided to use it. | ||
This template should not be used to check the existence of articles/templates that make use of [http://www.mediawiki.org/wiki/Extension:VariablesExtension Variables]. |
Revision as of 11:43, 27 March 2010
This is a hack which provides the same functionality as the #ifexist parser function. It is used to circumvent the limitation of expensive parser function calls. Since this template might even be more resource expensive than the #ifexist function, it should generally be avoided to use it.
This template should not be used to check the existence of articles/templates that make use of Variables.