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
(Update via sandbox/testcases (replaced outer table, ifpositive, some formatting)
Line 1: Line 1:
{{{onright|{{{rhs|}}}}}}
<table class="mw-stack"<!--(see Template:Stack)--> style="width:100%;margin:0;padding:0;">
<div style="padding-bottom:0.5em;">
<tr>
{{Cmbox
<td>{{{rhs|}}}
| type = notice
{{Cmbox
| image = [[File:Curly Brackets.svg|44px|Template braces|alt=|link=]]
| type = notice
| text = <div>
| image = [[File:Curly Brackets.svg|44px|Template braces|alt=|link=]]
<table style="width:98%;background:none;" cellspacing="0"><!--
| text = <div>
<table style="width:98%;background:none;" cellspacing="0"><!--


------------------- Container-category message -------------------
------------------- Container-category message -------------------
-->{{ifpositive|{{{container|}}}
-->{{#switch:{{{container|}}} |true|yes=<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;">
| <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>
<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>
}}<!--


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


<!-------------- Further template category notes --------------->
<!-------------- Further template category notes --------------->
<table class="collapsible collapsed" style="width:100%;font-size:90%;padding-top:0.25em;background:transparent;line-height:1.3em;">
<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;"><!--(the following resized here otherwise [show/hide] link also resized:)-->{{bigger|Further template category notes}}</th></tr>
<tr><th style="border-bottom:1px solid #aaa;text-align:left;"> 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 [[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>{{#if:{{{help|}}}{{{2|}}} |<td>{{{help}}}</td>
<tr>{{#if:{{{help|}}}{{{2|}}} |<td> {{{help}}} </td>
| <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>&lt;noinclude&gt;[[</nowiki>{{FULLPAGENAME}}<nowiki>]]&lt;/noinclude&gt;</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>
| <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>&lt;noinclude&gt;[[</nowiki>{{FULLPAGENAME}}<nowiki>]]&lt;/noinclude&gt;</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>
}}</tr>
}}</tr>
</table>
</table>
</td>
</td></tr><!---(end of ----type---- row)---->
</table> </div><!--(closing |text=<div> above)-->
</tr>
}}<!--(end Cmbox)-->
</table><!--
</div><includeonly>{{#ifeq:{{NAMESPACE}}|{{ns:14}} |{{{category|[[Category:Wikipedia template categories]]}}}}}</includeonly><noinclude>
--></div>
}}<!---(end Cmbox)--->
</td>
</tr>
</table><includeonly>{{#ifeq:{{NAMESPACE}}|{{ns:14}} |{{{category|[[Category:Wikipedia template categories]]}}}}}</includeonly><noinclude>


{{Documentation}}
{{Documentation}}

Revision as of 10:45, 16 November 2014