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
 
m Fix.
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{| class="article-table plainlinks" style="width:100%" role="complementary"
<includeonly>{{#invoke:Documentation|doc}}__NOEDITSECTION__</includeonly><noinclude>{{/doc}}</noinclude>
|- style="font-size:18px"
! style="padding:0" | <div class="color1" style="width:100%; padding:3px 0; text-align:center">Template Documentation</div>
|-
| ''Note: portions of the template sample may not be visible without values provided.''
|-
| View or edit [[{{{1|Template:{{PAGENAMEE}}/doc}}}|this documentation]]. ([[Template:Documentation|About template documentation]])
|-
| Editors can experiment in this template's [{{fullurl:{{FULLPAGENAMEE}}/sandbox|action=edit}} sandbox] and [{{fullurl:{{FULLPAGENAMEE}}/testcases}} test case] pages.
|}
<div style="margin:0 1em">
{{{{{1|{{PAGENAME}}/doc}}}}}</div></includeonly><noinclude>{{Documentation}}</noinclude>

Latest revision as of 17:19, 8 April 2022

Template documentation[view][edit][history][purge]
This documentation is transcluded from Template:Documentation/doc. Changes can be proposed in the talk page.
Template:Documentation invokes function doc in Module:Documentation using Lua.

The documentation template is transcluded in the template/module documentation. This template should only be used on subpages titled "doc".

Usage

Place {{Documentation}} at the top of the documentation page.

If the page to be documented is a subpage, use {{Documentation|<pagename of page to be documented>}} at the top of the documentation page. For example, Template:Foo/bar's documentation page would use {{Documentation|<Template:Foo/bar>}}.

The template will attempt to auto detect and link {{#Invoke:}} calls on template documentations or the require()/mw.loadData() depedency list on module documentations. If you want to supress the auto generated dependency list, use {{Documentation}}

Note

This template links to a /doc that may appear useless, however, it exists in order to link navboxes and userboxes to their base template's documentation.


TemplateData

The documentation template is transcluded in the template/module documentation. This template should only be used on subpages titled "doc".

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
No parameters specified
Cookies help us deliver our services. By using our services, you agree to our use of cookies.