Template:Template category: Difference between revisions
Appearance
imported>Deadfire m updating |
Tungstenchan (talk | contribs) m Text replacement - "BattleTechWiki" to "BattleIntelligence" |
||
| Line 23: | Line 23: | ||
(then:)-->| <div style="font-size:95%;font-weight:bold;"> The pages listed in this category are {{#ifeq:{{{type|}}}|module||meant to be}} <!-- | (then:)-->| <div style="font-size:95%;font-weight:bold;"> The pages listed in this category are {{#ifeq:{{{type|}}}|module||meant to be}} <!-- | ||
-->{{#switch:{{lc:{{{type}}}}} | -->{{#switch:{{lc:{{{type}}}}} | ||
| ambox = [[ | | ambox = [[BattleIntelligence:Manual of Style/Article message boxes|article message box (ambox)]] templates | ||
| category header | | category header | ||
| category heading | | category heading | ||
| catheader | cat header | | catheader | cat header | ||
| cathead = [[ | | cathead = [[BattleIntelligence:Categorization|category]] header templates | ||
| campaignbox = [[ | | campaignbox = [[BattleIntelligence:Manual of Style/Military history#Campaignboxes|campaignbox]] templates | ||
| conversion = templates that perform [[ | | conversion = templates that perform [[BattleIntelligence:Manual of Style/Dates and numbers#Unit conversions|conversions]] | ||
| external link = templates providing [[ | | external link = templates providing [[BattleIntelligence:External links|external links]] | ||
| formatting = templates that provide [[ | | formatting = templates that provide [[BattleIntelligence:Manual of Style/Text formatting|formatting]] | ||
| function = function templates{{nobold|, i.e. templates that produce text, images or other elements}} | | function = function templates{{nobold|, i.e. templates that produce text, images or other elements}} | ||
| infobox = [[ | | infobox = [[BattleIntelligence:Manual of Style/Infoboxes|infobox]] templates | ||
<!-- | message = [[ | <!-- | message = [[BattleIntelligence:Template messages|message]] templates --> | ||
| module = [[ | | module = [[BattleIntelligence:Lua|Lua modules]] | ||
| meta = [[Help:Metatemplating|metatemplates]] | | meta = [[Help:Metatemplating|metatemplates]] | ||
| navigation |navigational |navbox = [[ | | navigation |navigational |navbox = [[BattleIntelligence:Navigation template|navigation]] templates | ||
| sidebar = [[BTW:SIDEBAR|sidebar]] templates | | sidebar = [[BTW:SIDEBAR|sidebar]] templates | ||
| stub = [[ | | stub = [[BattleIntelligence:WikiProject Stub sorting/Stub types|stub]] templates | ||
| sub = [[Help:Template#Creating and editing templates|subtemplates]]{{nobold|, i.e. templates used by another template or templates}} | | sub = [[Help:Template#Creating and editing templates|subtemplates]]{{nobold|, i.e. templates used by another template or templates}} | ||
| timeline = [[ | | timeline = [[BattleIntelligence:Timeline|timeline]] templates | ||
| user | | user | ||
| userbox = [[ | | userbox = [[BattleIntelligence:User templates|user]] templates, including [[BattleIntelligence:Userboxes|userboxes]] | ||
| #default = {{{1|{{{description|}}}}}} | | #default = {{{1|{{{description|}}}}}} | ||
| {{{type}}} templates | | {{{type}}} templates | ||
| Line 49: | Line 49: | ||
(else:)-->| <div style="font-size:95%;font-weight:bold;"> The pages listed in this category are [[Help:Template|templates]]. </div>}} | (else:)-->| <div style="font-size:95%;font-weight:bold;"> The pages listed in this category are [[Help:Template|templates]]. </div>}} | ||
<div style="font-size:95%;padding:0.15em 0;line-height:1.3em;"> This page is part of [[:Category: | <div style="font-size:95%;padding:0.15em 0;line-height:1.3em;"> This page is part of [[:Category:BattleIntelligence administration|BattleIntelligence's administration]] and not part of the encyclopedia. </div> {{#if:{{{ALTTEXT|}}}|<hr/>{{{ALTTEXT}}}<hr/>}} | ||
<!-- | <!-- | ||
Further template category notes | Further template category notes | ||
| Line 55: | Line 55: | ||
<div style="border-bottom:1px solid #aaa;font-weight:bold;"> Further {{#ifeq:{{{type|}}}|module|module|template}} category notes </div> | <div style="border-bottom:1px solid #aaa;font-weight:bold;"> Further {{#ifeq:{{{type|}}}|module|module|template}} category notes </div> | ||
<div class="mw-collapsible-content"> | <div class="mw-collapsible-content"> | ||
<div> This [[Help:Category|category]] contains pages in the {{#ifeq:{{{type|}}}|module|[[ | <div> This [[Help:Category|category]] contains pages in the {{#ifeq:{{{type|}}}|module|[[BattleIntelligence:Lua|module namespace]]|[[BattleIntelligence:Template namespace|template namespace]]}}. It should not be used to categorize [[BattleIntelligence:What is an article?|articles]] or pages in other [[BattleIntelligence:Namespace|namespaces]]. </div><br/><!-- | ||
Help subsection | Help subsection | ||
Latest revision as of 00:15, 1 May 2025
The pages listed in this category are templates.
This page is part of BattleIntelligence's administration and not part of the encyclopedia.
Further template category notes
This category contains pages in the template namespace. It should not be used to categorize articles or pages in other namespaces. To add a template to this category:
|
File:Test Template Info-Icon - Version (2).svg Template documentation[view] [edit] [history] [purge]
{{Template category}} should be placed at the top of categories that contain template pages and their related subcategories. This template populates Category: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 pages listed in this category are templates.
This page is part of BattleIntelligence's administration and not part of the encyclopedia.
Further template category notes
This category contains pages in the template namespace. It should not be used to categorize articles or pages in other namespaces. To add a template to this category:
|
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). If more than one box is included, ensure the widest one appears first (see example below) otherwise overlapping may occur.
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.
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.
- An alternative to using container is to place {{Container category}} after the {{Template category}} template:
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. Federated Suns for the Category:Federated Suns Characters).
description
- Use description if a customised description is needed instead of – or, if topic also used, to follow – the default description above.
help
- Use help to replace the instructions on adding a template to the category (second paragraph of the "Further template category notes" section):
- To omit the default instructions, set help to no:
Tracking category
Uses with a topic or description parameter are tracked:
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 |