Template:Documentation: Difference between revisions

Template page
No edit summary
(bugging out my {{discord}} trying to fix)
Line 1: Line 1:
<includeonly>{{ #ifexist: {{FULLPAGENAME}}/doc | {{:{{FULLPAGENAME}}/doc}} }}</includeonly><noinclude>{{Documentation}}</noinclude>
<includeonly>{{#ifexist:{{FULLPAGENAME}}/doc|{{:{{FULLPAGENAME}}/doc}}}}</includeonly><noinclude>{{Documentation}}</noinclude>

Revision as of 23:54, 8 August 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>