Jump to content

Module:If in category/doc: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
beta is more accurate
Usage: expand
Line 3: Line 3:
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] | page = [page] }}</nowiki></code>
<code><nowiki>{{</nowiki>#invoke:If in category| ''main'' <nowiki>| [category] | [result if true] | [result if false] | page = [page] }}</nowiki></code>


If {{para|page}} is omitted, the current page is used.
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>.


<includeonly>{{Sandbox other||
<includeonly>{{Sandbox other||

Revision as of 16:06, 5 September 2024

This module implements {{if in category}}

Usage

{{#invoke:If in category| main | [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.