More actions
Created page with "{{Module rating|protect}} {{doc sub}} {{Expensive}} <!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --> This module implements {{t|if in category}} == 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..." |
No edit summary |
||
Line 1: | Line 1: | ||
{{doc sub}} | {{doc sub}} | ||
{{Expensive}} | {{Expensive}} | ||
Line 11: | Line 10: | ||
<includeonly>{{Sandbox other|| | <includeonly>{{Sandbox other|| | ||
<!-- Categories below this line; interwikis at Wikidata --> | <!-- Categories below this line; interwikis at Wikidata --> | ||
[[Category:Modules]] | |||
}}</includeonly> | }}</includeonly> | ||
<noinclude> | <noinclude> | ||
[[Category:Module documentation pages]] | [[Category:Module documentation pages]] | ||
</noinclude> | </noinclude> |
Revision as of 22:50, 1 March 2025
This is a documentation subpage for Module:If in category. It may contain usage information, categories and other content that is not part of the original module page. |
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.