Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:If in category/doc: Difference between revisions

From Kenshi Wiki
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:
{{Module rating|protect}}
{{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 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.

Contents