Difference between revisions of "Template:Doc"
From Cantr II Wiki
(Added "discuss" link) |
|||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<table class="toccolours" style="margin:15px 0px 15px 0px; text-align:left; font-size: 100%; padding:10px; width:100%; background-color:#ECFCF4;" cellpadding="0px" cellspacing="0px" align="right"><tr><td> | <table class="toccolours" style="margin:15px 0px 15px 0px; text-align:left; font-size: 100%; padding:10px; width:100%; background-color:#ECFCF4;" cellpadding="0px" cellspacing="0px" align="right"><tr><td> | ||
− | <table style="background-color:#ECFCF4; width:100%;"><tr><th style="font-size: large; text-align:left;">Template documentation</th><td style="text-align:right;">[[{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}|action=edit}} edit]]</td></tr></table> | + | <table style="background-color:#ECFCF4; width:100%;"><tr><th style="font-size: large; text-align:left;">Template documentation</th><td style="text-align:right;">[ [[{{FULLPAGENAME}}/doc|view]] ] [ [[Template_talk:{{PAGENAME}}/doc|discuss]] ] [[{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}|action=edit}} edit]]</td></tr></table> |
---- | ---- | ||
− | {{{{PAGENAME}}/doc}} | + | {{{{PAGENAME}}/doc}}[[Category:Documented templates|{{PAGENAME}}]] |
− | </td></tr></table> | + | </td></tr></table><noinclude>[[Category:Meta-Templates|{{PAGENAME}}]]</noinclude> |
− | <noinclude>[[Category:Meta-Templates|{{PAGENAME}}]] | ||
− | </noinclude> |
Latest revision as of 23:31, 12 March 2010
{{Doc}} provides an easy way to add documentation for a template. UsagePut {{Doc}} at the end of the template, enclosed between tags noinclude. Without spaces or line breaks before. To function properly there must be a page called x/doc. Replacing "x" by the full name of the template. For example, the name of this template is Doc, but the full name of this template is Template:Doc. Therefore, the documentation of this template should be on the page Template:Doc/doc. See also
|