Template:Documentation: Difference between revisions

From Sandbox Wiki
Jump to navigation Jump to search
Created page with "<includeonly>{{#invoke:documentation|main|_content={{ {{#invoke:documentation|contentTitle}}}}}}</includeonly><noinclude> {{documentation|content= {{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 [https://www.mediawiki.org/wiki/Help:Transclusion transcluded] in other pages, i.e. templates, whether in th..."
 
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#invoke:documentation|main|_content={{ {{#invoke:documentation|contentTitle}}}}}}</includeonly><noinclude>
<templatestyles src="Template:Documentation/styles.css" />
{{documentation|content=
{{#invoke:Documentation|main}}
 
<noinclude>
{{Lua|Module:Documentation}}
{{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.
[[Category:Documentation templates]]
It is intended for pages which are [https://www.mediawiki.org/wiki/Help:Transclusion 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 [https://en.wikipedia.org/wiki/Help:Template_limits limitation of templates](see a [https://en.wikipedia.org/wiki/Special:Diff/69888944 developer's explanation]).
 
}}
</noinclude>
</noinclude>

Latest revision as of 21:59, 15 May 2026

Template documentation
This template has no documentation yet. Please click the link above to create it.
Template documentation
This template has no documentation yet. Please click the link above to create it.