Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Documentation: Difference between revisions

Template page
No edit summary
Tag: Reverted
m Prd moved page TemplateTemp:Documentation to Template:Documentation without leaving a redirect: Revert
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
{{#invoke:documentation|main|_content={{ {{#invoke:documentation|contentTitle}}}}}}<noinclude>
</noinclude><includeonly>{{#invoke:documentation|main|_content={{ {{#invoke:documentation|contentTitle}}}}}}</includeonly><noinclude>
<!-- Add categories to the /doc subpage -->
{{documentation|content=
</noinclude>
 
{{Lua|Module: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.
It is intended for pages which are Transcluded in other pages, i.e. templates, whether in the template namespace or not.
 
 
==Usage==
 
===Customising display===
 
 
Overrides exist to customise 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 and categories.
It also reduces server resources by circumventing a ---
 
 
==See also==
[[Special:Help]]

Latest revision as of 10:56, 29 April 2025