Template:Doc/start: Difference between revisions
Jump to navigation
Jump to search
(Add support for Category:Module documentation) |
m (Use File:Template-info.svg) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<onlyinclude><!-- | <onlyinclude><!-- | ||
-->{{#vardefine: docType | {{ | -->{{#vardefine: docType | {{#switch: {{SUBJECTSPACE}}<!-- | ||
-->| Template = template<!-- | |||
-->| Module = module<!-- | |||
-->| User = user template<!-- | |||
-->| #default = template<!-- | |||
-->}} }}<!-- | -->}} }}<!-- | ||
-->{{#if: {{{1|}}} | {{#ifeq: {{SUBPAGENAME}} | doc | | <div style="height: 1em; clear: both; margin-top: 5px;"></div> }} }}<!-- | -->{{#if: {{{1|}}} | {{#ifeq: {{SUBPAGENAME}} | doc | | <div style="height: 1em; clear: both; margin-top: 5px;"></div> }} }}<!-- | ||
--><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=]] <!-- | ||
--><div class="plainlinks" style="float: right; margin-left: 5px">[[{{fullurl:{{FULLPAGENAME}}|action=purge}} purge]]</div></div><!-- | --><span style="font-weight: bold; font-size: 125%;"><!-- | ||
-->{{#switch: {{SUBJECTSPACE}}<!-- | |||
-->| Template = Template Documentation<!-- | |||
-->| Module = Module Documentation<!-- | |||
-->| #default = Documentation<!-- | |||
-->}}<!-- | |||
--></span><!-- | |||
--><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]]<!-- | |||
--></div><!-- | |||
--></div><!-- | |||
-->{{#if: {{{nodoc|}}} | '''This {{#var:docType}} has no documentation. If you know how to use this {{#var:docType}}, please add some.'''<!-- | -->{{#if: {{{nodoc|}}} |<!-- | ||
-->{{#ifeq: {{SUBPAGENAME}} | doc | | [[Category:{{#var:docType}}s with no documentation|{{BASEPAGENAME}}]]}} | --><p>'''This {{#var:docType}} has no documentation. If you know how to use this {{#var:docType}}, please add some.'''</p><!-- | ||
-->{{#if: {{{baddoc|}}} | '''This {{#var:docType}}'s documentation has been marked as bad. Please improve or add to it.'''<!-- | -->{{#ifeq: {{SUBPAGENAME}} | doc | | [[Category:{{#var:docType}}s with no documentation|{{BASEPAGENAME}}]]}}<!-- | ||
-->{{#ifeq: {{SUBPAGENAME}} | doc | | [[Category:{{#var:docType}}s with bad documentation|{{BASEPAGENAME}}]]}}<!-- | -->| {{#if: {{{baddoc|}}} |<!-- | ||
-->}} }}</onlyinclude></div>[[Category:Documentation templates]] | --><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}}]]}}<!-- | |||
-->}} }}<!-- | |||
--></onlyinclude></div> | |||
[[Category:Documentation templates]] |