mNo edit summary |
(Undo revision 21543 by Tomas07Tom (talk)) |
||
(14 intermediate revisions by 10 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{tocright}} |
||
− | Template guidelines for inclusion: |
||
+ | As templates can often be fairly complex and depend on various external factors, this page outlines some '''guidelines''' for inclusion on Templates Wiki. |
||
+ | ==Rules== |
||
⚫ | |||
− | *Templates with CSS design should mention so. |
||
− | *... |
||
+ | ===Code=== |
||
⚫ | |||
⚫ | |||
+ | *Templates which include CSS calls in their design should mention so. Generally it's best avoided, unless the CSS classes exist as standard. |
||
+ | *Use images sparingly. |
||
+ | |||
+ | ===Usage=== |
||
+ | *Templates should have usage and modification instructions. If they require other templates, this fact should be clearly documented, with links to the required templates. |
||
+ | *Templates should aim to be easy to read and understand even without usage instructions. |
||
+ | |||
+ | ===Inputs=== |
||
+ | *Don't try and make the most extensible template ever - don't make ''everything'' a variable for the user to provide. For example, alignment of boxes: just pick an alignment and hard-code it, or make it the default choice. |
||
+ | |||
+ | ==Layout== |
||
⚫ | |||
+ | |||
+ | ==Other notes== |
||
+ | * Templates that are not complete should be placed in the [[:Category:Underconstruction templates]] via {{t|Underconstruction}}. |
||
==See also== |
==See also== |
||
* [[mw:Template repository|Template repository]] on MediaWiki.org |
* [[mw:Template repository|Template repository]] on MediaWiki.org |
||
− | |||
[[Category:Content]] |
[[Category:Content]] |
Revision as of 01:42, 23 November 2018
As templates can often be fairly complex and depend on various external factors, this page outlines some guidelines for inclusion on Templates Wiki.
Rules
Code
- Templates should be self contained and avoid calling other templates (unless absolutely necessary).
- Templates which include CSS calls in their design should mention so. Generally it's best avoided, unless the CSS classes exist as standard.
- Use images sparingly.
Usage
- Templates should have usage and modification instructions. If they require other templates, this fact should be clearly documented, with links to the required templates.
- Templates should aim to be easy to read and understand even without usage instructions.
Inputs
- Don't try and make the most extensible template ever - don't make everything a variable for the user to provide. For example, alignment of boxes: just pick an alignment and hard-code it, or make it the default choice.
Layout
For details about how template pages should be structured, see Template layout.
Other notes
- Templates that are not complete should be placed in the Category:Underconstruction templates via
{{Underconstruction}}
.
See also
- Template repository on MediaWiki.org