Template:Documentation: Difference between revisions
From Hattrick
Jump to navigationJump to search
No edit summary |
No edit summary |
||
| (10 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
__NOEDITSECTION__ | |||
<div style="clear: both; margin: 1em 0 0 0; border: 1px solid #aaa; background-color: #ecfcf4; padding: 1em;"> | <div style="clear: both; margin: 1em 0 0 0; border: 1px solid #aaa; background-color: #ecfcf4; padding: 1em;"> | ||
<div style="padding-bottom: 3px; border-bottom: 1px solid #aaa; margin-bottom: 1ex;"> | <div style="padding-bottom: 3px; border-bottom: 1px solid #aaa; margin-bottom: 1ex;"> | ||
<span style="float: right; margin-left: 5px; background: none !important; padding: 0 !important;">[[{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}|action=edit}} edit]]</span> | <span class="plainlinks" style="float: right; margin-left: 5px; background: none !important; padding: 0 !important;"> | ||
<span style="font-weight: bold; font-size: 125%">[[Image:Template-info.png|50px|alt=]] | [[{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}|action=edit}} {{#ifexist: Template:Documentation/{{PageLanguage}} | {{Documentation/{{PageLanguage}}|part=edit}} | {{Documentation/En|part=edit}}}}]] | ||
</span> | |||
<span style="font-weight: bold; font-size: 125%">[[Image:Template-info.png|50px|alt=|link=]] | |||
{{: {{{ | {{#ifexist: Template:Documentation/{{PageLanguage}} | {{Documentation/{{PageLanguage}}|part=title}} | {{Documentation/En|part=title}}}} | ||
</span> | |||
</div> | </div> | ||
{{:{{{docpage|{{FULLPAGENAME}}/doc}}}}}</div> | |||
<noinclude>[[Category:Template documentation]]</noinclude> | <noinclude>[[Category:Template documentation]]</noinclude> | ||
Latest revision as of 21:04, 17 March 2013
[edit]
Template documentation
Usage
Normally this template is used without any parameters and placed at the bottom of the template or page being documented, in a <noinclude> section. Like this:
<!--Last line of your template code--><noinclude>
{{documentation}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>
Parameters
docpage | if you want to use documentation from another template
Example: {{documentation|docpage=Template:Country data/doc}}
Then this template automatically loads the content from the /doc subpage of the template it is used on.