Template:Documentation: Difference between revisions
Jump to navigation
Jump to search
consistent with new substitution template format |
en>Griffinofwales m 1 revision imported from en:Template:Documentation: per AN request from Creol |
(No difference)
| |
Revision as of 02:17, 29 April 2022
File:Test Template Info-Icon - Version (2).svg Template documentation[view] [edit] [history] [purge]
This template can be used on any other template page to transclude documentation on how to use the other template.
If a documentation subpage (/doc) already exists, the content of that page will be displayed (like in this case). Otherwise, it will show a short note about missing documentation combined with a link to the subpage to be written.
This is useful to reduce the amount of wikicode that is transcluded every time the template in question is used. Everything that does not need to be transcluded should be put on this subpage, including interwiki links.
Usage
When creating a template page, copy and paste the following, to automatically insert the Usage information, if it exists.
<noinclude>{{doc}}</noinclude>