Difference between revisions of "Help:Templates"

From Cantr II Wiki
Jump to: navigation, search
(Use of templates)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
There are many templates used by editors to mark what needs doing. Eventually there will be templates used to simplify formatting of articles. This is a list of all templates currently available in the wiki, with syntax and usage.
+
{{InterwikiLink:Help:Templates}}
 +
There are many [[:Category:Templates|templates]] used by editors to mark what needs doing. Eventually there will be templates used to simplify formatting of articles. This is a list of all templates currently available in the wiki, with syntax and usage.
 +
 
 +
==Use of templates==
 +
The Cantr wiki uses a number of templates to make editing easier. All the templates can (or will) be found in [[:Category:Templates]]. The list below is obsolete.
 +
 
 +
===Infoboxes===
 +
Infoboxes are small tables that allow you to take all the information about an item and display it in a single chunk. Categories will be generated automatically - please do not add category tags to an article that uses infoboxes. Use infoboxes whenever possible - copy the format of another page of the same type as the page you are writing.
 +
 
 +
===Choice templates===
 +
Cantr has many cases where several tools, machines or semi-finished products are used in the same way - for example, if the manufacturing menu says a hammer is required to make something, the [[stone hammer]] will substitute. For these cases, "choice templates" exist that will generate the full list of interchangeable objects. For example, use <nowiki>{{hammer}}</nowiki> instead of <nowiki>[[hammer]]</nowiki> to generate the text {{hammer}}.
 +
 
 +
===Tags===
 +
Pages missing important information, pages in need of reformatting, pages under major reformatting, and certain other types of pages should be marked using tags, such as <nowiki>{{rewrite}}</nowiki> or <nowiki>{{construction}}</nowiki>.
 +
 
 +
==List of templates==
  
 
===[[Template:Delete]]===
 
===[[Template:Delete]]===
Line 28: Line 43:
 
Syntax: <nowiki>{{stub}}</nowiki>
 
Syntax: <nowiki>{{stub}}</nowiki>
  
Placement: Bottom of page
+
Placement: Top of page
  
 
===[[Template:Incomplete]]===
 
===[[Template:Incomplete]]===

Latest revision as of 07:14, 16 April 2013

Interwiki

българскиDeutschEnglishEspañolEsperantoFrançaisItalianoLietuviųLojbanNederlandsPolskaPortuguêsРусскийSuomiSvenskaTürkçe中文

There are many templates used by editors to mark what needs doing. Eventually there will be templates used to simplify formatting of articles. This is a list of all templates currently available in the wiki, with syntax and usage.

Use of templates

The Cantr wiki uses a number of templates to make editing easier. All the templates can (or will) be found in Category:Templates. The list below is obsolete.

Infoboxes

Infoboxes are small tables that allow you to take all the information about an item and display it in a single chunk. Categories will be generated automatically - please do not add category tags to an article that uses infoboxes. Use infoboxes whenever possible - copy the format of another page of the same type as the page you are writing.

Choice templates

Cantr has many cases where several tools, machines or semi-finished products are used in the same way - for example, if the manufacturing menu says a hammer is required to make something, the stone hammer will substitute. For these cases, "choice templates" exist that will generate the full list of interchangeable objects. For example, use {{hammer}} instead of [[hammer]] to generate the text stone, bronze or regular hammer.

Tags

Pages missing important information, pages in need of reformatting, pages under major reformatting, and certain other types of pages should be marked using tags, such as {{rewrite}} or {{construction}}.

List of templates

Template:Delete

Syntax: {{delete|This page sucks.}}

Placement: Top of page

Puts a box on the page and adds it to Category:Delete. Do not make any other changes (such as blanking) when you place it. Please ensure you add a reason why the page should be deleted and include links to any page which supercedes this one.

Template:Construction

Syntax: {{construction|~~~~}}

Placement: Top of page

Please only use this template if major changes to the page are being made. don't use it as a means to reserve editing of a page. The Wiki is free to be edited by any user

Template:Rewrite

Syntax: {{rewrite|Remove all references to cows.}}

Placement: Top of page

Template:Disambig

Syntax: {{disambig}}

Placement: Bottom of page

Template:Stub

Syntax: {{stub}}

Placement: Top of page

Template:Incomplete

Syntax: {{incomplete|Name, use and construction information needed.}}

Placement: Top of page

Template:Inc1

Syntax: Resources required: {{inc1}}

Placement: Inline

Displays as Unknown (easy), and adds the article to Category:Easy unknowns and Category:Incomplete.

Template:Inc2

Syntax: Name of project: {{inc2}}

Placement: Inline

Displays as Unknown (medium), and adds the article to Category:Medium unknowns and Category:Incomplete.

Template:Inc3

Syntax: Max workers: {{inc3}}

Placement: Inline

Displays as Unknown (hard), and adds the article to Category:Hard unknowns and Category:Incomplete.

Requirement templates

These inline templates display as a series of tools, passive machines or semi-finished products.