Template:Template category: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
(updates requested by User:Sardanaphalus) |
m (288 revisions imported from wikipedia:Template:Template_category) |
||
(41 intermediate revisions by 16 users not shown) | |||
Line 1: | Line 1: | ||
{{{onright|{{{rhs|}}}}}} |
|||
{{Cmbox |
{{Cmbox |
||
| type = notice |
| type = notice |
||
| style = padding-bottom:0.5em; |
|||
| image = [[File:Curly Brackets.svg|44px|Template braces|link=]] |
|||
| image = {{#ifeq:{{{type|}}}|module|[[File:Lua-logo-nolabel.svg|44px|Lua logo|alt=Lua logo|link=]]|[[File:Curly Brackets.svg|44px|Template braces|alt=|link=]]}} |
|||
| text = <div> |
|||
< |
| text = <div style="width:98%;"><!-- |
||
Container-category message |
|||
<!------------------- topic / description / rhs ---------------------> |
|||
{{ |
-->{{yesno|1={{{container|}}} |
||
|yes=<div style="font-size:115%;padding:0.5em 0;"> '''''Note: Please do not add {{#ifeq:{{{type|}}}|module|modules|templates}} to this category; instead, use one of its subcategories.''''' </div> |
|||
| <tr style="background:#d5e4ed;line-height:1.5em;"> |
|||
}}<!-- |
|||
<td style="border:1px solid #aaa;padding:0.4em;"><!-- |
|||
-->{{#if:{{{rhs|}}} |{{align|right|{{{rhs}}}}} }}<!-- |
|||
--><span style="font-size:120%;"><!-- |
|||
-->{{#if:{{{topic|}}} |'''{{#switch:{{lc:{{{type}}}}} |navbox|navigation|infobox|sidebar={{ucfirst:{{{type}}}}} templates |#default=Templates}} relating to {{{topic}}}.''' }}<!-- |
|||
-->{{{1|}}}{{{description|}}}<!-- |
|||
--></span><!-- |
|||
--></td> |
|||
</tr> |
|||
}} |
|||
(type/)topic/description |
|||
<!----------------------------- type --------------------------------> |
|||
-->{{#if:{{{topic|}}}{{{description|}}} |
|||
<tr> |
|||
< |
| <div style="background:#d5e4ed;line-height:1.5em;border:1px solid #aaa;font-size:120%;padding:0.35em;"> <!-- |
||
-->{{#if:{{{topic|}}} |'''{{#switch:{{lc:{{{type}}}}} |navbox|navigation|navigational|infobox|sidebar|stub|={{ucfirst:{{{type}}}}} templates |module=Modules|#default=Templates}} relating to {{{topic}}}.''' {{{1|}}}{{{description|}}} |
|||
-->{{#if:{{{type|}}} |
|||
| <div><!--(in case 1/description begins with newline:)--> {{{1|}}}{{{description|}}} </div> |
|||
| <div style="font-size:95%;padding-top:0.3em;">'''The pages listed in this category are meant to be <!-- |
|||
}} </div> |
|||
}}<!-- |
|||
| ambox = [[WP:Manual of Style/Article message boxes|article message box (ambox)]] templates.''' |
|||
| campaignbox = [[WP:Manual of Style/Military history#Campaignboxes|campaignbox]] templates.''' |
|||
| conversion = templates that perform [[MOS:CONVERSIONS|conversions]].''' |
|||
| external link = templates providing [[Wikipedia:External links|external links]].''' |
|||
| formatting = templates that provide [[WP:Formatting|formatting]].''' |
|||
| function = [[WP:Function templates|function templates]]''', i.e. templates that produce text, images or other elements. |
|||
| infobox = [[Help:Infobox|infobox]] templates.''' |
|||
| meta = [[:Category:Wikipedia metatemplates|metatemplates]].''' |
|||
| navigation | navbox = [[Wikipedia:Navigation templates|navigation templates]].''' |
|||
| sidebar = [[:Category:Sidebar templates|sidebar templates]].''' |
|||
| stub = [[Wikipedia:WikiProject Stub sorting/Stub types|stub]] templates.''' |
|||
| timeline = [[Wikipedia:Timeline|timeline]] templates.''' |
|||
| userbox = [[Wikipedia:Userboxes|userbox]] templates.''' |
|||
| #default = {{{1|{{{description|}}}}}} ''' |
|||
| {{{type}}} templates.''' |
|||
}}<!-- |
|||
--></div> |
|||
| <div style="font-size:95%;">'''The pages listed in this category are [[Wikipedia:Templates|templates]].''' <div style="padding:0.15em 0;line-height:1.3em;">This page is part of [[:Category:Wikipedia administration|Wikipedia's administration]] and not part of the encyclopedia.</div></div> {{#if:{{{ALTTEXT|}}} |<br/><hr/>{{{ALTTEXT}}}<hr/>}} |
|||
}} |
|||
type --><div style="line-height:1.3em;padding-top:0.3em;"> <!-- |
|||
<!---------------- Further template category notes ----------------> |
|||
-->{{#if:{{{type|}}} <!-- |
|||
<table class="collapsible collapsed" style="width:100%;font-size:90%;padding-top:0.25em;background:transparent;line-height:1.3em;"> |
|||
(then:)-->| <div style="font-size:95%;font-weight:bold;"> The pages listed in this category are {{#ifeq:{{{type|}}}|module||meant to be}} <!-- |
|||
<tr><th style="border-bottom:1px solid #aaa;text-align:left;">{{resize|110%|Further template category notes}}</th></tr> |
|||
-->{{#switch:{{lc:{{{type}}}}} |
|||
<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> |
|||
| ambox = [[Wikipedia:Manual of Style/Article message boxes|article message box (ambox)]] templates |
|||
<tr>{{#if:{{{help|}}}{{{2|}}}{{{container|}}} |
|||
| category header |
|||
| {{#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>}} |
|||
| category heading |
|||
| <td style="padding-bottom:0.5em;border-top:1px solid #aaa;">To include a template in this category, add <br/><code style="background:transparent;font-size:110%;overflow:auto;"><nowiki>[[</nowiki>{{FULLPAGENAME}}<nowiki>]]</nowiki></code><br/>to the <nowiki><includeonly></nowiki> section at the bottom of the template's /doc subpage if such a page exists. Otherwise, add <br/><code style="background:transparent;font-size:110%;overflow:auto;"><nowiki><noinclude>[[</nowiki>{{FULLPAGENAME}}<!-- |
|||
| catheader | cat header |
|||
--><nowiki>]]</noinclude></nowiki></code><br/>to the end of the template code, making sure it starts on the same line as the last character of the code.</td> |
|||
| cathead = [[Wikipedia:Categorization|category]] header templates |
|||
}}</tr> |
|||
| campaignbox = [[Wikipedia:Manual of Style/Military history#Campaignboxes|campaignbox]] templates |
|||
</table> |
|||
| conversion = templates that perform [[Wikipedia:Manual of Style/Dates and numbers#Unit conversions|conversions]] |
|||
</td> |
|||
| external link = templates providing [[Wikipedia:External links|external links]] |
|||
</tr> |
|||
| formatting = templates that provide [[Wikipedia:Manual of Style/Text formatting|formatting]] |
|||
</table> |
|||
| function = function templates{{nobold|, i.e. templates that produce text, images or other elements}} |
|||
</div> |
|||
| infobox = [[Wikipedia:Manual of Style/Infoboxes|infobox]] templates |
|||
}}<includeonly>{{#ifeq:{{NAMESPACE}}|{{ns:14}} |{{{category|[[Category:Wikipedia template categories]]}}} }}</includeonly><!-- |
|||
<!-- | message = [[Wikipedia:Template messages|message]] templates --> |
|||
| module = [[Wikipedia:Lua|Lua modules]] |
|||
| meta = [[Help:Metatemplating|metatemplates]] |
|||
| navigation |navigational |navbox = [[Wikipedia:Navigation template|navigation]] templates |
|||
| sidebar = [[WP:SIDEBAR|sidebar]] templates |
|||
| stub = [[Wikipedia: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}} |
|||
| timeline = [[Wikipedia:Timeline|timeline]] templates |
|||
| userbox = [[Wikipedia:Userboxes|userbox]] templates |
|||
| #default = {{{1|{{{description|}}}}}} |
|||
| {{{type}}} templates |
|||
}}. </div><!-- |
|||
(else:)-->| <div style="font-size:95%;font-weight:bold;"> The pages listed in this category are [[Help:Template|templates]]. </div>}} |
|||
--><noinclude> |
|||
<div style="font-size:95%;padding:0.15em 0;line-height:1.3em;"> This page is part of [[:Category:Wikipedia administration|Wikipedia's administration]] and not part of the encyclopedia. </div> {{#if:{{{ALTTEXT|}}}|<hr/>{{{ALTTEXT}}}<hr/>}} |
|||
<!-- |
|||
Further template category notes |
|||
--><div class="mw-collapsible mw-collapsed" style="font-size:90%;padding-top:0.25em;line-height:1.3em;"> |
|||
<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> This [[Help:Category|category]] contains pages in the {{#ifeq:{{{type|}}}|module|[[Wikipedia:Lua|module namespace]]|[[Wikipedia:Template namespace|template namespace]]}}. It should not be used to categorize [[Wikipedia:What is an article?|articles]] or pages in other [[Wikipedia:Namespace|namespaces]]. </div><br/><!-- |
|||
Help subsection |
|||
-->{{#if:{{{help|}}}{{{2|}}} <!-- |
|||
(then:)-->| {{yesno|{{{help|}}} |no={{#if:{{{2|}}}|<div>{{{2}}}</div><br/>}} |yes=<div>{{{help}}}{{{2|}}}</div><br/>|def=<div>{{{help}}}{{{2|}}}</div><br/>}}<!-- |
|||
(else:)-->| <div> To add a {{#ifeq:{{{type|}}}|module|module|template}} to this category: </div> |
|||
{{#ifeq:{{{type|}}}|module|{{Unbulleted list |list_style=padding-left:1.4em; |
|||
| In the documentation page (usually named "Module:''Name''/doc"), add |
|||
| {{pad}}<kbd>{{brackets|{{FULLPAGENAME}}}}</kbd> |
|||
| to the <nowiki><includeonly></nowiki> section at the bottom of that page. |
|||
}}|{{Unbulleted list |list_style=padding-left:1.4em; |
|||
| If the template has a separate documentation page (usually called "{{#ifeq:{{{type|}}}|module|Module|Template}}:''template name''/doc"), add |
|||
| {{pad}}<kbd>[[{{FULLPAGENAME}}]]</kbd> |
|||
| to the <nowiki><includeonly></nowiki> section at the bottom of that page. Otherwise, add |
|||
| {{pad}}<kbd><noinclude>[[{{FULLPAGENAME}}]]</noinclude></kbd> |
|||
| to the end of the template code, making sure it starts on the same line as the code's last character. |
|||
}} }} }} |
|||
</div> |
|||
</div> <!--(end "Further template category notes") |
|||
--></div> <!--(end of "type" div)--> |
|||
</div> <!--(end containing div) |
|||
## Tracking categories |
|||
-->{{Category other|<!-- |
|||
-->{{#if: {{{topic|}}}{{{description|}}}<!-- |
|||
-->|<!-- # We have a topic/description, so all ok |
|||
-->|[[Category:Template:Template category with no topic or description]]<!-- |
|||
-->}}<!-- |
|||
-->}} |
|||
}}<includeonly>{{#ifeq:{{NAMESPACE}}|{{ns:14}} |
|||
| {{{category|[[Category:Wikipedia template categories]]}}} |
|||
}}</includeonly><noinclude> |
|||
{{Documentation}} |
{{Documentation}} |
||
</noinclude> |
</noinclude> |
Latest revision as of 11:06, 22 June 2021
The pages listed in this category are templates.
This page is part of Wikipedia'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:
|