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
(switching wikicode tabling to HTML so {{!}} etc not needed)
(Undid revision 246921602 by Sardanaphalus (talk))
Line 3: Line 3:
|image = [[Image:Curly Brackets.svg|44px|Template braces]]
|image = [[Image:Curly Brackets.svg|44px|Template braces]]
|text = <div>
|text = <div>
<table style="width:100%; background:none;" cellspacing="0">
{{{!}} style="width:100%; background:none" cellspacing="0"
{{!}}-
{{#if:{{{topic|}}}{{{description|}}}{{{portal|}}}
{{#if:{{{topic|}}}{{{description|}}}{{{portal|}}}
| <tr style="background:#{{darken|224|240|249|5}}; font-size:1.2em; line-height:1.1em;">
<td style="border:1px solid #aaa;{{#if:{{{portal|}}} |border-right:none;}} padding:0.4em"><!--
| <tr style="background:#{{darken|224|240|249|5}}; font-size:1.2em; line-height:1.1em;">
-->{{#if: {{{topic|}}} |'''Templates relating to {{{topic}}}.'''&nbsp;}}<!--
<td style="border:1px solid #aaa;{{#if:{{{portal|}}} |border-right:none;}} padding:0.4em"><!--
-->{{{1|}}}{{{description|}}}<!--
-->{{#if: {{{topic|}}} |'''Templates relating to {{{topic}}}.'''&nbsp;}}<!--
-->{{{1|}}}{{{description|}}}<!--
-->{{#if: {{{portal|}}} |<td style="border:1px solid #aaa; border-left:none; vertical-align:middle;">{{portal|{{{portal}}}|left=no|margin=0}}<!---->}}
-->{{#if: {{{portal|}}} |<td style="border:1px solid #aaa; border-left:none; vertical-align:middle;">{{portal|{{{portal}}}|left=no|margin=0}} }}
</tr>
}}
}}
{{!}}-
<tr>
<td colspan="2"<!--(in case {{{portal}}} used)--> style="line-height:1.3em;"><!--
{{!}}colspan="2"<!--(in case {{{portal}}} used)--> style="line-height:1.3em;"{{!}} <!--
-->{{#if:{{{type|}}}<!--
-->{{#if: {{{type|}}}
| <div style="padding-top:0.3em; font-size:95%;">'''The pages listed in this category are meant to be <!--
| <div style="padding-top:0.3em; font-size:95%;">'''The pages listed in this category are meant to be <!--
-->{{#switch:{{{type}}}
-->{{#switch:{{{type}}}
|ambox = [[Wikipedia:Article message boxes|article message box (ambox)]] templates.'''
|ambox = [[Wikipedia:Article message boxes|article message box (ambox)]] templates.'''
|campaignbox = [[Wikipedia:WikiProject Military history/Style guide#Campaignboxes|campaignbox]] templates.'''
|campaignbox = [[Wikipedia:WikiProject Military history/Style guide#Campaignboxes|campaignbox]] templates.'''
|conversion = templates that perform conversions.'''
|conversion = templates that perform conversions.'''
|external link = templates providing [[Wikipedia:External links|external links]].'''
|external link = templates providing [[Wikipedia:External links|external links]].'''
|formatting = templates that provide formatting.'''
|formatting = templates that provide formatting.'''
|function = function templates''', i.e. templates that produce text, images or other elements.
|function = function templates''', i.e. templates that produce text, images or other elements.
|infobox = [[Help:Infobox|infobox]] templates.'''
|infobox = [[Help:Infobox|infobox]] templates.'''
|meta = metatemplates.'''
|meta = metatemplates.'''
|navbox = [[Wikipedia:Navigational templates|navigational (navbox) templates]].''' <div style="padding:0.15em 0; line-height:1.35em;">If subcategories exist for other types of templates (e.g. [[Help:Infobox|infobox]]es) relating to this topic, they should appear at the start of the subcategories listing immediately below this messagebox. (To achieve this with a template, index it using a <space>, i.e. <code style="background:none;"><nowiki>[[</nowiki>{{FULLPAGENAME}}&#123;&nbsp;]]</code>.)</div>
|navbox = [[Wikipedia:Navigational templates|navigational (navbox) templates]].'''<div style="padding:0.15em 0; line-height:1.35em;">If subcategories exist for other types of templates (e.g. [[Help:Infobox|infobox]]es) relating to this topic, they should appear at the start of the subcategories listing immediately below this messagebox. (To achieve this with a template, index it using a <space>, i.e. <code style="background:transparent;"><nowiki>[[</nowiki>{{FULLPAGENAME}}<nowiki>|</nowiki>&nbsp;]]</code>.)</div>
|stub = [[Wikipedia:WikiProject Stub sorting/Stub types|stub]] templates.'''
|stub = [[Wikipedia:WikiProject Stub sorting/Stub types|stub]] 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.'''
}}<!--
}}<!--end switch type, the line above rather unclear [how?]
--></div><!--
--></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/>}}
| <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/>}}<!--
}}
-->}}
<table class="collapsible collapsed" style="width:100%; padding-top:0.25em; background:transparent; line-height:1.3em; font-size:90%;">
{{{!}} 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; font-size:110%;">Further template category notes
! style="border-bottom:1px solid #aaa; text-align:left; font-size:110%" {{!}} Further template category notes
<tr><td style="padding-top:0.35em;">'''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]].
{{!}}-
<tr><td style="padding-bottom:0.5em; white-space:nowrap;">μ = stub;&nbsp; τ = template;&nbsp; ω = [[Wikipedia:WikiProject|WikiProject]], Task Force or [[Wikipedia:Portal|Portal]]-related;&nbsp; ρ = [[Wikipedia:WikiReader|WikiReader]]-related.
{{!}}style="padding-top:0.5em"{{!}} '''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]].
<tr>{{#if:{{{help|}}}{{{2|}}}
{{!}}-
| {{#ifeq:{{{help|}}}|no | |<td style="border-top:1px solid #aaa">{{{help}}}</td>}}
{{!}}style="padding-bottom:0.5em; white-space:nowrap;"{{!}} μ = stub;&nbsp; τ = template;&nbsp; ω = [[Wikipedia:WikiProject|WikiProject]], Task Force or [[Wikipedia:Portal|Portal]]-related;&nbsp; ρ = [[Wikipedia:WikiReader|WikiReader]]-related.
| <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>&lt;noinclude>[[</nowiki>{{FULLPAGENAME}}<nowiki>|{{PAGENAME}}]]<!--
{{!}}-
-->&lt;/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>
{{#if:{{{help|}}}{{{2|}}}
}}
| {{#ifeq:{{{help|}}}| no | |<td style="border-top:1px solid #aaa">{{{help}}}</td>}}
</table>
| <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>&lt;noinclude>[[</nowiki>{{FULLPAGENAME}}<nowiki>|{{PAGENAME}}]]&lt;/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>
</table>
}}
{{!}}}
{{!}}}
</div>
</div>
}}<includeonly>{{{category|[[Category:Wikipedia template categories|{{PAGENAME}}]]}}}</includeonly><noinclude>
}}<includeonly>{{{category|[[Category:Wikipedia template categories|{{PAGENAME}}]]}}}</includeonly><noinclude>


{{documentation}}
{{documentation}}


<!---Please add metadata (categories, interwikis) to the <includeonly> section at
<!---Please add metadata to the <includeonly> section at the bottom of the /doc subpage--->
the bottom of the /doc subpage--->
</noinclude>
</noinclude>

Revision as of 10:54, 22 October 2008