Template:Documentation: Difference between revisions

Template page
No edit summary
(Undo revision 7918 by Novalis (talk))
Tag: Undo
Line 1: Line 1:
<includeonly>{{ #ifexist:{{FULLPAGENAME}}/doc | {{:{{FULLPAGENAME}}/doc}} }}</includeonly><noinclude>{{Documentation
<includeonly>{{ #ifexist:{{FULLPAGENAME}}/doc | {{:{{FULLPAGENAME}}/doc}} }}</includeonly><noinclude>{{Documentation}}</noinclude>
<templatedata>
{
    "description": "Label unsigned comments in a conversation.",
    "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>

Revision as of 02:34, 11 September 2023

Usage

  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>