Template:Documentation: Difference between revisions

Template page
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>{{ #ifexist:{{FULLPAGENAME}}/doc | {{:{{FULLPAGENAME}}/doc}}
<includeonly>{{ #ifexist:{{FULLPAGENAME}}/doc | {{:{{FULLPAGENAME}}/doc}}
The above documentation is transcluded from [[{{FULLPAGENAME}}/doc]]. <small>([{{fullurl:{{FULLPAGENAME}}/doc|action=edit}} edit] &#124; [{{fullurl:{{FULLPAGENAME}}/doc|action=history}} history])</small>
The above documentation is transcluded from [[{{FULLPAGENAME}}/doc]]. <small>([{{fullurl:{{FULLPAGENAME}}/doc|action=edit}} edit] &#124; [{{fullurl:{{FULLPAGENAME}}/doc|action=history}} history])</small>
| This template doesn't have any documentation yet. Create [[{{FULLPAGENAME}}/doc]] to have its contents transcluded here.
|
This template doesn't have any documentation yet. Create [[{{FULLPAGENAME}}/doc]] to have its contents transcluded here.
}}</includeonly><noinclude>{{Documentation}}</noinclude>
}}</includeonly><noinclude>{{Documentation}}</noinclude>

Revision as of 03:11, 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>

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