Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Documentation/doc: Difference between revisions

Template page
Don't need the SPW template in all template documentation
Added explanation for why the new documentation mechanism should be preferred to inline template documentation.
Line 36: Line 36:
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.
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|T}}.<includeonly>
Note that the above example also uses {{t|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 [http://www.mediawiki.org/wiki/Template:Documentation/doc#Rationale 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.
<includeonly>
[[Category:General wiki templates|{{PAGENAME}}]]
[[Category:General wiki templates|{{PAGENAME}}]]
</includeonly><noinclude>
</includeonly>
<noinclude>
[[Category:Template documentation|{{PAGENAME}}]]
[[Category:Template documentation|{{PAGENAME}}]]
</noinclude>
</noinclude>