In memory of Ben “bushing” Byer, who passed away on Monday, February 8th, 2016.

Difference between revisions of "Template:Documentation"

From WiiBrew
Jump to navigation Jump to search
m (Added purge button)
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<div class="template-documentation"><!--
+
<div style="background:{{{bg|}}};" class="template-documentation"><!--
  
 
These are the literal class definitions in common.css:
 
These are the literal class definitions in common.css:
Line 18: Line 18:
 
   |<span class="editsection plainlinks" id="doc_editlinks">{{#ifexist: {{{1|{{Documentation/docname}}}}}
 
   |<span class="editsection plainlinks" id="doc_editlinks">{{#ifexist: {{{1|{{Documentation/docname}}}}}
 
     |<!--**    /doc EXISTS**  -->[[{{fullurl:{{{1|{{Documentation/docname}}}}}|action=edit}} edit]]
 
     |<!--**    /doc EXISTS**  -->[[{{fullurl:{{{1|{{Documentation/docname}}}}}|action=edit}} edit]]
     |<!--**/doc DOESN'T EXIST**-->[[{{fullurl:{{{1|{{Documentation/docname }}}}}|action=edit&preload=Template:Documentation/preload}} create]]
+
     |<!--**/doc DOESN'T EXIST**-->[[{{fullurl:{{{1|{{Documentation/docname}}}}}|action=edit&preload=Template:Documentation/preload}} create]]
 
   }}</span>
 
   }}</span>
   }} <span style="{{#if:{{{heading-style|}}}|{{{heading-style}}}|{{#ifeq:{{NAMESPACE}}|{{ns:template}}|font-weight: bold; font-size: 125%|font-size: 150%}}}}">{{#if:{{{heading|}}}|{{{heading}}}|{{#ifeq:{{NAMESPACE}}|{{ns:template}}|[[Image:Template-info.svg|50px]] Template documentation|Documentation}}}}</span></div>
+
  <span class="plainlinks"> [[{{fullurl:{{{1|{{FULLPAGENAME}}}}}|action=purge}} purge]]</span>
 +
   }} <span style="{{#if:{{{heading-style|}}}|{{{heading-style}}}|{{#ifeq:{{NAMESPACE}}|{{ns:template}}|font-weight: bold; font-size: 125%|font-size: 150%}}}}">{{#if:{{{heading|}}}|{{{heading}}}|{{#ifeq:{{NAMESPACE}}|{{ns:template}}|Template documentation|Documentation}}}}</span></div>
 
  }}<!--
 
  }}<!--
  
 
  --><div id="template_doc_page_transcluded" class="dablink plainlinks"><!--
 
  --><div id="template_doc_page_transcluded" class="dablink plainlinks"><!--
 
   -->{{#ifexist: {{{1|{{Documentation/docname}}}}}
 
   -->{{#ifexist: {{{1|{{Documentation/docname}}}}}
   |<!--**/doc EXISTS**-->This [[Wikipedia:Template documentation|documentation]] is [[Wikipedia:Transclusion|transcluded]] from [[{{{1|{{Documentation/docname}}}}}]]. <small style="font-style: normal">([{{fullurl:{{{1|{{Documentation/docname}}}}}|action=edit}} edit] &#124; [{{fullurl:{{{1|{{Documentation/docname}}}}}|action=history}} history])</small><br />
+
   |<!--**/doc EXISTS**-->This documentation is transcluded from [[{{{1|{{Documentation/docname}}}}}]]. <small style="font-style: normal">([{{fullurl:{{{1|{{Documentation/docname}}}}}|action=edit}} edit] &#124; [{{fullurl:{{{1|{{Documentation/docname}}}}}|action=history}} history])</small><br />
 
  }}<!--
 
  }}<!--
  

Latest revision as of 09:11, 17 March 2023

[edit] [purge] Template documentation

Usage

Use {{Documentation}} or {{Doc}} in your <noinclude> section to add a documentation section like this to your template. The documentation itself will be located on PAGENAME/doc

You can automatically get a basic starter documentation page by clicking the Create link after you have included this template in your template.

See also