Template:Documentation: Difference between revisions

From Deadlock Wiki
Jump to navigation Jump to search
Mgpt (talk | contribs)
create doc template
 
Mgpt (talk | contribs)
mNo edit summary
Line 1: Line 1:
<div style="padding: 15px; border: 1px solid #aaa; border-radius: 3px; background-color: #f3eee2;">
<div style="clear: both; padding: 15px; border: 1px solid #aaa; border-radius: 3px; background-color: #f3eee2;">
<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|}}}|&#91;[{{fullurl:{{FULLPAGENAME}}|action=edit}} edit]&#93;&nbsp;&#91;[{{fullurl:{{FULLPAGENAME}}|action=purge}} purge]&#93;|{{#ifexist:{{FULLPAGENAME}}/doc|&#91;[[{{FULLPAGENAME}}/doc|view]]&#93;&nbsp;&#91;[{{fullurl:{{FULLPAGENAME}}/doc|action=edit}} edit]&#93;&nbsp;&#91;[{{fullurl:{{FULLPAGENAME}}|action=purge}} purge]&#93;|&#91;[[{{FULLPAGENAME}}/doc|create]]&#93;}}}}
<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|}}}|&#91;[{{fullurl:{{FULLPAGENAME}}|action=edit}} edit]&#93;&nbsp;&#91;[{{fullurl:{{FULLPAGENAME}}|action=purge}} purge]&#93;|{{#ifexist:{{FULLPAGENAME}}/doc|&#91;[[{{FULLPAGENAME}}/doc|view]]&#93;&nbsp;&#91;[{{fullurl:{{FULLPAGENAME}}/doc|action=edit}} edit]&#93;&nbsp;&#91;[{{fullurl:{{FULLPAGENAME}}|action=purge}} purge]&#93;|&#91;[[{{FULLPAGENAME}}/doc|create]]&#93;}}}}

Revision as of 20:35, 11 September 2024

Template documentation [view] [edit] [purge]

Usage

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>