Template:Doc/start: Difference between revisions
Jump to navigation
Jump to search
m (Format template source) |
m (Use File:Template-info.svg) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<onlyinclude><!-- | <onlyinclude><!-- | ||
-->{{#vardefine: docType | {{ | -->{{#vardefine: docType | {{#switch: {{SUBJECTSPACE}}<!-- | ||
-->| Template = template<!-- | -->| Template = template<!-- | ||
-->| Module = module<!-- | -->| Module = module<!-- | ||
Line 13: | Line 12: | ||
--><div class="doc"><!-- | --><div class="doc"><!-- | ||
--><div class="doc-header"><!-- | --><div class="doc-header"><!-- | ||
-->[[File:Template-{{#if: {{{nodoc|}}} | no | {{#if: {{{baddoc|}}} | bad }} }}info. | -->[[File:Template-{{#if: {{{nodoc|}}} | no | {{#if: {{{baddoc|}}} | bad }} }}info.svg|50px|bottom|link=]] <!-- | ||
--><span style="font-weight: bold; font-size: 125%;"><!-- | --><span style="font-weight: bold; font-size: 125%;"><!-- | ||
-->Documentation<!-- | -->{{#switch: {{SUBJECTSPACE}}<!-- | ||
-->| Template = Template Documentation<!-- | |||
-->| Module = Module Documentation<!-- | |||
-->| #default = Documentation<!-- | |||
-->}}<!-- | |||
--></span><!-- | --></span><!-- | ||
--><div class="plainlinks" style="float: right; margin-left: 5px"><!-- | --><div class="plainlinks" style="float: right; margin-left: 5px"><!-- | ||
-->{{#ifeq: {{SUBPAGENAME}} | doc | | {{#ifexist: {{FULLPAGENAME}}/doc |<!-- | |||
-->[[[{{FULLPAGENAME}}/doc|view]]] <!-- | |||
-->[[{{fullurl:{{FULLPAGENAME}}/doc|action=edit}} edit]] <!-- | |||
-->[[{{fullurl:{{FULLPAGENAME}}/doc|action=history}} history]] <!-- | |||
--><nowiki/>}} }}<!-- | |||
-->[[{{fullurl:{{FULLPAGENAME}}|action=purge}} purge]]<!-- | -->[[{{fullurl:{{FULLPAGENAME}}|action=purge}} purge]]<!-- | ||
--></div><!-- | --></div><!-- | ||
Line 23: | Line 31: | ||
-->{{#if: {{{nodoc|}}} |<!-- | -->{{#if: {{{nodoc|}}} |<!-- | ||
-->'''This {{#var:docType}} has no documentation. If you know how to use this {{#var:docType}}, please add some.'''<!-- | --><p>'''This {{#var:docType}} has no documentation. If you know how to use this {{#var:docType}}, please add some.'''</p><!-- | ||
-->{{#ifeq: {{SUBPAGENAME}} | doc | | [[Category:{{#var:docType}}s with no documentation|{{BASEPAGENAME}}]]}}<!-- | -->{{#ifeq: {{SUBPAGENAME}} | doc | | [[Category:{{#var:docType}}s with no documentation|{{BASEPAGENAME}}]]}}<!-- | ||
-->| {{#if: {{{baddoc|}}} |<!-- | -->| {{#if: {{{baddoc|}}} |<!-- | ||
-->'''This {{#var:docType}}'s documentation has been marked as bad. Please improve or add to it.'''<!-- | --><p>'''This {{#var:docType}}'s documentation has been marked as bad. Please improve or add to it.'''</p><!-- | ||
-->{{#ifeq: {{SUBPAGENAME}} | doc | | [[Category:{{#var:docType}}s with bad documentation|{{BASEPAGENAME}}]]}}<!-- | -->{{#ifeq: {{SUBPAGENAME}} | doc | | [[Category:{{#var:docType}}s with bad documentation|{{BASEPAGENAME}}]]}}<!-- | ||
-->}} }}<!-- | -->}} }}<!-- |