Template:Documentation: Difference between revisions

Template page
No edit summary
No edit summary
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{ #ifexist:{{FULLPAGENAME}}/doc | {{:{{FULLPAGENAME}}/doc}} }}</includeonly><noinclude>{{Documentation
<includeonly>== {{{title|Documentation}}} ==
<templatedata>
{{ #ifexist:{{FULLPAGENAME}}/doc | {{:{{FULLPAGENAME}}/doc}}<p>The above {{NAMESPACE}} documentation is transcluded from [[{{FULLPAGENAME}}/doc]]. <small>([{{fullurl:{{FULLPAGENAME}}/doc|action=edit}} edit] &#124; [{{fullurl:{{FULLPAGENAME}}/doc|action=history}} history])</small></p>
{
|<p>This {{NAMESPACE}} page doesn't have any documentation yet. Create [[:{{FULLPAGENAME}}/doc]] to have its contents transcluded here.</p>
    "description": "Label unsigned comments in a conversation.",
}}</includeonly><noinclude>{{Documentation|title=}}</noinclude>
    "params": {
        "user": {
            "label": "User's name",
            "type": "wiki-user-name",
            "required": true,
            "description": "User name of person who forgot to sign their comment.",
            "aliases": ["1"]
        } 
    }  
}
</templatedata>
}}</noinclude>

Latest revision as of 08:33, 11 September 2023

Usage[edit source]

  1. Create a /doc page for your template or page that documents the usage.
  2. Add the following to the bottom of your template:
<noinclude>{{Documentation}}</noinclude>

You can override the default title of this section by providing a title argument:

<noinclude>{{Documentation|title=<title>}}</noinclude>

The above Template documentation is transcluded from Template:Documentation/doc. (edit | history)