Difference between revisions of "Template:Documentation/start box"
From MediaWiki
(Created page with "<!-- Start of green doc box --><div id="template-documentation" class="template-documentation iezoomfix"><!-- Add the heading at the top of the doc box: -->{{#ifeq: {{{hea...") |
(let's see about reusing this for modules at some point...) |
||
Line 8: | Line 8: | ||
#if: {{{content|}}} | #if: {{{content|}}} | ||
| | | | ||
− | | <!--Add the [edit][purge] or [create] links--> | + | | <!--Add the [view][edit][history][purge] or [create] links--> |
<span class="editsection plainlinks" id="doc_editlinks">{{ | <span class="editsection plainlinks" id="doc_editlinks">{{ | ||
#if: {{{doc exist|yes}}} | #if: {{{doc exist|yes}}} | ||
− | | [[{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}|action=edit}} edit]] [[{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}|action=history}} history]] [{{purge|purge}}] | + | | [[[{{{docpage|{{FULLPAGENAME}}/doc}}}|view]]] [[{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}|action=edit}} edit]] [[{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}|action=history}} history]] [{{purge|purge}}] |
| <!--/doc doesn't exist--> | | <!--/doc doesn't exist--> | ||
[[{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}| action=edit&preload={{ | [[{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}| action=edit&preload={{ | ||
Line 32: | Line 32: | ||
{{#switch: {{SUBJECTSPACE}} | {{#switch: {{SUBJECTSPACE}} | ||
| {{ns:Template}} = [[File:Template-info.png|50px|link=|alt=Documentation icon]] Template documentation | | {{ns:Template}} = [[File:Template-info.png|50px|link=|alt=Documentation icon]] Template documentation | ||
+ | | {{ns:Module}} = [[File:Template-info.png|50px|link=|alt=Documentation icon]] Module documentation | ||
| {{ns:File}} = Summary | | {{ns:File}} = Summary | ||
| #default = Documentation | | #default = Documentation | ||
Line 39: | Line 40: | ||
{{{heading|}}} | {{{heading|}}} | ||
}}</span></div> | }}</span></div> | ||
− | }} | + | }}<noinclude><!-- close the div --></div> |
+ | |||
+ | {{pp-template}} | ||
+ | <!-- Add categories and interwikis to the /doc subpage, not here! --> | ||
+ | </noinclude> |
Revision as of 08:13, 19 March 2013
{{#ifeq: ¬ |
|
|{{
}}#if: | | {{ #if: yes | [view] [edit] [history] [ ] | [#if: _ | %7B%7B%7Bpreload%7D%7D%7D_ | {{#ifeq: Template | File_ | Template:Documentation/preload-filespace_ | Template:Documentation/preload_ }} }} create] }} }} {{#switch: ¬ | ¬ = {{#switch: Template | Template = 50px Template documentation | Template:Ns:Module = 50px Module documentation | File = Summary | #default = Documentation }} | #default =}}
{{#ifeq:{{#switch:{{#switch:{{#ifeq:-|-sysop|move|}}
|semi |autoconfirmed=semi |administrator |full |sysop=indef |move=move |templateeditor=template |#default=template}} |move={{#ifeq: {{#switch:{{#ifeq:documentation/start box/template|documentation/start box/template|undefined|{{#ifeq:documentation/start box|sandbox|sysop|undefined}}}} |semi |autoconfirmed = autoconfirmed |administrator |full |sysop = sysop |undefined = |#default = }} |sysop|yes|no }} |create={{#if: {{#switch:{{#ifeq:documentation/start box/template|documentation/start box/template|undefined|{{#ifeq:documentation/start box|sandbox|sysop|undefined}}}} |semi |autoconfirmed = autoconfirmed |administrator |full |sysop = sysop |undefined = |#default = }} |yes|no }} |template={{#if: {{#switch:{{#ifeq:documentation/start box/template|documentation/start box/template|undefined|{{#ifeq:documentation/start box|sandbox|sysop|undefined}}}} |templateeditor |template = templateeditor |administrator |full |sysop = sysop |undefined = |#default = }} |yes|no }} |pc1 ={{#ifeq: {{#switch:{{#ifeq:documentation/start box/template|documentation/start box/template|undefined|{{#ifeq:documentation/start box|sandbox|sysop|undefined}}}} |pc1 = autoconfirmed |undefined = Template:PENDINGCHANGELEVEL |#default = }} |autoconfirmed |yes|no }} |pc2 ={{#ifeq: {{#switch:{{#ifeq:documentation/start box/template|documentation/start box/template|undefined|{{#ifeq:documentation/start box|sandbox|sysop|undefined}}}} |pc2 = review |undefined = Template:PENDINGCHANGELEVEL |#default = }} |review |yes|no }}
|#default={{#if:
{{#switch:{{#ifeq:documentation/start box/template|documentation/start box/template|undefined|{{#ifeq:documentation/start box|sandbox|sysop|undefined}}}} |semi |autoconfirmed = autoconfirmed |administrator |full |sysop = sysop |undefined = |#default = }} |{{#ifeq:{{#switch: |semi |autoconfirmed = autoconfirmed |administrator |full |sysop = sysop |#default = }} |{{#switch:{{#ifeq:documentation/start box/template|documentation/start box/template|undefined|{{#ifeq:documentation/start box|sandbox|sysop|undefined}}}} |semi |autoconfirmed = autoconfirmed |administrator |full |sysop = sysop |undefined = |#default = }} |no|yes }} |no}}
}}|yes|{{#ifeq:yes|yes|
| {{#invoke:Message box|mbox}} }}|}}{{#ifeq:{{#ifeq:documentation/start box/template|documentation/start box/template|undefined|{{#ifeq:documentation/start box|sandbox|sysop|undefined}}}}|templateeditorundefined|{{#switch:Template|Template|Module=|}}}}{{#ifeq:{{#ifeq:template|template|{{#switch:{{#ifeq:-|-sysop|move|}}
|semi |autoconfirmed={{#ifeq:|sysop|}} |move= |administrator |full |sysop |templateeditor |#default=}}}}{{#ifeq:template|file|[[category:{{#switch: |semi |autoconfirmed=semi-protected |administrator |full |sysop |templateeditor |#default=protected}} images|documentation/start box]]}}|no||{{#ifeq:Template|Template|{{#switch:{{#ifeq:-|-sysop|move|}} |semi |autoconfirmed={{#ifeq:|sysop|}} |move= |administrator |full |sysop |templateeditor |#default=}}}}{{#ifeq:Template|File|[[Category:{{#switch: |semi |autoconfirmed=Semi-protected |administrator |full |sysop |templateeditor |#default=Protected}} images|Documentation/start box]]}}}}