Difference between revisions of "Template:Template category"
From CannaQAWiki
Jump to navigationJump to searchShawndouglas (talk | contribs) m (Protected "Template:Template category" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))) |
Shawndouglas (talk | contribs) (Cleaned up initial import) |
||
Line 44: | Line 44: | ||
}}<!-- | }}<!-- | ||
--></div> | --></div> | ||
| <div style="font-size:95%;">'''The pages listed in this category are [[Help:MediaWiki basics/Advanced training#Templates|templates]].''' <div style="padding:0.15em 0;line-height:1.3em;">This page is part of [[:Category: | | <div style="font-size:95%;">'''The pages listed in this category are [[Help:MediaWiki basics/Advanced training#Templates|templates]].''' <div style="padding:0.15em 0;line-height:1.3em;">This page is part of [[:Category:CannaQAwiki administration|CannaQAwiki's administration]] and not part of the encyclopedia.</div></div> {{#if:{{{ALTTEXT|}}} |<br/><hr/>{{{ALTTEXT}}}<hr/>}} | ||
}} | }} | ||
Line 59: | Line 59: | ||
</table></td></tr> | </table></td></tr> | ||
</table></div> | </table></div> | ||
}}<includeonly>{{#ifeq:{{NAMESPACE}}|{{ns:14}}|{{{category|[[Category: | }}<includeonly>{{#ifeq:{{NAMESPACE}}|{{ns:14}}|{{{category|[[Category:CannaQAwiki template categories]]}}}}}</includeonly><noinclude> | ||
{{documentation}} | {{documentation}} | ||
Latest revision as of 22:41, 15 March 2019
|
[edit] [ ] Template documentation
The {{template category}} template should be placed at the top of categories that contain only template pages and their related subcategories.
Usage
Full syntax
{{template category |type = |topic = |description = |help = |container = }}
Parameters
The following optional parameters may be used:
- topic
- Adds the default description "Templates relating to topic." — where topic is usually a wikilink to the main article associated with the category (e.g. CannaQAWiki:Backlog for the Category:CannaQAWiki backlog templates). See Example 1, and Example 2 below.
- description
- Use this if a customised description is needed, instead of (or, if topic also used, to follow) the default description above. See Example 2, Example 3, and Example 4 below.
- type
- Adds a note as to which type of template the category (but not necessarily its subcategories) is meant to contain. See Example 1, Example 2, and Example 4 below. Currently, setting type to one of eleven values produces a preset note. The values are:
infobox · meta · navbox · navigation · sidebar · stub · timeline · userbox
- If type is set to something other than one of these values, the default message: "The pages listed in this category are templates." appears.
- help
- Use this to provide customised instructions rather than the default explanation as to how to add a template to the category.
- container
- Use this for container categories by adding
|container=yes
to the template. The message: "Do not add templates to this category: instead, use the appropriate sub-category." will appear. See Example 3 below.
Examples
Example 1
{{template category |type = navbox |topic = [[CannaQAWiki:Backlog|editing backlogs]] }}
|
Example 2
{{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 [[Republic of China|Republic of China (ROC, "Taiwan")]], see, respectively, {{c|People's Republic of China templates}} and {{c|Republic of China (Taiwan) templates}}.</small> }}
|
Example 3
{{template category |description = Here's a ''description'' without a preceding ''topic'' statement. |container = yes }}
|
Example 4
{{template category |type = external link |description = '''Templates aiding the creation and formatting of external links to [[topic]] databases.''' }}
|
See also
Other category header templates
|
|
The above documentation is transcluded from Template:Template category/doc. (edit | history) Editors can experiment in this template's sandbox (create) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |