v50 Steam/Premium information for editors
  • v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
  • Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.

Difference between revisions of "Template:Documentation/doc"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
(explain nocat= parameter, color example)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
 
:''This template is intended for basic use on documentation. For more control over appearance, use [[Template:Docbox]]. ''
 
:''This template is intended for basic use on documentation. For more control over appearance, use [[Template:Docbox]]. ''
  
This template displays documentation on templates.
+
This template displays documentation on templates. Pages using this template will automatically be added to [[:Category:Templates]], unless the <code>nocat=</code> parameter is specified with a non-blank value.
  
 
===Usage===
 
===Usage===
  
  Normal template contents&lt;noinclude><nowiki>{{documentation}}</nowiki>&lt;/noinclude>
+
  Normal template contents'''{{tc|green|&lt;noinclude><nowiki>{{documentation}}</nowiki>&lt;/noinclude>}}'''
  
 
Documentation goes on "Template:(template name)/doc"
 
Documentation goes on "Template:(template name)/doc"
 +
 +
<includeonly>[[Category:Templates]]</includeonly>
 +
<noinclude>[[Category:Template Documentation]]</noinclude>

Latest revision as of 20:17, 24 September 2013

This template is intended for basic use on documentation. For more control over appearance, use Template:Docbox.

This template displays documentation on templates. Pages using this template will automatically be added to Category:Templates, unless the nocat= parameter is specified with a non-blank value.

Usage[edit]

Normal template contents<noinclude>{{documentation}}</noinclude>

Documentation goes on "Template:(template name)/doc"