Template:Doc/start: Difference between revisions
Jump to navigation
Jump to search
(Add support for Category:Module documentation) |
m (Format template source) |
||
Line 2: | Line 2: | ||
-->{{#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.png|50px|bottom|link=]] <span style="font-weight: bold; font-size: 125%;">Documentation</span><!-- | -->[[File:Template-{{#if: {{{nodoc|}}} | no | {{#if: {{{baddoc|}}} | bad }} }}info.png|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%;"><!-- | ||
-->Documentation<!-- | |||
--></span><!-- | |||
--><div class="plainlinks" style="float: right; margin-left: 5px"><!-- | |||
-->[[{{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}}]]}} | -->'''This {{#var:docType}} has no documentation. If you know how to use this {{#var:docType}}, please add some.'''<!-- | ||
-->{{#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]] | -->'''This {{#var:docType}}'s documentation has been marked as bad. Please improve or add to it.'''<!-- | ||
-->{{#ifeq: {{SUBPAGENAME}} | doc | | [[Category:{{#var:docType}}s with bad documentation|{{BASEPAGENAME}}]]}}<!-- | |||
-->}} }}<!-- | |||
--></onlyinclude></div> | |||
[[Category:Documentation templates]] |