Difference between revisions of "Template:Documentation/doc"
From EVE University Wiki
(We do need the SPW template on *this* page, somewhere, because documentation itself is copied. But no, not on other pages.) |
(As far as I can tell there are no preloads required or broken templates, so I am removing the top section. It did say I could do it, after all!) |
||
Line 1: | Line 1: | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
;Description | ;Description | ||
:This template is used to insert documentation on template pages. | :This template is used to insert documentation on template pages. |
Revision as of 07:23, 2 September 2015
- Description
- This template is used to insert documentation on template pages.
- Syntax
- Type
<noinclude>{{documentation}}</noinclude>
at the end of the template page.
General usage
On the Template page
Template code<includeonly>Any categories to be inserted into articles by the template</includeonly><noinclude> {{documentation}}</noinclude>
On the Template/doc page
- See also Template:Documentation/preload
;Description :This template is used to do something. ;Syntax :Type <code>{{t|templatename}}</code> somewhere. ;Sample output :<code><nowiki>{{templatename|foo}}</nowiki></code> gives... :{{templatename|foo}} <includeonly>Any categories for the template itself</includeonly><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>
Use any or all of the above description/syntax/sample output sections. You may also want to add "see also" or further usage information sections.
Note that the above example also uses {{T}}.
Rationale
This template allows any page to use any documentation page, and makes it possible to protect templates while allowing anyone to edit the template's documentation, categories, and interwiki links. According to MediaWiki it also helps reduce server resource demand by circumventing certain technical limitations of templates. Unfortunately they don't say what those limitations are, exactly. - 2012, User:Quinn fellthorn
- User:Telinchei would suggest to the those relate to server resources, when deciding what to transclude (finding noinclude tags) from the template page.
This template was copied from Template:Documentation on Wikia Templates. That wiki should periodically be checked for a new version of this template. |