Permanently protected template

Template:Documentation: Difference between revisions

From HIBIKIFORUM
Jump to navigation Jump to search
m (Changed protection settings for "Template:Documentation" ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite)))
mNo edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#invoke:documentation|main|_content={{ {{#invoke:documentation|contentTitle}}}}}}</includeonly><noinclude>
<includeonly>{{#invoke:documentation|main|_content={{ {{#invoke:documentation|contentTitle}}}}}}</includeonly><noinclude>
{{documentation|content=


 
{{Documentation}}
This template automatically displays a documentation box like the one you are seeing now, of which the content is sometimes transcluded from another page.
<!-- Add categories to the /doc subpage, not here! -->
 
</noinclude>
It is intended for pages which are transcluded in other pages, i.e. templates, whether in the template namespace or not.
 
==Usage==
 
===Customizing display===
 
 
Overrides exist to customize the output in special cases:
* <nowiki>{{</nowiki>documentation{{!}}'''heading'''=<nowiki>}}</nowiki> - 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 [[Wikipedia:Template limits|technical limitation of templates]].
 
}}
</noinclude><includeonly>{{#if:{{{content|}}}|
[[Category:Template documentation pages]]
[[Category:Templates]]
}}</includeonly>

Latest revision as of 17:58, 14 June 2023