Template:Documentation: Difference between revisions
wikipediaxml>Bsherr consistent with new substitution template format |
basic |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
{{#invoke:documentation|main|_content={{ {{#invoke:documentation|contentTitle}}}}}}<noinclude> | <includeonly>{{#invoke:documentation|main|_content={{ {{#invoke:documentation|contentTitle}}}}}}</includeonly><noinclude> | ||
<!- | {{documentation|content= | ||
</ | |||
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 [https://en.wikipedia.org/wiki/Help:Template_limits technical limitation of templates]. | |||
}} | |||
[[Category:Templates]] | |||
</noinclude><includeonly>{{#if:{{{content|}}}| | |||
[[Category:Template documentation pages]] | |||
}}</includeonly> |
Latest revision as of 23:23, 9 December 2024
Lua error: Module:TNT:172: '''Missing JsonConfig extension, or not properly configured; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Documentation.tab. See https://www.mediawiki.org/wiki/Extension:JsonConfig#Supporting_Wikimedia_templates'''.