Template:Template category: Difference between revisions
Appearance
Content deleted Content added
Fix template |
m Fix locally |
||
Line 10: | Line 10: | ||
|- valign="top" |
|- valign="top" |
||
| [[Image:Crochets modèle.png|Main Page trophy|{{#if:{{{small|}}}|30px|42px}}]] |
| [[Image:Crochets modèle.png|Main Page trophy|{{#if:{{{small|}}}|30px|42px}}]] |
||
| This [[m:Help:Category|category]] is a "template category". It is used to categorise pages which are in the [[w:template namespace|template namespace]]. The category is part of the [[{{SITENAME}}:About|{{SITENAME}}]] project infrastructure and should not be used to categorise pages belonging to other [[m:Help:Namespace|namespaces]], in particular project main namespace pages{{#ifeq:{{SITENAME}}|Wikipedia| such as '''articles'''}}. |
| This [[m:Help:Category|category]] is a "template category". It is used to categorise pages which are in the [[w:template namespace|template namespace]]. The category is part of the [[{{SITENAME}}:About|{{SITENAME}}]] project infrastructure and should not be used to categorise pages belonging to other [[m:Help:Namespace|namespaces]], in particular project main namespace pages{{#ifeq:{{SITENAME}}|Wikipedia| such as '''articles'''}}.<!--- |
||
----- |
|||
----><br /> <!--- For this namespace this is ---> {{#ifeq:Wikipedia|{{SITENAME}}|For this namespace [[:Category:{{SITENAME}} templates]] is the top (root level) template category.}}<!--- |
|||
The above line needs a 'General Solution Off Wikipedia' |
|||
----><br /> <!--- |
|||
----- |
----- |
||
----> |
----> |
||
Line 62: | Line 66: | ||
|Ver: K || Meta? || Next major change description ||<small>~~~~ </small> |
|Ver: K || Meta? || Next major change description ||<small>~~~~ </small> |
||
|- ----------------------------------------------- ---> |
|- ----------------------------------------------- ---> |
||
|- line-height="25% |
|||
|<hr> |
|||
|- |
|||
|Ver: J_a || Wikipedia ||(m) Iterim (Fix locally) rephrasing of last (Root Category) line -- The very divergent diversity issue again still needs solved||<small><b>[[User:Fabartus|Fra]]</b><font color="green">[[User talk:Fabartus|nkB]]</font> 15:55, 18 March 2007 (UTC) </small> |
|||
|- valign="top" |
|- valign="top" |
||
|Ver: J || Meta || Further interwikify, export to Meta, Add this table in several edits, re-export as new standard to all [[M:MP:TSP]] Sister Projects. ||<small><b>[[User:Fabartus|Fra]]</b><font color="green">[[User talk:Fabartus|nkB]]</font> 18:04, 13 March 2007 (UTC) </small> |
|Ver: J || Meta || Further interwikify, export to Meta, Add this table in several edits, re-export as new standard to all [[M:MP:TSP]] Sister Projects. ||<small><b>[[User:Fabartus|Fra]]</b><font color="green">[[User talk:Fabartus|nkB]]</font> 18:04, 13 March 2007 (UTC) </small> |
||
Line 72: | Line 80: | ||
|- |
|- |
||
|} |
|} |
||
<!--- Documentation: Cumulative change record prior to initializing version table: |
|||
# I3 16:59, 13 March 2007 Fabartus (Talk | contribs) (make small another 2% safer for closer zoom-ins by user/readers) |
|||
# I2(cur) (last) 03:45, 11 March 2007 Fabartus (Talk | contribs) m (lighten color a bit to improve contrast) |
|||
# I1 (cur) (last) 06:35, 7 March 2007 Fabartus (Talk | contribs) (small from width:70% to 67% which satisfies IE6 as well as firefox on medium font selected (Zoom level)) |
|||
# H6b (cur) (last) 21:36, 6 March 2007 Fabartus (Talk | contribs) (Revise out stray doubled single quotes... use OR logic for message, so same plc) |
|||
# H6a (cur) (last) 21:42, 26 February 2007 Mike Peel (Talk | contribs) (rv the rv, and fix (was caused by a missing "7")) |
|||
# (cur) (last) 21:29, 26 February 2007 Fabartus (Talk | contribs) m (Add if statement-- what ever you did Mike Peel, you broke the previously working version!!! See the talk! (Edit Conflict, so I see the breakage!!!)) |
|||
# H6 (cur) (last) 21:22, 26 February 2007 Mike Peel (Talk | contribs) (Simply template a bit, and make it look nicer.) |
|||
# H5 (cur) (last) 20:40, 26 February 2007 Fabartus (Talk | contribs) (fx OR Logic display) |
|||
# H4 (cur) (last) 20:16, 26 February 2007 Fabartus (Talk | contribs) (constrain lower hidden part as well, tidy up) |
|||
# H3 (cur) (last) 18:54, 26 February 2007 Fabartus (Talk | contribs) m (space) |
|||
# H2 (cur) (last) 18:51, 26 February 2007 Fabartus (Talk | contribs) (interwikify, add Nag usage for description) |
|||
# H (cur) (last) 15:07, 18 February 2007 Mike Peel (Talk | contribs) (Add "The top level category for this namespace is Category:Wikipedia templates.") |
|||
# (cur) (last) 19:24, 12 February 2007 16@r (Talk | contribs) m (links) |
|||
# (cur) (last) 19:05, 10 February 2007 David Kernow (Talk | contribs) m (rv previous) |
|||
# (cur) (last) 19:04, 10 February 2007 David Kernow (Talk | contribs) m (formatting correction) |
|||
# (cur) (last) 19:03, 10 February 2007 David Kernow (Talk | contribs) m (+<br/> to separate documentation from template a little more) |
|||
# (cur) (last) 19:02, 10 February 2007 David Kernow (Talk | contribs) (formatting) |
|||
# (cur) (last) 13:27, 29 January 2007 EdC (Talk | contribs) m (typo) |
|||
# (cur) (last) 21:44, 4 January 2007 Kingboyk (Talk | contribs) m (grammar) |
|||
# (cur) (last) 01:19, 1 January 2007 Ligulem (Talk | contribs) m (typo, avoid "i.e.") |
|||
# G2 (cur) (last) 21:26, 25 December 2006 16@r (Talk | contribs) (maskable help) |
|||
# G1 (cur) (last) 20:29, 25 December 2006 16@r (Talk | contribs) m (ok it works) |
|||
# (cur) (last) 20:27, 25 December 2006 16@r (Talk | contribs) m (try to give code automatically) |
|||
# (cur) (last) 20:16, 25 December 2006 16@r (Talk | contribs) m (description) |
|||
# F (cur) (last) 20:08, 25 December 2006 16@r (Talk | contribs) (documentation moved to Template:Template category/doc) |
|||
# (cur) (last) 19:57, 25 December 2006 16@r (Talk | contribs) m (moved Template:Templatecat to Template:Template category) |
|||
# (cur) (last) 11:37, 25 December 2006 16@r (Talk | contribs) m (not a good idea) |
|||
# (cur) (last) 11:35, 25 December 2006 16@r (Talk | contribs) m (<pre></pre>) |
|||
# (cur) (last) 11:30, 25 December 2006 16@r (Talk | contribs) (giving parameter name) |
|||
# (cur) (last) 11:10, 25 December 2006 16@r (Talk | contribs) m (noinclude problem) |
|||
# (cur) (last) 11:00, 25 December 2006 16@r (Talk | contribs) m (test) |
|||
# (cur) (last) 10:16, 25 December 2006 16@r (Talk | contribs) m (}}) |
|||
# E (cur) (last) 10:16, 25 December 2006 16@r (Talk | contribs) (variant help) |
|||
# D (cur) (last) 09:48, 25 December 2006 16@r (Talk | contribs) (autohelp) |
|||
# (cur) (last) 09:33, 25 December 2006 16@r (Talk | contribs) m (moved Template:Template category to Template:Templatecat: short name may be more handy) |
|||
# (cur) (last) 09:23, 25 December 2006 16@r (Talk | contribs) (new stlye) |
|||
# (cur) (last) 03:14, 25 December 2006 CesarB (Talk | contribs) (<noinclude>Category:Category header templates</ noinclude>) |
|||
# (cur) (last) 07:27, 12 November 2006 Disavian (Talk | contribs) (Category:Uncategorized templates) |
|||
# (cur) (last) 16:01, 31 August 2006 CesarB (Talk | contribs) (better wordin) |
|||
# (cur) (last) 19:04, 29 August 2006 CesarB (Talk | contribs) |
|||
-----> |
|||
<!--- |
<!--- |
||
----- |
----- |
Revision as of 15:55, 18 March 2007
- Note page has hidden operative code when viewed directly.
Version | Origin | Change Description | datestamp and programmer |
---|---|---|---|
Ver: J_a | Wikipedia | (m) Iterim (Fix locally) rephrasing of last (Root Category) line -- The very divergent diversity issue again still needs solved | FrankB 15:55, 18 March 2007 (UTC) |
Ver: J | Meta | Further interwikify, export to Meta, Add this table in several edits, re-export as new standard to all M:MP:TSP Sister Projects. | FrankB 18:04, 13 March 2007 (UTC) |
Ver: Ix | Wikipedia | I3: (make small another 2% safer for closer zoom-ins by user/readers) I2: m (lighten color a bit to improve contrast) I3: (small from width:70% to 67% which satisfies IE6 as well as firefox on medium font selected (Zoom level)) |
I3:FrankB 16:59, 13 March 2007 (UTC) I2: FrankB 03:45, 11 March 2007 (UTC) I1 from: 06:35, 7 March 2007 (UTC) |
Ver: H6 a+b |
Wikipedia | (b) (Revise out stray doubled single quotes... use OR logic for message, so same plc) [likely this was the 1st version shared interwiki(?)] (a)(Simply template a bit, and make it look nicer.) |
FrankB 21:36, 6 March 2007 (UTC) from: 21:42, 26 February 2007 (UTC) by: W:user:Mike Peel |
Ver: _ | Wikipedia | Origin/Genesis: (b) 16:01, 31 August 2006 CesarB (better wordin) (a) 19:04, 29 August 2006 |
16:01, 31 August 2006 (UTC) by w:user:CesarB from: 19:04, 29 August 2006 by: w:user:CesarB |
This template is used on approximately 34,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
{{Template category}}
should be placed at the top of categories that contain template pages and their related subcategories. This template populates Category:Wikipedia template categories.
Usage
Syntax
- Basic
{{Template category
|description=
}}
- Basic topical
No type | Navbox | Sidebar | Stub |
---|---|---|---|
{{Template category
|topic=
}}
|
{{Template category
|type=navbox
|topic=
}}
|
{{Template category
|type=sidebar
|topic=
}}
|
{{Template category
|type=stub
|topic=
}}
|
- Full
{{Template category
| onright =
| type =
| container =
| topic =
| description =
| ALTTEXT =
| help =
}}
Parameters and examples
The template may be used without any parameters.
With no parameters
The following, however, may be used to make the template more informative:
onright
- Use onright (or rhs) to place right-aligned boxes beside the template such as {{Portal}} (to provide link/s to related portal/s), {{Commons category}} (to provide a link to the same or a similarly-named Commons category), etc. If more than one box is included, ensure the widest one appears first (see example below) otherwise overlapping may occur.
topic, onright
{{Template category
| topic = the [[United States]]
| onright = {{Commons category|United States|the United States}}{{Portal|United States}}
}}
type
- Setting type to one of the following values adds a preset note as to which type of template the category (but not necessarily its subcategories) is meant to contain. The values are:
- ambox
- campaignbox
- (category header
- category heading
- catheader
- cat header
- cathead)
- conversion
- external link
- formatting
- function
- infobox
message- meta
- module
- (navigation
- navigational
- navbox)
- sidebar
- stub
- sub
- timeline
- (user
- userbox)
- If type is set to something other than one of these values, the default "The pages listed in this category are templates" note appears unmodified.
type alone
{{Template category |type=sidebar}}
container
- Set container as true, yes, etc. to identify the category as a container category, i.e. a category meant to contain only subcategories. A note requesting that no templates are added to the template category is then included. The category is automatically added to Category:Container categories.
container alone
{{Template category |container=true}}
- An alternative to using container is to place {{Container category}} after the {{Template category}} template:
{{Container category}} following {{Template category}}
{{Template category
| type = ''type''
| topic = ''[[topic]]''
| description = This text supplied by the ''description'' parameter.
}}
{{Container category}}
This is a container category. Due to its scope, it should contain only subcategories. |
topic
- Use topic to add a default description ending "...relating to topic", where topic is usually a wikilink to the main article associated with the category (e.g. United States for the Category:United States templates).
topic alone
{{Template category |topic=the [[United States]]}}
type, topic
{{Template category |type=infobox |topic=the [[United States]]}}
description
- Use description if a customised description is needed instead of – or, if topic also used, to follow – the default description above.
type, topic, description
{{Template category
| type = navbox
| topic = [[China]]
| description = <br />{{small|For templates relating specifically to the [[People's Republic of China|People's Republic of China (PRC)]] or the current [[Taiwan|Republic of China (ROC, "Taiwan")]], see, respectively, {{c|People's Republic of China templates}} and {{c|Taiwan templates}}.}}
}}
description alone
{{Template category |description=This text is supplied by the ''description'' parameter.}}
help
- Use help to replace the instructions on adding a template to the category (second paragraph of the "Further template category notes" section):
replace help text
{{Template category |help=This text supplied by the ''help'' parameter.}}
- To omit the default instructions, set help to no:
omit help text
{{Template category |help=no}}
Tracking category
Uses with a topic or description parameter are tracked:
TemplateData
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Template category in articles based on its TemplateData.
TemplateData for Template category
This template is used as a header for category pages that contain templates.
Parameter | Description | Type | Status | |
---|---|---|---|---|
onright | onright rhs | no description | Unknown | optional |
type | type | no description | Unknown | optional |
container | container | no description | Unknown | optional |
topic | topic | no description | Unknown | optional |
description | description 1 | no description | Unknown | optional |
ALTTEXT | ALTTEXT | no description | Unknown | optional |
help | help 2 | no description | Unknown | optional |
category | category | no description | Unknown | optional |