Template:Template doc: Difference between revisions
Jump to navigation
Jump to search
(Created page with "<div id="documentation" style="clear: both; margin: 1em 0 0 0; border: 1px solid #aaa; background-color: #ecfcf4; padding: 1em;"> <div style="float: right;" class="plainlinks">&#...") |
Matthew250 (talk | contribs) (Undo revision 184418 by KEMONO PANTSU (talk)) |
||
(7 intermediate revisions by 4 users not shown) | |||
Line 2: | Line 2: | ||
<div style="float: right;" class="plainlinks">[[[{{{1|{{FULLPAGENAME}}/doc}}}|view]]] [[{{fullurl:{{{1|{{FULLPAGENAMEE}}/doc}}}|action=edit}} edit]] [[{{fullurl:{{{1|{{FULLPAGENAMEE}}}}}|action=purge}} purge]] | <div style="float: right;" class="plainlinks">[[[{{{1|{{FULLPAGENAME}}/doc}}}|view]]] [[{{fullurl:{{{1|{{FULLPAGENAMEE}}/doc}}}|action=edit}} edit]] [[{{fullurl:{{{1|{{FULLPAGENAMEE}}}}}|action=purge}} purge]] | ||
</div> | </div> | ||
<h1 style="margin-top:-0.25em; margin-bottom: 0.25em;">Documentation for ''{{{1|{{PAGENAME}}}}}''</h1><includeonly> | ''Note: portions of the template sample may not be visible without values provided. This is normal.''<br /><h1 style="margin-top:-0.25em; margin-bottom: 0.25em;">Documentation for ''{{{1|{{PAGENAME}}}}}''</h1><includeonly> | ||
{{ #ifexist: {{{content|{{NAMESPACE}}:{{PAGENAME}}/doc}}} | {{{{{content|{{NAMESPACE}}:{{PAGENAME}}/doc}}}}} | }} | {{ #ifexist: {{{content|{{NAMESPACE}}:{{PAGENAME}}/doc}}} | {{{{{content|{{NAMESPACE}}:{{PAGENAME}}/doc}}}}} | }} | ||
</div></includeonly><includeonly> | </div></includeonly><includeonly> |
Latest revision as of 03:54, 13 June 2023
Note: portions of the template sample may not be visible without values provided. This is normal.
Documentation for Template doc
Usage
- Place
{{Template doc}}
insidetags on a template page to display template documentation.
- Generally template documentation should only be used on complex templates with multiple parameters. The majority of templates won't need a separate documentation subpage.
- If you want to have documentation displayed without a subpage, but with the green box, use
{{Doc begin}}
.