Template:Documentation/doc: Difference between revisions

From Karteria DWRP Wiki
Jump to navigationJump to search
m create templatedata from scratch
 
Icie (talk | contribs)
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Documentation subpage}}
See [https://www.mediawiki.org/wiki/Template:Documentation source page].
{{Lua|Module:Documentation}}
<templatedata>{
{{used in system}}
"params": {},
==Usage==
"description": "Inserts relevant documentation with {{documentation}}"
===Customizing display===
}</templatedata>
Overrides exist to customize the output in special cases:
* <nowiki>{{</nowiki>documentation|'''heading'''=}}: 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 [[:en:Wikipedia:Template limits|technical limitation of templates]] (see a [{{fullurl:en:Project:Village pump (technical)|diff=prev&oldid=69888944}} developer's explanation]).
 
==See also==
* {{tiw|documentation subpage}}
* {{tim|Documentation}}
* [[w:Wikipedia:Template documentation]]
<includeonly>{{Sandbox other||
[[Category:Template documentation| ]]
[[Category:Formatting templates|Template documentation]]
}}</includeonly>
<templatedata>
{
"params": {
"content": {
"description": "defines the body of the documentation part",
"type": "string"
},
"heading": {
"description": "allows to customise the header of the documentation part",
"type": "string"
}
},
"description": "This template allows to generate the documentation part of a given template."
}
</templatedata>

Latest revision as of 10:46, 29 December 2025

See source page.

Inserts relevant documentation with {{documentation}}

Template parameters

ParameterDescriptionTypeStatus
No parameters specified