Template:Exist/doc: Difference between revisions

add drawbacks recently discovered by lucario and myself
No edit summary
(add drawbacks recently discovered by lucario and myself)
 
Line 31: Line 31:
*<code><nowiki>{{anchorencode:{{lc:{{help:qq w_x}}}}}}</nowiki></code> gives {{anchorencode:{{lc:{{help:qq w_x}}}}}}
*<code><nowiki>{{anchorencode:{{lc:{{help:qq w_x}}}}}}</nowiki></code> gives {{anchorencode:{{lc:{{help:qq w_x}}}}}}


Thus a false-positive for a non-existing page is avoided. A false-negative for an existing page is possible, but typically only for specially constructed examples.  
Thus a false-positive for a non-existing page is avoided. A false-negative for an existing page is possible, but typically only for specially constructed examples.
 
==Drawbacks==
*Because this template works off of transclusion, it invisibly includes the entire wikitext of any page being checked. This makes it an expensive template, possibly slower than #ifexist.
*Also because of transclusion, in certain situations this template can trigger MediaWiki's [[:Category:Pages with template loops|recursive loop warnings]]. This is harmless to page output, however it clutters the category with false positives, which can make it difficult to find legitimate warnings.


==See also==
==See also==
6,906

edits