Difference between revisions of "Lylat Wiki:Template Standards"

updated
(updated)
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{shortcuts | Usage | {{LW:TS}} }}
{{shortcuts|LW:TS}}
{{Standards}}
{{Standards}}
{{draft-policy | date = April 2010}}
{{draft-policy}}
Templates are used to make it easier on a page to store information, as some of the information is stored elsewhere. Templates are used to make it easier on the editors, as to provide a common content and save time instead of placing the exact same content in different locations. Templates are also used as tools to help direct community involvement for the maintenance of an article. But what makes a "Good Template"?  
Templates are used to make it easier on a page to store information, as some of the information is stored elsewhere. Templates are used to make it easier on the editors, as to provide a common content and save time instead of placing the exact same content in different locations. Templates are also used as tools to help direct community involvement for the maintenance of an article. But what makes a "Good Template"?  


Line 26: Line 26:
Which category does this template belong to? Will it play well with similar templates, sorting itself into place?
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 template; 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: {{tl|auto-cat2}}. With this template, a page automatically becomes a member of two templates with each one serving as the others sortkey. For more on this, See [[Help:Categories]] & {{LW:CS}}.  
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 Example of Template Categories you may consider putting your template under:  
Here are some examples of template categories you may consider putting your template under:  
 
* [[:Category:Article Templates]]
* [[:Category:Category Templates]]
* [[:Category:Character Templates]]
* [[:Category:Character Templates]]
* [[:Category:Branch Templates]]
* [[:Category:Category Templates]]
* [[:Category:Featured Templates]]
* [[:Category:Article Templates]]
* [[:Category:Color Templates]]
* [[:Category:Color Templates]]
* [[:Category:Company Templates]]
* [[:Category:Company Templates]]
* [[:Category:Discussion Templates]]
* [[:Category:Discussion Templates]]
* [[:Category:Featured Templates]]
* [[:Category:File Templates]]
* [[:Category:File Templates]]
* [[:Category:InfoBox Templates]]
* [[:Category:Infobox Templates]]
* [[:Category:Notice Templates]]
* [[:Category:Notice Templates]]
* [[:Category:Stage Templates]]
* [[:Category:Stage Templates]]
* [[:Category:WikiProject Templates]]


== Documentation ==
== Documentation ==
Each template should have some kind of documentation telling you how to use it.  
Each template should have some kind of documentation telling you how to use it.  


In order to generate a documentation page, place <nowiki><noinclude>{{doc}}{{user-take-a-look|tacopill}}</noinclude></nowiki> at the very bottom of the template, and a <code>/doc</code> red link will show up when you save. Click this link to go to the documentation subpage.  
In order to generate a documentation page, place <nowiki><noinclude>{{doc}}</noinclude></nowiki> at the very bottom of the template, and a <code>/doc</code> red link will show up when you save. Click this link to go to the documentation subpage.  


On the actual documentation page, we recommend you put the following:  
On the actual documentation page, we recommend you put the following:  
Line 95: Line 94:
<noinclude>[[Category:Documentation|{{PAGENAME}}]]</noinclude></pre>
<noinclude>[[Category:Documentation|{{PAGENAME}}]]</noinclude></pre>


== Maintenance ==
{{Template-Maintance-Templates}}
== Actions ==
{{general-actions | type = template}}


== Discussions ==
== Discussions ==
Line 108: Line 102:
=== Maintenance ===
=== Maintenance ===


{{Usage}}
 
[[Category:Template Pages|{{PAGENAME}}]]
[[Category:Templates|{{PAGENAME}}]]
8,161

edits