Difference between revisions of "Template:Container category/doc"

From blackwiki
Jump to navigation Jump to search
imported>Sardanaphalus
(→‎rhs: update)
imported>Sardanaphalus
Line 14: Line 14:
 
Use <code><nowiki>{{Container category |</nowiki>''right-aligned content''}}</code> to place right-aligned content&nbsp;– such as {{tl|portal}} (to provide a link or links to related portal or portals) and/or {{tl|Commons category}} (to provide a link to the same or a similarly-named category at the Commons)&nbsp;– beside the template. If more than one box is included, ensure the widest one appears first, otherwise overlapping may occur.
 
Use <code><nowiki>{{Container category |</nowiki>''right-aligned content''}}</code> to place right-aligned content&nbsp;– such as {{tl|portal}} (to provide a link or links to related portal or portals) and/or {{tl|Commons category}} (to provide a link to the same or a similarly-named category at the Commons)&nbsp;– beside the template. If more than one box is included, ensure the widest one appears first, otherwise overlapping may occur.
 
{{Hidden begin |showhide=left |title={{bigger|Example}} |bodystyle=font-size:105%;}}
 
{{Hidden begin |showhide=left |title={{bigger|Example}} |bodystyle=font-size:105%;}}
<code><nowiki>{{Container category |{{Commons category |writers}}}}</nowiki></code> produces:
+
<code><nowiki>{{Container category |{{Commons category|writers}}}}</nowiki></code> produces:
<div style="background:transparent;">{{Container category |{{Commons category |writers}}}}</div>
+
<div style="background:transparent;">{{Container category |{{Commons category|writers}}}}</div>
 
{{Hidden end}}
 
{{Hidden end}}
  

Revision as of 08:07, 8 July 2014

Usage

Tag categories with {{Container category}} to inform editors that they should not contain anything other than subcategories.

The categories will be added to Category:Container categories. If the template is transcluded on a page outside of the category namespace, the page will not be added to Category:Container categories.

Do not substitute this template.

Categories that are part of Wikipedia administration should be tagged with {{Wikipedia category}} instead.

Placing right-aligned content beside the template

Use {{Container category |right-aligned content}} to place right-aligned content – such as {{portal}} (to provide a link or links to related portal or portals) and/or {{Commons category}} (to provide a link to the same or a similarly-named category at the Commons) – beside the template. If more than one box is included, ensure the widest one appears first, otherwise overlapping may occur.

Example

{{Container category |{{Commons category|writers}}}} produces:

See also

  • {{Parent-only stub category}}, a similar template for use with stub categories.
  • {{Category diffuse}}, a notice for a category's page announcing that pages in the category should be reassigned to its subcategories.

Other category-header templates