Template:Doc/start: Difference between revisions

From CrossCode Wiki
Jump to navigation Jump to search
(Add support for Category:Module documentation)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<onlyinclude><!--
<onlyinclude><!--


-->{{#vardefine: docType | {{<!--
-->{{#vardefine: docType | {{#switch: {{SUBJECTSPACE}}<!--
  -->#switch: {{SUBJECTSPACE}}<!--
-->| Template = template<!--
  -->| Template = template<!--
-->| Module  = module<!--
  -->| Module  = module<!--
-->| User    = user template<!--
  -->| User    = user template<!--
-->| #default = 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.svg|50px|bottom|link=]] <!--
--><div class="plainlinks" style="float: right; margin-left: 5px">&#91;[{{fullurl:{{FULLPAGENAME}}|action=purge}} purge]&#93;</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 |<!--
-->&#91;[[{{FULLPAGENAME}}/doc|view]]&#93; <!--
-->&#91;[{{fullurl:{{FULLPAGENAME}}/doc|action=edit}} edit]&#93; <!--
-->&#91;[{{fullurl:{{FULLPAGENAME}}/doc|action=history}} history]&#93; <!--
--><nowiki/>}} }}<!--
-->&#91;[{{fullurl:{{FULLPAGENAME}}|action=purge}} purge]&#93;<!--
--></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]]

Latest revision as of 10:17, 22 May 2021

File:Template-info.svg Template Documentation