Difference between revisions of "Template:Diffusing subcategory"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
(Fix for empty parameter 2, tested with /sandbox and /testcases.)
imported>Zyxw
(Trim any leading or trailing spaces in parameter 1. Tested with /sandbox and /testcases.)
 
Line 1: Line 1:
 
{{Cmbox
 
{{Cmbox
 
| type=notice
 
| type=notice
| text=This is a '''[[Wikipedia:Categorization#Diffusing large categories|diffusing subcategory]]''' of [[:Category:{{{1}}}]].<br>Articles about {{#if:{{{2<includeonly>|</includeonly>}}}|{{{2}}}|{{PAGENAME}}}} in the parent category should be moved to this subcategory.
+
| text=This is a '''[[Wikipedia:Categorization#Diffusing large categories|diffusing subcategory]]''' of [[:Category:{{#if:1|{{{1}}}}}]].<br>Articles about {{#if:{{{2<includeonly>|</includeonly>}}}|{{{2}}}|{{PAGENAME}}}} in the parent category should be moved to this subcategory.
 
}}{{Single namespace|category}}<noinclude>
 
}}{{Single namespace|category}}<noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 19:40, 20 October 2018

Template documentation[view] [edit] [history] [purge]

See WP:DIFFUSE.

May be used in conjunction with {{Non-diffusing subcategory}}.

Usage

{{Diffusing subcategory|parent}}

{{Diffusing subcategory|parent|topic}}

Parameters

  1. parent (required) – the parent category (without the prefix "Category:")
  2. topic (optional) – replaces the name of the parent category in the second sentence

Examples

Usage in Category:Boxers from Pennsylvania:

{{Diffusing subcategory|Sportspeople from Pennsylvania}}
{{Diffusing subcategory|Sportspeople from Pennsylvania|boxers}}
{{Non-diffusing subcategory|American boxers|boxers}}

Template:Non-diffusing subcategory

Other category-header templates