Jump to content

Module:If in category/doc: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
calls an expensive function
improve doc
Line 4: Line 4:
This module implements {{t|if in category}}
This module implements {{t|if in category}}
== Usage ==
== Usage ==
<code><nowiki>{{</nowiki>#invoke:If in category| ''main'' <nowiki>| [category] | [result if true] | [result if false] | page = [page] }}</nowiki></code>
<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

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.