Template:Documentation: Difference between revisions

From Irony Wiki
Jump to navigation Jump to search
(Undo revision 67 by Saucy (talk))
Tag: Undo
(fixing tables of contents)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div class="boilerplate" style="background-color:#ecfcf4;padding:0px 10px;border:1px solid #a2a9b1;margin-top:1em;">
<div class="boilerplate" style="background-color:#ecfcf4;padding:0px 10px;border:1px solid #a2a9b1;margin-top:1em;clear:both;">
<big>'''Documentation'''</big>
<div style="border-bottom: 1px solid #aaa;margin-bottom:1ex;">
----
<div style="display:flex;align-items:center;margin-top:0.5em;margin-bottom:0.3em;">
 
<div>[[File:Test Template Info-Icon - Version (2).svg|50px|alt=|link=]]</div>
''Documentation mirrored from [[{{FULLPAGENAME}}/doc]]''
<p style="margin:0 1em 0 0.5em;padding:0;font-weight:bold;font-size:1.3em;">Documentation</p>
<p class="mw-editsection-like plainlinks">&#91;[[{{FULLPAGENAME}}/doc|view]]&#93; &#91;[{{fullurl:{{FULLPAGENAME}}/doc|action=edit}} edit]&#93;</p>
</div>
</div>


{{{{FULLPAGENAME}}/doc}}
{{{{FULLPAGENAME}}/doc}}
</div>
</div>

Latest revision as of 01:50, 11 July 2021

Documentation

This is the preferred method for including documentation for a template.

Usage[edit source]

This should only be used on pages in the Template namespace. It should not be used in any articles.

Add the following to the end of a template to transclude documentation for it:

<noinclude>{{documentation}}</noinclude>

After adding this, you can press the edit button at the top of the green box to edit the contents of the documentation.

Keeping the documentation separate from the template itself has a few benefits, like easier organization and putting less strain on the server when the documentation is edited.

TemplateData[edit source]

This is the preferred method for including documentation for a template. This is only meant for pages in the Template namespace; it is NOT meant for use in articles.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
No parameters specified