Difference between revisions of "Template:Documentation"

From Team Fortress Wiki
Jump to: navigation, search
Line 1: Line 1:
<div style="border:1px solid #aaa; background:#F2F2FC; padding:0.75em; margin:0.5em 0;">
+
<div style="clear: both; margin: 1em 0 0 0; border: 1px solid #aaa; background-color: #ecfcf4; padding: 1em;">
<div style="float: right;" class="plainlinks">&#91;[[{{{1|{{FULLPAGENAME}}/doc}}}|view]]&#93;&nbsp;&#91;[{{fullurl:{{{1|{{FULLPAGENAMEE}}/doc}}}|action=edit}} edit]&#93;&nbsp;&#91;[{{fullurl:{{{1|{{FULLPAGENAMEE}}/doc}}}|action=purge}} purge]&#93;
+
<div style="float: right;" class="plainlinks">&#91;[[{{{1|{{FULLPAGENAME}}/doc}}}|view]]&#93;&nbsp;&#91;[{{fullurl:{{{1|{{FULLPAGENAMEE}}/doc}}}|action=edit}} edit]&#93;&nbsp;&#91;[{{fullurl:{{{1|{{FULLPAGENAMEE}}}}}|action=purge}} purge]&#93;
 
</div>
 
</div>
 
<h1 style="margin-top:-0.25em; margin-bottom: 0.25em;">Documentation for ''{{{1|{{PAGENAME}}}}}''</h1><includeonly>
 
<h1 style="margin-top:-0.25em; margin-bottom: 0.25em;">Documentation for ''{{{1|{{PAGENAME}}}}}''</h1><includeonly>

Revision as of 09:46, 11 September 2010

Documentation for Documentation

Usage

  • Place {{Template doc}} inside tags 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}}.