Difference between revisions of "Template:Documentation"
Jump to navigation
Jump to search
MyraMidnight (talk | contribs) m |
MyraMidnight (talk | contribs) m |
||
Line 1: | Line 1: | ||
<onlyinclude><includeonly>{|class="pinktable" style="width:100%;background:white;" | <onlyinclude><includeonly>{|class="pinktable" style="width:100%;background:white;" | ||
− | !{{{ | + | !<span style="{{#if: {{{heading-style|}}} |
+ | | {{{heading-style|}}} | ||
+ | | {{#ifeq: {{SUBJECTSPACE}} | {{ns:Template}} | ||
+ | | font-weight: bold; font-size: 125% | ||
+ | | font-size: 150% | ||
+ | }} | ||
+ | }}">{{#switch: {{{heading|¬}}} | ||
+ | | ¬ = | ||
+ | <!--"heading" not defined in this or previous level--> | ||
+ | {{#switch: {{SUBJECTSPACE}} | ||
+ | | {{ns:Template}} = [[File:Template-info.png|50px|link=|alt=Documentation icon]] Template documentation | ||
+ | | {{ns:File}} = Summary | ||
+ | | #default = Documentation | ||
+ | }} | ||
+ | | #default = | ||
+ | <!--"heading" has data or is empty but defined--> | ||
+ | {{{heading|}}} | ||
+ | }}</span><span class="editsection"><nowiki>[</nowiki>[[{{{1|{{SUBJECTPAGENAME}}/doc}}}|view]]] [[{{fullurl:{{{1|{{SUBJECTPAGENAMEE}}/doc}}}|action=edit}} edit]]</span> | ||
|- | |- | ||
|style="{{{style|padding-left:10px;}}}" |<!--- | |style="{{{style|padding-left:10px;}}}" |<!--- |
Revision as of 10:01, 3 May 2017
50px Template documentation[view] [edit] | |
---|---|
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 It detects the namespace, so when used on templates, it will say "Template Documentation" but on other namespaces it will just say "Documentation". Usage |
heading= (OPTIONAL)
Documentation subpagesHere is an example of how a
{{Documentation subpage}} <!-- Categories go at the bottom of this page and interwiki links --> == Usage == | parameter= == See also == <includeonly> <!-- Categories go here, and interwikis go here --> </includeonly> See also |
The above documentation is transcluded from Template:Documentation/doc.
|