Difference between revisions of "Template:Documentation/doc"
Jump to navigation
Jump to search
MyraMidnight (talk | contribs) m (→See also) |
MyraMidnight (talk | contribs) m |
||
Line 3: | Line 3: | ||
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 | 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 | ||
== Usage == | == Usage == | ||
− | *<code> | + | *<code>heading=</code> (OPTIONAL) will replace "Template Documentation" with custom title. If left empty it will remove the title as well as the edit/view links. |
====Documentation subpages==== | ====Documentation subpages==== |
Revision as of 10:01, 3 May 2017
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
Usage
heading=
(OPTIONAL) will replace "Template Documentation" with custom title. If left empty it will remove the title as well as the edit/view links.
Documentation subpages
Here is an example of how a /doc
subpage setup should look like to be proper.
- Categories that should be applied to the template should always go between
<includeonly>
and</includeonly>
so they will not apply themselves to the documentation.
{{Documentation subpage}} <!-- Categories go at the bottom of this page and interwiki links --> == Usage == == See also == <includeonly> <!-- Categories go here, and interwikis go here --> </includeonly>