Difference between revisions of "Template:Documentation"
Jump to navigation
Jump to search
Template documentation
Joelmartin (talk | contribs) m (Text replacement - "<translate>" to "") |
Joelmartin (talk | contribs) m (Text replacement - "</translate>" to "") |
||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
<languages/> | <languages/> | ||
− | </noinclude><includeonly>{{#switch: | + | </noinclude><includeonly>{{#switch: |
| = | | = | ||
{{#invoke:documentation|main|_content={{ {{#invoke:documentation|contentTitle}}}}}} | {{#invoke:documentation|main|_content={{ {{#invoke:documentation|contentTitle}}}}}} | ||
Line 17: | Line 17: | ||
<!--T:4--> | <!--T:4--> | ||
Overrides exist to customize the output in special cases: | Overrides exist to customize the output in special cases: | ||
− | + | ||
− | * <nowiki>{{</nowiki>documentation{{!}}'''heading'''=<nowiki>}}</nowiki> - <!--T:5--> change the text of the "documentation" heading. | + | * <nowiki>{{</nowiki>documentation{{!}}'''heading'''=<nowiki>}}</nowiki> - <!--T:5--> change the text of the "documentation" heading. <!--T:10--> If this is set to blank, the entire heading line (including the first [edit] link) will also disappear. |
Line 24: | Line 24: | ||
<!--T:7--> | <!--T:7--> | ||
− | 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. | + | 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. |
<!--T:8--> | <!--T:8--> | ||
Line 30: | Line 30: | ||
==See also== <!--T:9--> | ==See also== <!--T:9--> | ||
− | + | ||
* {{tiw|documentation subpage}} | * {{tiw|documentation subpage}} | ||
* {{tim|Documentation}} | * {{tim|Documentation}} |
Revision as of 03:56, 21 December 2019

![]() | This template uses Lua: |
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 [<tvar