Template:Template category: Difference between revisions

Nothing to hide, but nothing to show you either.
Jump to navigation Jump to search
Content added Content deleted
m (name update)
(<div> in case subtable's collapsibility compromised if {{{1}}} or {{{description}}} begins with newline)
Line 1: Line 1:
{{{onright|{{{rhs|}}}}}}
{{{onright|{{{rhs|}}}}}}
{{Cmbox
{{Cmbox
| type = notice
| type = notice
| style = padding-bottom:0.5em;
| style = padding-bottom:0.5em;
| image = [[File:Curly Brackets.svg|44px|Template braces|alt=|link=]]
| image = [[File:Curly Brackets.svg|44px|Template braces|alt=|link=]]
| text = <div>
| text = <div>
<table style="width:98%;background:none;" cellspacing="0"><!--
<table style="width:98%;background:none;" cellspacing="0"><!--


Container-category message
Container-category message
-->{{ifaffirmed|{{{container|}}}
-->{{ifaffirmed|{{{container|}}} |<tr><td style="font-size:115%;padding:0.5em 0;"> '''''Note: Please do not add templates to this category; instead, use one of its subcategories.''''' </td></tr>}}<!--
| <tr><td style="font-size:115%;padding:0.5em 0;"> '''''Note: Please do not add templates to this category; instead, use one of its subcategories.''''' </td></tr>
}}<!--


(type/)topic/description
(type/)topic/description
-->{{#if:{{{topic|}}}{{{description|}}}
-->{{#if:{{{topic|}}}{{{description|}}} |<tr style="background:#d5e4ed;line-height:1.5em;"><td style="border:1px solid #aaa;font-size:120%;padding:0.35em;"> {{#if:{{{topic|}}} |'''{{#switch:{{lc:{{{type}}}}} |navbox|navigation|navigational|infobox|sidebar={{ucfirst:{{{type}}}}} templates |#default=Templates}} relating to {{{topic}}}.'''&nbsp;}}{{{1|}}}{{{description|}}} </td></tr>}}<!--
| <tr style="background:#d5e4ed;line-height:1.5em;"><td style="border:1px solid #aaa;font-size:120%;padding:0.35em;"> <!--
-->{{#if:{{{topic|}}} |'''{{#switch:{{lc:{{{type}}}}} |navbox|navigation|navigational|infobox|sidebar={{ucfirst:{{{type}}}}} templates |#default=Templates}} relating to {{{topic}}}.'''&nbsp;{{{1|}}}{{{description|}}}
| <div><!--(in case 1/description begins with newline:)--> {{{1|}}}{{{description|}}} </div>
}} </td></tr>
}}<!--


type --><tr><td style="line-height:1.3em;padding-top:0.3em;"> <!--
type
-->{{#if:{{{type|}}} <!--
--><tr><td style="line-height:1.3em;padding-top:0.3em;"> <!--
(then:)-->| <div style="font-size:95%;font-weight:bold;"> The pages listed in this category are meant to be <!--
-->{{#if:{{{type|}}} <!--
-->{{#switch:{{lc:{{{type}}}}}
| ambox = [[Wikipedia:Manual of Style/Article message boxes|article message box (ambox)]] templates
| campaignbox = [[Wikipedia:Manual of Style/Military history#Campaignboxes|campaignbox]] templates
| conversion = templates that perform [[Wikipedia:Manual of Style/Dates and numbers#Unit conversions|conversions]]
| external link = templates providing [[Wikipedia:External links|external links]]
| formatting = templates that provide [[Wikipedia:Formatting|formatting]]
| function = function templates{{nobold|, i.e. templates that produce text, images or other elements}}
| infobox = [[Help:Infobox|infobox]] templates
<!-- | message = [[Wikipedia:Template messages|message]] templates -->
| meta = [[:Category:Wikipedia metatemplates|meta]]-templates
| navigation |navigational |navbox = [[Wikipedia:Navigation templates|navigation]] templates
| sidebar = [[:Category:Sidebar templates|sidebar]] templates
| stub = [[Wikipedia:WikiProject Stub sorting/Stub types|stub]] templates
| sub = [[Help:Subtemplates|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><!--


(then:)-->| <div style="font-size:95%;font-weight:bold;"> The pages listed in this category are meant to be <!--
(else:)-->| <div style="font-size:95%;font-weight:bold;"> The pages listed in this category are [[Wikipedia:Templates|templates]]. </div>
<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/>}}
-->{{#switch:{{lc:{{{type}}}}}
}}
| ambox = [[Wikipedia:Manual of Style/Article message boxes|article message box (ambox)]] templates
<!--
| campaignbox = [[Wikipedia:Manual of Style/Military history#Campaignboxes|campaignbox]] templates
Further template category notes
| conversion = templates that perform [[Wikipedia:Manual of Style/Dates and numbers#Unit conversions|conversions]]
--><table class="collapsible collapsed" style="width:100%;font-size:90%;padding-top:0.25em;background:transparent;line-height:1.3em;">
| external link = templates providing [[Wikipedia:External links|external links]]
<tr><th style="border-bottom:1px solid #aaa;text-align:left;"> Further template category notes </th></tr>
| formatting = templates that provide [[Wikipedia:Formatting|formatting]]
<tr><td> 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><!--
| function = function templates{{nobold|, i.e. templates that produce text, images or other elements}}
| infobox = [[Help:Infobox|infobox]] templates
<!--| message = [[Wikipedia:Template messages|message]] templates-->
| meta = [[:Category:Wikipedia metatemplates|meta]]-templates
| navigation |navigational |navbox = [[Wikipedia:Navigation templates|navigation]] templates
| sidebar = [[:Category:Sidebar templates|sidebar]] templates
| stub = [[Wikipedia:WikiProject Stub sorting/Stub types|stub]] templates
| sub = [[Help:Subtemplates|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><!--


Help subsection
(else:)-->| <div style="font-size:95%;font-weight:bold;"> The pages listed in this category are [[Wikipedia:Templates|templates]]. </div><!--
--> <tr> {{#if:{{{help|}}}{{{2|}}} <!--
--><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/>}}<!--
(then:)-->| {{ifdeclined|{{{help|}}} |{{#if:{{{2|}}}|<td>{{{2}}}</td>}} |<td>{{{help}}}{{{2|}}}</td>}}<!--
(else:)-->| <td> To add a template to this category:
-->}}<!--
{{Unbulleted list |list_style=padding-left:1.4em;
| If the template has a separate documentation page (usually called {{bigger|"}}{{padlr|Template:{{padlr|0.2em|''template's name''}}/doc}}{{bigger|"}}), add
| {{pad}}{{mono|{{square brackets|{{FULLPAGENAME}}}}}}
| to the <nowiki><includeonly></nowiki> section at the bottom of that page. Otherwise, add
| {{pad}}{{mono|&lt;noinclude&gt;{{square brackets|{{FULLPAGENAME}}}}&lt;/noinclude&gt;}}
| to the end of the template code, making sure it starts on the same line as the code's last character.
}} </td> }} </tr>
</table> <!--(end "Further template category notes" table)


--></td></tr> <!--(end of "type" row)-->
Further template category notes
--><table class="collapsible collapsed" style="width:100%;font-size:90%;padding-top:0.25em;background:transparent;line-height:1.3em;">
<tr><th style="border-bottom:1px solid #aaa;text-align:left;"> Further template category notes </th></tr>
<tr><td> 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><!--


</table> </div> <!--(end containing table and |text=<div>)-->
Help subsection
--> <tr> {{#if:{{{help|}}}{{{2|}}} <!--
}}<includeonly>{{#ifeq:{{NAMESPACE}}|{{ns:14}}
| {{{category|[[Category:Wikipedia template categories]]}}}
(then:)-->| {{ifdeclined|{{{help|}}} |{{#if:{{{2|}}}|<td>{{{2}}}</td>}} |<td>{{{help}}}{{{2|}}}</td>}}<!--
}}</includeonly><noinclude>
(else:)-->| <td> To add a template to this category:
{{Unbulleted list |list_style=padding-left:1.4em;
| If the template has a separate documentation page (usually called {{bigger|"}}{{padlr|Template:{{padlr|0.2em|''template's name''}}/doc}}{{bigger|"}}), add
| {{pad}}{{mono|{{square brackets|{{FULLPAGENAME}}}}}}
| to the <nowiki><includeonly></nowiki> section at the bottom of that page. Otherwise, add
| {{pad}}{{mono|&lt;noinclude&gt;{{square brackets|{{FULLPAGENAME}}}}&lt;/noinclude&gt;}}
| to the end of the template code, making sure it starts on the same line as the code's last character.
}} </td> }} </tr>
</table> <!--(end "Further template category notes" table)-->

</td></tr> <!--(end of "type" row)-->
</table></div> <!--(end containing table and |text=<div>)-->
}}<includeonly>{{#ifeq:{{NAMESPACE}}|{{ns:14}} |{{{category|[[Category:Wikipedia template categories]]}}}}}</includeonly><noinclude>
{{Documentation}}
{{Documentation}}
</noinclude>
</noinclude>

Revision as of 23:18, 5 December 2014