Template:Ifexist: Difference between revisions
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://...' |
mNo edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| 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] (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).