Template:Documentation

From KevinWiki

(Difference between revisions)
Jump to: navigation, search
(New page: <div class="template-documentation" style="margin-top:1em;"><!-- -->{{#if:{{{heading|defaultnotblank}}}|<!-- --><div style="padding-bottom:3px; border-bottom:1px solid #aaa; margin-bott...)
 
(One intermediate revision not shown)
Line 1: Line 1:
-
<div class="template-documentation" style="margin-top:1em;"><!--
+
<!--
-
-->{{#if:{{{heading|defaultnotblank}}}|<!--
+
  Automatically add {{template sandbox notice}} when on a /sandbox page.
-
  --><div style="padding-bottom:3px; border-bottom:1px solid #aaa; margin-bottom:1ex;"><!--
+
-->{{#ifeq: {{SUBPAGENAME}} | sandbox
-
  --><span class="editsection plainlinks"><!--
+
| <div style="clear: both;"></div>{{template sandbox notice}}
-
  -->[[{{fullurl:{{{1|{{SUBJECTPAGENAME}}/doc}}}|<!--
+
}}<!--
-
      -->action=edit{{#ifexist: {{{1|{{SUBJECTSPACE}}:{{SUBJECTPAGENAME}}/doc}}} |<!--
+
  Automatically add {{pp-template}} to protected templates.
-
        nothing
+
-->{{template other
-
      -->|<!--else--><!--
+
| {{#ifeq: {{PROTECTIONLEVEL:move}} | sysop
-
        -->&preload=Template:Documentation/preload<!--
+
  | {{pp-template}}
-
      -->}}<!--
+
  | {{#if: {{PROTECTIONLEVEL:edit}}
-
  -->}} edit]]</span><!--
+
    | {{pp-template}}
-
  --><span style="font-size: 150%">{{{heading|Documentation}}}</span><!--
+
    | <!--Not protected, or only semi-move-protected-->
-
  --></div><!--
+
    }}
-
-->}}
+
  }}
-
<div id="template_doc_page_transcluded" class="dablink plainlinks">''This [[Wikipedia:Template documentation|documentation]] is [[Wikipedia:Transclusion|transcluded]] from [[{{{1|{{FULLPAGENAME}}/doc}}}]].'' <small>(<!--
+
}}<!--
-
  -->[[{{{1|{{SUBJECTPAGENAME}}/doc}}}|view]] | <!--
+
  Start of green doc box.
-
  -->[{{fullurl:{{{1|{{SUBJECTPAGENAME}}/doc}}}|<!--
+
-->{{documentation/core2
-
      -->action=edit<!--
+
| heading = {{{heading|¬}}}   <!--Empty but defined means no header-->
-
      -->{{#ifexist: {{{1|{{SUBJECTSPACE}}:{{SUBJECTPAGENAME}}/doc}}} |<!--
+
| heading-style = {{{heading-style|}}}
-
        nothing
+
| content = {{{content|}}}
-
      -->|<!--else--><!--
+
| link box = {{{link box|}}}   <!--So "link box=off" works-->
-
        -->&preload=Template:Documentation/preload<!--
+
 
-
      -->}}<!--
+
<!--Some namespaces must have the /doc, /sandbox and /testcases
-
  -->}} edit] | <!--
+
    in talk space-->
-
  -->[{{fullurl:{{{1|{{SUBJECTPAGENAME}}/doc}}}|action=history}} history]<!--
+
| docspace =
-
-->)</small> {{#ifexist: {{#rel2abs: /sandbox }} | <!--
+
  {{#switch: {{SUBJECTSPACE}}
-
  -->{{#ifexist: {{#rel2abs: /testcases}} | <!--
+
  | {{ns:0}}
-
      --><br> ''This template has a [[{{FULLPAGENAME}}/sandbox|sandbox]]'' <small>([{{fullurl:{{FULLPAGENAME}}/sandbox|action=edit}} edit])</small> ''and [[{{FULLPAGENAME}}/testcases|testcases]] for editors to experiment.''<!--
+
  | {{ns:File}}
-
  -->}}<!-- else don't show when just 1 of /sandbox or /testcases exists --><!--
+
  | {{ns:MediaWiki}}
-
-->}} </div>{{#ifexist:{{{1|{{SUBJECTPAGENAME}}/doc}}}|
+
  | {{ns:Category}} = {{TALKSPACE}}
-
{{<!-- -->{{{1|{{SUBJECTPAGENAME}}/doc}}}<!-- -->}}|}} <div style="clear:both;" /></div></div>
+
  | #default = {{SUBJECTSPACE}}
 +
  }}
 +
 
 +
| 1 = {{{1|}}}   <!--Other docname, if fed-->
 +
 
 +
<!--The namespace is added in /core2-->
 +
| template page =
 +
  {{#switch: {{SUBPAGENAME}}
 +
  | sandbox
 +
  | testcases = {{BASEPAGENAME}}
 +
  | #default = {{PAGENAME}}
 +
  }}
 +
 
 +
}}<!--End of green doc box--><noinclude>
 +
 
 +
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 +
</noinclude>

Latest revision as of 10:44, 2 August 2010

[create] 50px Template documentation


Personal tools