Template:Template category

From Wikibooks, open books for an open world
Jump to: navigation, search
[edit] [history] [purge] 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= }}

Parameters

The following parameters that are all optional, may also be used:

type  
Adds a note as to which type of template the category (but not necessarily its subcategories) is meant to contain, e.g.
{{template category|type=navbox}}
Currently, setting type to one of several values produces a preset note. The values are:
book · conversion · external link · formatting · function · infobox · meta · navbox · stub · userbox
If type is set to something other than one of these values, the default message "The pages listed in this category are meant be type templates." appears.
topic  
Adds the default description "Templates relating to topic.", where topic is usually a wikilink to the book associated with the category (e.g. Algorithms for the category Category:Algorithms/Templates). See Example 1 below.
description 
Use this if a customized description is needed instead of (or, if topic also used, to follow) the default description above. See Example 2 below.

Examples

Example 1

{{template category
|type  = navbox
|topic = United States
}}


Example 2

{{template category
|type  = navbox
|topic = China
|description = For templates relating specifically to the People's Republic of China (PRC) or the current Republic of China (ROC, "Taiwan").
}}


Example 3

{{template category
|description = Here's a ''description'' without a preceding ''topic'' statement.
}}


Example 4

{{template category
|type = external link
|description = '''Templates aiding the creation and formatting of external links to topic databases.'''
}}
http://en.wikibooks.org/wiki/Template:Template_category
en.wikibooks.org
crawl=CC-MAIN-2013-48
32914
application/http; msgtype=response
sha1:KBXFWSZCWTJJGBDUFJ4EKWKHZPP62PVP
<urn:uuid:d183aa1c-5c03-48aa-94ff-d5f2d1a25471>
2013-12-13T04:42:03Z
208.80.154.228
sha1:U3OFFJR45E7VTTLGWEME45S7YXYKQ5GA
<urn:uuid:f9d30394-d77e-4ed2-8016-3f39b22af058>
http://en.wikibooks.org/wiki/Template:Template_category
response
<urn:uuid:0651d2ca-7f61-4551-8eb5-c37d55ef60cd>
robots: classic
hostname: ip-10-33-133-15.ec2.internal
software: Nutch 1.6 (CC)/CC WarcExport 1.0
isPartOf: CC-MAIN-2013-48
operator: CommonCrawl Admin
description: Wide crawl of the web with URLs provided by Blekko for Winter 2013
publisher: CommonCrawl
format: WARC File Format 1.0
conformsTo: http://bibnum.bnf.fr/WARC/WARC_ISO_28500_version1_latestdraft.pdf