Template:Documentation: Difference between revisions

From Test Wiki
Jump to navigation Jump to search
Content deleted Content added
Undo revision 710061475 by Sarang (talk): undocumented, unused parameter. This is not a sandbox, this is the LIVE template.
m Protected "Template:Documentation": Important template ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite) [Delete=Allow only administrators] (indefinite) [Protect=Allow only administrators] (indefinite))
Tags: Mobile edit Mobile web edit
Line 1: Line 1:
{{#invoke:Documentation|main}}<noinclude></noinclude>
<!-- {{#invoke:Autotranslate|autotranslate}} is used to avoid "Warning: This page calls Template:Autotranslate which causes a template loop (an infinite recursive call). "-->
<onlyinclude>{{#invoke:Autotranslate|autotranslate
| base = Template:Documentation/i18n
|lang = {{{lang|{{int:Lang}} }}}
|1 = {{#if:{{{1|}}}
|{{{1}}}
|{{#ifexist:{{SUBJECTPAGENAME}}/doc
|{{SUBJECTPAGENAME}}/doc
|{{#ifexist:{{#titleparts:{{SUBJECTPAGENAME}}|-1}}/doc
|{{#titleparts:{{SUBJECTPAGENAME}}|-1}}/doc
|{{SUBJECTPAGENAME}}/doc
}}
}}
}}
|2 = {{{heading|{{{2|}}} }}}
|content = {{{content|}}}
}}</onlyinclude>

Revision as of 13:40, 7 April 2024

Template documentation

This is the {{Documentation}} template, used on almost every template page to contain that template's documented instructions and information.

For detailed instructions on how and when to use this template, see w:Wikipedia:Template documentation.

This template displays a green documentation box like you are seeing now and automatically loads the content from a /doc subpage. It can also load the content from other places if instructed to.

This template is intended for documenting templates and other pages that are transcluded onto other pages. It can be used in the template namespace and most other namespaces.

Use of this template allows templates to be protected where necessary, while allowing anyone to edit the documentation and categories.