From Arms of God Wiki

bot: universal template Documentation
 
bot: doc cleanup (escape examples, drop charinsert)
Line 11: Line 11:
Inside a template's <code>&lt;noinclude&gt;...&lt;/noinclude&gt;</code> block at the bottom. Renders a documentation panel that pulls from <code>{{FULLPAGENAME}}/doc</code> if a /doc subpage exists; otherwise notes that the template's own noinclude section is the docs.
Inside a template's <code>&lt;noinclude&gt;...&lt;/noinclude&gt;</code> block at the bottom. Renders a documentation panel that pulls from <code>{{FULLPAGENAME}}/doc</code> if a /doc subpage exists; otherwise notes that the template's own noinclude section is the docs.


This is the convention every well-organized wiki template uses (alongside <code>&lt;templatedata&gt;</code> for VisualEditor hints). Bot-published templates on this wiki carry inline <code>&lt;noinclude&gt;{{templatedata}}</noinclude></code> blocks already; the <code>{{Documentation}}</code> wrapper here is for hand-authored templates editors add later.
This is the convention every well-organized wiki template uses (alongside <code>&lt;templatedata&gt;</code> for VisualEditor hints). Bot-published templates on this wiki carry inline <code>&lt;noinclude&gt;<nowiki>{{templatedata}}</nowiki>&lt;/noinclude&gt;</code> blocks already; the <code>{{Documentation}}</code> wrapper here is for hand-authored templates editors add later.


<templatedata>
<templatedata>

Revision as of 01:49, 10 June 2026

Usage

{{Documentation}}

Inside a template's <noinclude>...</noinclude> block at the bottom. Renders a documentation panel that pulls from Template:Documentation/doc if a /doc subpage exists; otherwise notes that the template's own noinclude section is the docs.

This is the convention every well-organized wiki template uses (alongside <templatedata> for VisualEditor hints). Bot-published templates on this wiki carry inline <noinclude>{{templatedata}}</noinclude> blocks already; the

Template documentation

(viewed at Template:Documentation; this section is hidden when the template is transcluded onto another page)

No /doc subpage exists for this template. The template's <noinclude> block (visible here on the template's own view, hidden when transcluded) is the docs.

wrapper here is for hand-authored templates editors add later.

Standard template-documentation panel. Auto-detects a /doc subpage; falls back to the template's own noinclude content.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
No parameters specified