Difference between revisions of "Help:Templates"
m |
(→Use of templates) |
||
(12 intermediate revisions by 4 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]]=== | ||
Syntax: <nowiki>{{delete|This page sucks.}}</nowiki> | Syntax: <nowiki>{{delete|This page sucks.}}</nowiki> | ||
− | Puts a box on the page and adds it to [[:Category:Delete]] | + | 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]]=== | ===[[Template:Construction]]=== | ||
Syntax: <nowiki>{{construction|~~~~}}</nowiki> | Syntax: <nowiki>{{construction|~~~~}}</nowiki> | ||
+ | |||
+ | 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]]=== | ===[[Template:Rewrite]]=== | ||
Syntax: <nowiki>{{rewrite|Remove all references to cows.}}</nowiki> | Syntax: <nowiki>{{rewrite|Remove all references to cows.}}</nowiki> | ||
+ | |||
+ | Placement: Top of page | ||
===[[Template:Disambig]]=== | ===[[Template:Disambig]]=== | ||
Syntax: <nowiki>{{disambig}}</nowiki> | Syntax: <nowiki>{{disambig}}</nowiki> | ||
+ | |||
+ | Placement: Bottom of page | ||
===[[Template:Stub]]=== | ===[[Template:Stub]]=== | ||
Syntax: <nowiki>{{stub}}</nowiki> | Syntax: <nowiki>{{stub}}</nowiki> | ||
+ | |||
+ | Placement: Top of page | ||
===[[Template:Incomplete]]=== | ===[[Template:Incomplete]]=== | ||
Syntax: <nowiki>{{incomplete|Name, use and construction information needed.}}</nowiki> | Syntax: <nowiki>{{incomplete|Name, use and construction information needed.}}</nowiki> | ||
+ | |||
+ | Placement: Top of page | ||
+ | |||
+ | ===[[Template:Inc1]]=== | ||
+ | Syntax: <nowiki>Resources required: {{inc1}}</nowiki> | ||
+ | |||
+ | Placement: Inline | ||
+ | |||
+ | Displays as '''[[Help:Incomplete#Level One|Unknown (easy)]]''', and adds the article to [[:Category:Easy unknowns]] and [[:Category:Incomplete]]. | ||
+ | |||
+ | ===[[Template:Inc2]]=== | ||
+ | Syntax: <nowiki>Name of project: {{inc2}}</nowiki> | ||
+ | |||
+ | Placement: Inline | ||
+ | |||
+ | Displays as '''[[Help:Incomplete#Level Two|Unknown (medium)]]''', and adds the article to [[:Category:Medium unknowns]] and [[:Category:Incomplete]]. | ||
+ | |||
+ | ===[[Template:Inc3]]=== | ||
+ | Syntax: <nowiki>Max workers: {{inc3}}</nowiki> | ||
+ | |||
+ | Placement: Inline | ||
+ | |||
+ | Displays as '''[[Help:Incomplete#Level Three|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. | ||
+ | *[[Template:Anvil]] | ||
+ | *[[Template:Carving knife]] | ||
+ | *[[Template:Chisel]] | ||
+ | *[[Template:Knife]] | ||
+ | *[[Template:Flatter]] | ||
+ | *[[Template:Hammer]] | ||
+ | *[[Template:Long range transmitter wire]] | ||
+ | *[[Template:Needle]] | ||
+ | *[[Template:Peen hammer]] | ||
+ | *[[Template:Set hammer]] | ||
+ | *[[Template:Trowel]] | ||
+ | *[[Template:Bucket]] |
Latest revision as of 07:14, 16 April 2013
Interwiki |
---|
български • Deutsch • English • Español • Esperanto • Français • Italiano • Lietuvių • Lojban • Nederlands • Polska • Português • Русский • Suomi • Svenska • Tü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.
Contents
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.