VassarWiki:Templates: Difference between revisions
created page |
without line breaks |
||
| Line 10: | Line 10: | ||
=== Documentation === | === Documentation === | ||
To make it easy for contributors to use your template, all templates should have documentation. | To make it easy for contributors to use your template, all templates should have documentation. | ||
Without any line breaks or spaces, write "<nowiki><noinclude>{{Documentation}}</nowiki><nowiki></noinclude></nowiki>" at the end of your template―this will transclude the information from your template's documentation page (located at "Template:Example/doc") onto the Template page, but not when using your template on another page. | |||
Template documentation should have at least two parts: | Template documentation should have at least two parts: | ||
| Line 21: | Line 23: | ||
* [[Template:Userbox]]: A meta-template that can be built upon to easily communicate about yourself on your user page. | * [[Template:Userbox]]: A meta-template that can be built upon to easily communicate about yourself on your user page. | ||
* [[Template:See also]] & [[Template:Main article]]: Notes at the top of sections to display important links | * [[Template:See also]] & [[Template:Main article]]: Notes at the top of pages or sections to display important links | ||
== See also == | == See also == | ||
* https://www.mediawiki.org/wiki/Help:Templates | * https://www.mediawiki.org/wiki/Help:Templates | ||