Module:If in category/doc: Difference between revisions
Appearance
Content deleted Content added
HouseBlaster (talk | contribs) calls an expensive function |
HouseBlaster (talk | contribs) improve doc |
||
Line 4: | Line 4: | ||
This module implements {{t|if in category}} |
This module implements {{t|if in category}} |
||
== Usage == |
== Usage == |
||
< |
<syntaxhighlight lang="wikitext" inline>{{if in category | [category] | [result if true] | [result if false] | page = [page] }}</syntaxhighlight> |
||
If {{para|page}} is omitted, the current page is used. If <strong>both</strong> the second <strong>and</strong> third unnamed parameters are omitted, the second unnamed parameter defaults to <samp>yes</samp>. |
If {{para|page}} is omitted, the current page is used. If <strong>both</strong> the second <strong>and</strong> third unnamed parameters are omitted, the second unnamed parameter defaults to <samp>yes</samp>. |
Revision as of 16:44, 5 September 2024
![]() | Due to a server limit of 500 "expensive parser function" calls (e.g. #ifexist:, PAGESIZE:, and PAGESINCATEGORY:), this module will only work properly if the page using it has not already exceeded the limit. When the limit is exceeded, the page using this template or module is categorised in Category:Pages with too many expensive parser function calls. (further information) |
This module implements {{if in category}}
Usage
{{if in category | [category] | [result if true] | [result if false] | page = [page] }}
If |page=
is omitted, the current page is used. If both the second and third unnamed parameters are omitted, the second unnamed parameter defaults to yes.