Template:Documentation: Difference between revisions

From Killing Floor 2 Wiki
Jump to navigation Jump to search
(Undid revision 714753814 by Rich Farmbrough (talk))
 
(Created page with "==Usage== ===Customizing display=== Overrides exist to customize the output in special cases: * <nowiki>{{</nowiki>documentation|'''heading'''=}}: change the text of the "docu...")
Line 1: Line 1:
{{#invoke:documentation|main|_content={{ {{#invoke:documentation|contentTitle}}}}}}<noinclude>
==Usage==
<!-- Categories go on the /doc subpage, and interwikis go on Wikidata. -->
===Customizing display===
</noinclude>
Overrides exist to customize the output in special cases:
* <nowiki>{{</nowiki>documentation|'''heading'''=}}: change the text of the "documentation" heading. If this is set to blank, the entire heading line (including the first [edit] link) will also disappear.
 
==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. It also reduces server resources by circumventing a [[:en:Wikipedia:Template limits|technical limitation of templates]] (see a [{{fullurl:en:Project:Village pump (technical)|diff=prev&oldid=69888944}} developer's explanation]).
 
==See also==
* {{tiw|documentation subpage}}
*{{tim|Documentation}}
* [[w:Wikipedia:Template documentation]]
 
{{Languages}}
 
<!-- for the template  -->
<includeonly>
[[Category:Template documentation| ]]
[[Category:Formatting templates|Template documentation]]
 
[[en:Template:Documentation]]
 
</includeonly>

Revision as of 15:25, 24 October 2018

Usage

Customizing display

Overrides exist to customize the output in special cases:

  • {{documentation|heading=}}: change the text of the "documentation" heading. If this is set to blank, the entire heading line (including the first [edit] link) will also disappear.

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. It also reduces server resources by circumventing a technical limitation of templates (see a developer's explanation).

See also

Template:Nmbox[[Category:Languages pages{{#translation:}}]]