Difference between revisions of "Template:Ifexist"
Jump to navigation
Jump to search
(Warning about using with #vardefine teplates) |
m |
||
Line 2: | Line 2: | ||
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]. | 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] (unless you want the side effect of the templates variables). |
Latest revision as of 00:30, 17 April 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 (unless you want the side effect of the templates variables).