Template:Documentation: Difference between revisions

From The World of Gotha
Jump to navigation Jump to search
m (Replaced content with "<div id="doc" style="border:1px solid #a2a9b1; background-color: #ecfcf4; padding: 10px;">{{{{{1|:{{BASEPAGENAME}}}}}/doc}}</div>")
Tag: Replaced
m (Add icon)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div id="doc" style="border:1px solid #a2a9b1; background-color: #ecfcf4; padding: 10px;">{{{{{1|:{{BASEPAGENAME}}}}}/doc}}</div>
<includeonly><div id="doc" style="border:1px solid #a2a9b1; background-color: #ecfcf4; padding: 10px;"><span id="head" style="font-size: 110%; font-weight: bold">[[File:Template info icon.png|40px]] {{SUBJECTSPACE}} documentation</span><hr />
{{:{{SUBJECTSPACE}}:{{BASEPAGENAME}}/doc}}</div>
<div id="foot" style="margin-top: 3px; border:1px solid #a2a9b1; background-color: #ecfcf4; padding: 10px;">''The above documentation is {{wp|Help:Transcludion|transcluded}} from [[:{{SUBJECTSPACE}}:{{BASEPAGENAME}}/doc]].<br />[[Special:PrefixIndex/:{{SUBJECTSPACE}}:{{BASEPAGENAME}}|Subpages of this template]].''</div></includeonly><noinclude>{{doc}}
 
[[Category:Templates]]

Latest revision as of 03:53, 11 October 2024

Template documentation
Not to be confused with Template:docsub.
Shortcut
{{doc}}

The {{documentation}} template transcludes template documentation from a /doc subpage and wraps it in a box. Placing detailed instructions and information about a template in a subpage keeps the template itself relatively clean, which may be helpful in the event troubleshooting the template becomes necessary.

Usage

After the template itself, place {{documentation}} between <noinclude> and </noinclude> tags. This prevents the documentation from being transcluded with the template.

Parameters

The template has no parameters.