Difference between revisions of "Lylat Wiki:Template Standards"

updated
(updated)
 
(18 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{shortcuts | Usage | {{LW:TS}} }}
{{shortcuts|LW:TS}}
{{Standards}}
{{Standards}}
{{draft-policy}}
{{draft-policy}}
Line 19: Line 19:
Section headers <nowiki>===</nowiki>), then that section header is not only subject to these guidelines, but also to the guidelines that the receiving page(s) are under.  
Section headers <nowiki>===</nowiki>), then that section header is not only subject to these guidelines, but also to the guidelines that the receiving page(s) are under.  


For more, please see: [[Lylat Wiki:Section Standards]].
For more, please see: [[Lylat Wiki:Section Standards]].


=== Tables ===
=== Tables ===
=== Categories ===
Which category does this template belong to? Will it play well with similar templates, sorting itself into place?
Typically, one template will be a member of two templates, both of which are an [[LW:Area|area of the wiki]]. To help decide what the template should be sorted under, we've come up with the template: {{t|cat}}. With this template, a page automatically becomes a member of up to five categories, each one serving as the others sortkey. For more information, see [[Help:Categories]].
Here are some examples of template categories you may consider putting your template under:
* [[:Category:Article Templates]]
* [[:Category:Category Templates]]
* [[:Category:Character Templates]]
* [[:Category:Color Templates]]
* [[:Category:Company Templates]]
* [[:Category:Discussion Templates]]
* [[:Category:Featured Templates]]
* [[:Category:File Templates]]
* [[:Category:Infobox Templates]]
* [[:Category:Notice Templates]]
* [[:Category:Stage Templates]]


== Documentation ==
== Documentation ==
Line 30: Line 49:
On the actual documentation page, we recommend you put the following:  
On the actual documentation page, we recommend you put the following:  
* a Documentation Shell, which is intended to provide easier access to the template page, the name of the template, and related templates.
* a Documentation Shell, which is intended to provide easier access to the template page, the name of the template, and related templates.
* The three sections:  Purpose, usage and example.   
* The two sections:  Purpose and Usage.   


=== Documentation Shell ===
=== Documentation Shell ===
{{templates-table-top}}
{{templates-table-top}}
|-
|-
| [[Template:documentation shell|documentation shell]]
| [[Template:documentation shell|documentation shell]]
Line 54: Line 72:
==Purpose==
==Purpose==
==Usage==
==Usage==
===Example===
<pre>
{{Template Name
| param 1 =
| param 2 =
| param 3 =
}}
&lt;/pre> <!-- note: use an actual less than sign than the html equailavent &amp;lt; -->
=== Parameters ===
=== Parameters ===
{{Parameters-table-top}}
{{Parameters-table-top}}
Line 65: Line 92:
{{parameters-table-bottom}}
{{parameters-table-bottom}}
|}  
|}  
<noinclude>[[Category:Documentation|{{PAGENAME}}]]</noinclude></pre>


==Example==
<pre>
{{Template Name
| param 1 =
| param 2 =
| param 3 =
}}
&lt;/pre> <!-- note: use an actual less than sign than the html equailavent &amp;lt; -->
<includeonly>
<!-- cats -->
</includeonly>
<noinclude>[[Category:Documentation]]</noinclude></pre>
== Maintenance ==
{{Template-Maintance-Templates}}
== Actions ==
{{general-actions | type = template}}


== Discussions ==
== Discussions ==
Line 91: Line 101:
=== Shortcuts ===
=== Shortcuts ===
=== Maintenance ===
=== Maintenance ===
[[Category:Templates|{{PAGENAME}}]]
8,161

edits