Difference between revisions of "Template:Documentation"

From RobotX
Jump to navigation Jump to search
m (Text replacement - "<translate>" to "")
m (Text replacement - "</translate>" to "")
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
 
<languages/>
 
<languages/>
</noinclude><includeonly>{{#switch:</translate>
+
</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:
</translate>
+
 
* <nowiki>{{</nowiki>documentation{{!}}'''heading'''=<nowiki>}}</nowiki> - <!--T:5--> change the text of the "documentation" heading.</translate> <!--T:10--> If this is set to blank, the entire heading line (including the first [edit] link) will also disappear.</translate>
+
* <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.</translate>
+
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-->
</translate>
+
 
 
* {{tiw|documentation subpage}}
 
* {{tiw|documentation subpage}}
 
* {{tim|Documentation}}
 
* {{tim|Documentation}}

Revision as of 03:56, 21 December 2019


Template documentation

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