Template:Documentation: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (Add icon) |
||
Line 1: | Line 1: | ||
<includeonly><div id="doc" style="border:1px solid #a2a9b1; background-color: #ecfcf4; padding: 10px;"><span id="head" style="font-size: 110%; font-weight: bold">{{SUBJECTSPACE}} documentation</span><hr /> | <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> | {{:{{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}} | <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]] | [[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.