Template:Documentation/start: Difference between revisions
Created page with "<includeonly><!-- -->{{#vardefine: nodoc | {{{nodoc}}} }}<!-- -->{{#vardefine: baddoc | {{{baddoc}}} }}<!-- -->{{#if: {{{1|}}} | {{#ifeq: {{SUBPAGENAME}} | doc | | <div style="height: 1em; clear: both; margin-top: 5px;"></div> }} }}<!-- --><div class="doc"> <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><!-- -->..." |
added missing pieces from original template and moved styles to stylesheet |
||
Line 1: | Line 1: | ||
<includeonly><!-- | <includeonly><templatestyles src="Template:Documentation/styles.css"/><!-- | ||
-->{{#vardefine: nodoc | {{{nodoc}}} }}<!-- | -->{{#vardefine: nodoc | {{{nodoc}}} }}<!-- | ||
-->{{#vardefine: baddoc | {{{baddoc}}} }}<!-- | -->{{#vardefine: baddoc | {{{baddoc}}} }}<!-- | ||
-->{{#if: {{{1|}}} | {{#ifeq: {{SUBPAGENAME}} | doc | | <div | -->{{#if: {{{1|}}} | {{#ifeq: {{SUBPAGENAME}} | doc | | <div class="doc-clear"></div> }} }}<!-- | ||
--><div class="doc"> | --><div class="doc doc-color-{{#if: {{{nodoc|}}} | nodoc | {{#if: {{{baddoc|}}} | baddoc | std }} }}"> | ||
<div class="doc-header"><!-- | <div class="doc-header"><!-- | ||
-->[[File:Template-{{#if: {{{nodoc|}}} | no | {{#if: {{{baddoc|}}} | bad }} }}info.png|50px|bottom|link=]] <span | -->[[File:Template-{{#if: {{{nodoc|}}} | no | {{#if: {{{baddoc|}}} | bad }} }}info.png|50px|bottom|link=|class=notpageimage]] <span class="doc-header-title">Documentation</span><!-- | ||
--><div class="plainlinks | --><div class="plainlinks doc-header-purge"><nowiki>[</nowiki>[{{fullurl:{{FULLPAGENAME}}|action=purge}} purge]<nowiki>]</nowiki></div></div><!-- | ||
-->{{#if: {{{nodoc|}}} | '''This | -->{{#if: {{{nodoc|}}} | '''This {{NAMESPACE}} has no documentation. If you know how to use this {{NAMESPACE}}, please add some.'''<!-- | ||
-->{{#ifeq: {{SUBPAGENAME}} | doc | | [[Category: | -->{{#ifeq: {{SUBPAGENAME}} | doc | | [[Category:{{#ifeq:{{NAMESPACE}}|Gallery|Galleries|{{NAMESPACE}}s}} with no documentation|{{BASEPAGENAME}}]]}} |<!-- | ||
-->{{#if: {{{baddoc|}}} | '''This | -->{{#if: {{{baddoc|}}} | '''This {{NAMESPACE}}'s documentation has been marked as bad. Please improve or add to it.'''<!-- | ||
-->{{#ifeq: {{SUBPAGENAME}} | doc | | [[Category: | -->{{#ifeq: {{SUBPAGENAME}} | doc | | [[Category:{{#ifeq:{{NAMESPACE}}|Gallery|Galleries|{{NAMESPACE}}s}} with bad documentation|{{BASEPAGENAME}}]]}}<!-- | ||
-->}} }}</includeonly><noinclude>[[Category:Documentation templates]]</noinclude> | -->}} }}</includeonly><noinclude> | ||
{{/doc}} | |||
[[Category:Documentation templates]]</noinclude> |
Latest revision as of 17:14, 8 June 2025
This Template is a modified version of Industrial Craft Wiki - Template:/doc (Rev.: 8 March 2015)
[1]
Creates the header and starts the <div>
section of a documentation. Defines variables nodoc
and baddoc
which are used by {{Doc/end}}
at the end of a documentation page. If parameter baddoc=1
or nodoc=1
is used the basepage of a template will be added to Category:Templates with bad documentation or Category:Templates with no documentation and the color scheme changes from blue to yellow (baddoc) or red (nodoc). The name of categories depends on the namespace as well.
Usage
For more detailes on how to create a documentation, visit the base page: {{Doc}}
References
- ↑ Industrialcraft wiki - Template:Doc/start. Archieved by WaybackMachine, date: 29 November 2020