Template:Documentation: Difference between revisions
Appearance
create doc template |
Gammaton32 (talk | contribs) removed color |
||
(10 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<div style="padding: 15px; border: 1px solid #aaa; border-radius: 3px; | <div style="clear: both; margin: 1em 0 0 0; padding: 15px; border: 1px solid #aaa; border-radius: 3px; box-shadow:0 .25em .35em -0.25em rgba(0,0,0,0.5);"><!-- | ||
<div style="border-bottom: 1px solid #aaa; margin-bottom:10px;"> | --><div style="border-bottom: 1px solid #aaa; margin-bottom:10px;"><!-- | ||
<div style="font-weight: bold; font-size:115%;"> {{#switch:{{NAMESPACE}}|Template=Template documentation|Module=Module documentation|#default=Documentation}} <span class="plainlinks" style="font-size:75%;"> {{#if:{{{contents|}}}|[[{{fullurl:{{FULLPAGENAME}}|action=edit}} edit]] [[{{fullurl:{{FULLPAGENAME}}|action=purge}} purge]]|{{#ifexist:{{FULLPAGENAME}}/doc|[[[{{FULLPAGENAME}}/doc|view]]] [[{{fullurl:{{FULLPAGENAME}}/doc|action=edit}} edit]] [[{{fullurl:{{FULLPAGENAME}}|action=purge}} purge]]|[[[{{FULLPAGENAME}}/doc|create]]]}}}} | --><div style="font-weight: bold; font-size:115%;"> {{#switch:{{NAMESPACE}}|Template=Template documentation|Module=Module documentation|#default=Documentation}} <span class="plainlinks" style="font-size:75%;"> {{#if:{{{contents|}}}|[[{{fullurl:{{FULLPAGENAME}}|action=edit}} edit]] [[{{fullurl:{{FULLPAGENAME}}|action=purge}} purge]]|{{#ifexist:{{FULLPAGENAME}}/doc|[[[{{FULLPAGENAME}}/doc|view]]] [[{{fullurl:{{FULLPAGENAME}}/doc|action=edit}} edit]] [[{{fullurl:{{FULLPAGENAME}}/doc|action=history}} history]] [[{{fullurl:{{FULLPAGENAME}}|action=purge}} purge]]|[[[{{FULLPAGENAME}}/doc|create]]]}}}} | ||
</span></div> | </span></div><!-- | ||
</div> | --></div> | ||
{{#if:{{{contents|}}}|{{{contents}}}|{{#ifexist:{{FULLPAGENAME}}/doc|{{:{{FULLPAGENAME}}/doc}}|{{{1|No documentation available.}}}}}}} | {{#if:{{{contents|}}}|{{{contents}}}|{{#ifexist:{{FULLPAGENAME}}/doc|{{:{{FULLPAGENAME}}/doc}}|{{{1|No documentation available. Documentation may be created at [[{{FULLPAGENAME}}/doc]].}}}}}}}<!-- | ||
</div> | --></div> |
Latest revision as of 22:45, 26 January 2025
Usage[edit source]
By default, this template displays the /doc subpage if it exists, or shows a link to create one if it does not.
<noinclude> {{Documentation}} </noinclude>
For custom documentation, use the contents parameter to override the /doc subpage.
<noinclude> {{Documentation | contents = <!-- Custom documentation --> }} </noinclude>