Template:Documentation: Difference between revisions

From PZwiki
mNo edit summary
mNo edit summary
Line 3: Line 3:


   --><div style="padding: 0.5em; background:#EAECF0; border-bottom: 1px solid #A2A9B1;"><!--
   --><div style="padding: 0.5em; background:#EAECF0; border-bottom: 1px solid #A2A9B1;"><!--
     --><span style="font-size:80%;" class="plainlinks">[[{{fullurl:{{{1|{{FULLPAGENAME}}/doc}}}}} <span title="view the documentation">view</span>]]  [[{{fullurl:{{{1|{{FULLPAGENAME}}/doc}}}|action=edit}} <span title="edit the documentation">edit</span>]]  [[{{fullurl:{{{1|{{FULLPAGENAME}}/doc}}}|action=history}} <span title="documentation history">history</span>]]  [[{{fullurl:{{FULLPAGENAME}}|action=purge}} <span title="purge this page">purge</span>]]</span><!--
     --><span style="font-size:80%;" class="plainlinks">[[{{fullurl:{{FULLPAGENAME}}/doc}} <span title="view the documentation">view</span>]]  [[{{fullurl:{{FULLPAGENAME}}/doc|action=edit}} <span title="edit the documentation">edit</span>]]  [[{{fullurl:{{FULLPAGENAME}}/doc|action=history}} <span title="documentation history">history</span>]]  [[{{fullurl:{{FULLPAGENAME}}|action=purge}} <span title="purge this page">purge</span>]]</span><!--
     --> '''Template documentation'''<!--
     --> '''Template documentation'''<!--


Line 20: Line 20:
   --></div><!--
   --></div><!--


   --><div style="background:#EAECF0; text-align: right; padding: 0.5em; border-top: 1px solid #A2A9B1;">''Documentation transcluded from [[{{{1|{{FULLPAGENAME}}/doc}}}]].<br>Editors can experiment in this template's sandbox ([[{{{1|{{FULLPAGENAME}}/sandbox}}}|create]])</div><!--
   --><div style="background:#EAECF0; text-align: right; padding: 0.5em; border-top: 1px solid #A2A9B1;">''Documentation transcluded from [[{{FULLPAGENAME}}/doc]].<br>Editors can experiment in this template's sandbox ([[{{FULLPAGENAME}}/sandbox|create]])</div><!--
--></div><!--
--></div><!--
--></onlyinclude></includeonly>
--></onlyinclude></includeonly>
{{documentation}}
{{documentation}}
[[Category:Template documentation| ]]
[[Category:Template documentation| ]]

Revision as of 14:16, 12 March 2021

[view] [edit] [history] [purge] Template documentation
The {{Documentation}} template is used to contain the documented information and instructions of a certain template from a /doc subpage.

Usage

To use this template, {{Documentation}} should be added to the template inside a <noinclude> tag, so the documentation isn't transcluded along with the template. Then add the documentation to the /doc page, and it will be added to the template. The documentation page should include the {{Documentation subpage}} template, so it is added to the appropriate documentation category.

Example

<!--Last line of your template code--><noinclude>
{{Documentation}}
</noinclude>

See also

Documentation transcluded from Template:Documentation/doc.
Editors can experiment in this template's sandbox (create)