Template:Documentation: Difference between revisions

From Deadlock Wiki
Jump to navigation Jump to search
Sylphoid (talk | contribs)
add wlh
Mgpt (talk | contribs)
m this is already in the sidebar
Tag: Manual revert
Line 5: Line 5:
</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.}}}}}}}
<hr style="clear:both;" />{{*}} Pages that [[Special:WhatLinksHere/{{#titleparts:{{FULLPAGENAME}}|1}}|use]] this template.
</div>
</div>

Revision as of 14:29, 13 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>