Sjabloon:Template category: verschil tussen versies

Uit informatiestandaarden
Naar navigatie springen Naar zoeken springen
(Nieuwe pagina aangemaakt met '{{Cmbox |type = notice |image = 44px|Template braces|link= |text = <div> <table style="width:98%;background:none;" cellspacing="0"> ...')
 
k (1 versie)
 
(2 tussenliggende versies door dezelfde gebruiker niet weergegeven)
Regel 33: Regel 33:
 
         |formatting = templates that provide [[WP:Formatting|formatting]].'''
 
         |formatting = templates that provide [[WP:Formatting|formatting]].'''
 
         |function = [[WP:Function templates|function templates]]''', i.e. templates that produce text, images or other elements.
 
         |function = [[WP:Function templates|function templates]]''', i.e. templates that produce text, images or other elements.
         |infobox  = [[Help:Infobox|infobox]] templates.'''
+
         |infobox  = [[Wikipedia:Help:Infobox|infobox]] templates.'''
 
         |meta = metatemplates.'''
 
         |meta = metatemplates.'''
 
         |navigation |navbox = [[Wikipedia:Navigation templates|navigation templates]].'''
 
         |navigation |navbox = [[Wikipedia:Navigation templates|navigation templates]].'''
Regel 50: Regel 50:
 
     <table class="collapsible collapsed" style="width:100%;padding-top:0.25em;background:transparent;line-height:1.3em font-size:90%;">
 
     <table class="collapsible collapsed" style="width:100%;padding-top:0.25em;background:transparent;line-height:1.3em font-size:90%;">
 
     <tr><th style="border-bottom:1px solid #aaa;text-align:left;">{{resize|110%|Further template category notes}}</th></tr>
 
     <tr><th style="border-bottom:1px solid #aaa;text-align:left;">{{resize|110%|Further template category notes}}</th></tr>
     <tr><td style="padding-top:0.25em;">'''This [[Help:Category|category]] contains pages in the [[Wikipedia:Template namespace|template namespace]].''' It should not be used to categorize [[Wikipedia:What is an article?|articles]] or pages in other [[Help:Namespace|namespaces]].</td></tr>
+
     <tr><td style="padding-top:0.25em;">'''This [[Wikipedia:Help:Category|category]] contains pages in the [[Wikipedia:Template namespace|template namespace]].''' It should not be used to categorize [[Wikipedia:What is an article?|articles]] or pages in other [[Wikipedia:Help:Namespace|namespaces]].</td></tr>
 
     <tr>{{#if:{{{help|}}}{{{2|}}}{{{container|}}}
 
     <tr>{{#if:{{{help|}}}{{{2|}}}{{{container|}}}
 
           | {{#ifeq:{{{help|}}}| no | |<td style="border-top:1px solid #aaa;">{{#ifeq:{{{container|}}}|yes|'''Do not add templates to this category: instead, use the appropriate sub-category.'''|{{{help}}}}}</td>}}
 
           | {{#ifeq:{{{help|}}}| no | |<td style="border-top:1px solid #aaa;">{{#ifeq:{{{container|}}}|yes|'''Do not add templates to this category: instead, use the appropriate sub-category.'''|{{{help}}}}}</td>}}

Huidige versie van 22 jul 2013 om 13:50

[bewerken] [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 = 
|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. United States for the Category:United States 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:
ambox · campaignbox · conversion · external link · formatting · function
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 = the [[United States]]
}}


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

Namespaces

Main: – {{Set category}} • {{Stub category}} • {{Parent-only stub category}} • {{Regional stub category}} File: – {{File template notice}} • {{Media template notice}} Help: – {{Help category}} Portal: – {{Portal category}} Template: – {{Template category}} User: – {{User category}} • {{Sockpuppet category}}

Maintenance

All – {{All included}} • {{Category diffuse}} • {{Container category}} • {{Distinguished subcategory}} • {{Empty category}} • {{Redirect category}} • {{Very large}} • {{Wikipedia category}}