Difference between revisions of "Template:Documentation"

Wikimedia Commons>4nn1l2
m (Changed protection level for "Template:Documentation": downgraded protection level per consensus ([Edit=Allow only template editors and administrators] (indefinite) [Move=Allow only template editors and administrators] (indefinite)))
m (1 revision imported)
 
(15 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<onlyinclude>{{Autotranslate/clone_2
+
{{#invoke:documentation|main|_content={{ {{#invoke:documentation|contentTitle}}}}}}<noinclude>
|base    = Documentation
+
<!-- Categories go on the /doc subpage, and interwikis go on Wikidata. -->
|lang    = {{{lang|{{int:Lang}} }}}
 
|1      = {{{1|{{SUBJECTPAGENAME}}/doc}}}
 
|2      = {{{heading|{{{2|}}} }}}
 
|content = {{{content|}}}
 
}}</onlyinclude><noinclude>
 
<!-- {{Autotranslate/clone_2}} is identical to {{Autotranslate}} and it is used to avoid "Warning: This page calls Template:Autotranslate which causes a template loop (an infinite recursive call). "-->
 
 
 
{{Documentation}}
 
 
 
 
</noinclude>
 
</noinclude>

Latest revision as of 21:17, 1 October 2020

Template documentation[view] [edit] [history] [purge]

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