Template:Documentation: Difference between revisions

Template page
(Created page with "<includeonly>[[{{{1|{{FULLPAGENAME}}/doc}}}}]]</includeonly>")
 
No edit summary
 
(15 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<includeonly>[[{{{1|{{FULLPAGENAME}}/doc}}}}]]</includeonly>
<includeonly>== {{{title|Documentation}}} ==
{{ #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>
}}</includeonly><noinclude>{{Documentation|title=}}</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)