ADSIC:Templates
This is an example of a template. This page will tell you everything you would ever need to know about templates on ADSIC. For any other sources, use Wikipedia. |
On Using Templates
Use this for the average template.
{{TemplateName}}
For templates with parameters, use this. Be aware that even if it has a parameter, that doesn't mean you have to use it, and order of parameters doesn't matter. Capitalization does matter.
{{TemplateName|param1 = input1}} {{TemplateName|param1 = input1|param2 = input2}}
The template at the top of this article is done with
{{Ambox|type = content|image = content|text = This is an example of a template. This page will tell you everything you would ever need to know about templates on ADSIC. For any other sources, use Wikipedia.}}
On Making Templates
Need a template from wikipedia? Just copy it from wikipedia and get rid of the documentation text, usually the stuff inside <noinclude> </noinclude>
.
Making your own template? Just check your code before saving, use the preview key a lot, and try to make all templates look the same.
Categories
The category for infobox templates should be included in <includeonly> </includeonly>
, so that the template is not added to the category but all the pages that use the template are. In infoboxes, don't include the categories in there, you want the Infobox Texas to be in the Texas category.
Do not use [[Category:categoryname]]
.
Instead, use {{{category|[[Category:categoryname]]}}}
.
Documentation
- Documentation is not required since templates should be straightforward and available at Wikipedia
Unless the documentation is specific to ADSIC, or the template is custom to ADSIC, anyone can head over to Wikipedia and grab the documentation. However, if the template is nonstandard and custom, you can add documentation by including it in <noinclude> </noinclude>
. Also, no documentation pages please, such as Template:Ambox/doc
. The documentation should be short and concise, not fully inclusive like Wikipedia or an API.
List of Templates
Do things to articles
- On this table,
this parameter
is generally required whilethis parameter
is not, and has a default value.
What to type | What it makes and the parameters used | Where it goes | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{AfD}} |
|
Article or section top | ||||||||||||||||||
{{Ambox}} |
|
Article or section top, but it is generally used as a meta-template, or a template used by other templates | ||||||||||||||||||
{{Infobox Wisconsin}} |
|
Various |