Difference between revisions of "Template:Documentation"

From BattleMaster Wiki
Jump to navigation Jump to search
m (1 revision imported: Test upload template Chart)
(Undo revision 186314 by Wimpie (talk))
Tag: Undo
 
Line 1: Line 1:
{{#invoke:documentation|main|_content={{ {{#invoke:documentation|contentTitle}}}}}}<noinclude>
+
<center>
<!-- Categories go on the /doc subpage, and interwikis go on Wikidata. -->
+
{|name="userboxes" id="userboxes" style="margin-left: 1em; margin-bottom: 0.5em; width: 900px; border: #6680FF solid 1px; background-color: #DDDDFF; color: #000000;"
</noinclude>
+
|-
 +
| style="font-weight: bold; font-size: 125%; border-bottom: #6680FF solid 1px;" | [[Image:Template-info.svg|50px]] Template Documentation
 +
|-
 +
| style="text-align:center;border-bottom: #6680FF solid 1px;" | This documentation is [[Wikipedia:Wikipedia:Transclusion|transcluded]] from [[Template:{{PAGENAME}}/doc]].
 +
▪ [[Template:{{PAGENAME}}/Examples|Examples]] ▪ [[Template:{{PAGENAME}}/Sandbox|Sandbox]] ▪
 +
|-
 +
|
 +
{{:Template:{{PAGENAME}}/doc}}
 +
|}
 +
</center>

Latest revision as of 04:20, 2 December 2019

Template-info.svg Template Documentation
This documentation is transcluded from Template:Documentation/doc.

ExamplesSandbox

Intro

In order to ensure the maximum usability of a template, wiki contributors must be able to use the template. Since some templates are quite complex, or may be counter-intuitive, documentation should be provided to show the users the available parameters, provide examples, explain any possible problems, etc.

This template is designed to make adding documentation to your template easier. It automatically creates links to a documentation page for your template, as well as links to a sandbox page for testing template modifications, and a page for examples showing the template in use.

Usage

To added the Documentation template to your page, add the following to your template:

  • <noinclude>{{Documentation}}</noinclude>

If your template already has a <noinclude> section, then add {{Documentation}} to the existing <noinclude> section. You can then transfer the non-included material to the newly linked documentation subpage.