From Arms of God Wiki

bot: universal template Documentation
 
bot: dark theme for remaining light surfaces (hand-authored tables, /doc + notice panels)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly><div class="wm-template-doc" style="clear:both; border:1px solid #aaa; background:#f9f9f9; padding:8px; margin-top:1em;">
<includeonly><div class="wm-template-doc" style="clear:both; border:1px solid var(--panel-border, #3a3c44); background:var(--panel-bg, #1c1d22); color:var(--panel-text, #e6e6e6); padding:8px; margin-top:1em;">
=== Template documentation ===
=== Template documentation ===
<small>''(viewed at [[{{FULLPAGENAME}}]]; this section is hidden when the template is transcluded onto another page)''</small>
<small>''(viewed at [[{{FULLPAGENAME}}]]; this section is hidden when the template is transcluded onto another page)''</small>
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>

Latest revision as of 04:39, 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