Template:Documentation: Difference between revisions

From The Deadlock Wiki
Jump to navigation Jump to search
osrsw>Habblet
No edit summary
m 15 revisions imported
 
(25 intermediate revisions by 11 users not shown)
Line 1: Line 1:
<includeonly>{{#ifeq:{{SUBPAGENAME}}|doc
<templatestyles src="Documentation/styles.css" />
|<!-- Subpage header -->
<div class="template-documentation"><!--
<table class="messagebox info"><tr>
--><div class="documentation-header"><!--
<td>[[File:Information icon-grey.png|40px|Documentation]]</td>
--><div class="documentation-title"> {{#switch:{{NAMESPACE}}|Template=Template documentation|#default=Documentation}} <span class="plainlinks documentation-links"> {{#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}}/doc|action=history}} history]&#93;&nbsp;&#91;[{{fullurl:{{FULLPAGENAME}}|action=purge}} purge]&#93;|&#91;[[{{FULLPAGENAME}}/doc|create]]&#93;}}}}
<td>'''This is a documentation subpage for [[{{{1|{{#titleparts:{{FULLPAGENAME}}|-1}}}}}]]'''.<span style="font-size:0.85em"><br />It contains usage information, categories, and other content that is not part of the original template page.</span></td>
</span></div><!--
</tr></table>{{#ifeq:{{NAMESPACE}}|Template|[[Category:Template documentation|{{BASEPAGENAME}}]]}}
--></div>
 
{{#if:{{{contents|}}}|{{{contents}}}|{{#ifexist:{{FULLPAGENAME}}/doc|{{:{{FULLPAGENAME}}/doc}}|{{{1|No documentation available.}}}}}}}<!--
|<!-- Template header -->
--></div>
 
<div class="documentation" style="clear:both;">
 
<div style="padding-bottom:1px; border-bottom:1px solid #898989; margin-bottom:1px">
<span style="font-weight:bold; font-size:125%">Template documentation</span><span class="editsection plainlinks" id="doc_editlinks"><small><nowiki>[</nowiki>[[{{{1|{{FULLPAGENAME}}}}}/doc|view]]<nowiki>]</nowiki> [[{{fullurl:{{{1|{{FULLPAGENAME}}}}}/doc|action=edit}} edit]]  [[{{fullurl:{{FULLPAGENAME}}|action=purge}} purge]]</small></span>
</div><span style="font-size:85%">This documentation is transcluded from [[{{{1|{{FULLPAGENAME}}}}}/doc]].</span><br />
 
<div style="clear:both; margin-bottom:25px"></div><!-- The main DIV tag is intentionally left unclosed - for obvious reasons -->
}}__NOEDITSECTION__</includeonly><noinclude>{{/doc}}</noinclude>

Latest revision as of 17:12, 25 August 2026

Template documentation [view] [edit] [history] [purge]
CSS3 logo.svg
This template uses CSS found at Documentation/styles.css.

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>