Template:CraftTemplate: Difference between revisions
Jump to navigation
Jump to search
RANGERMAHTRA (talk | contribs) (Additive: yarn material for misc templates (tailoring template) and 'N yards of yarn' in the volume sentence, for knitted items. No existing page uses mat=yarn.) |
RANGERMAHTRA (talk | contribs) (Item: pages always in Items (as Template:Item does); cat= and Crafting tools are added beside it) |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>{{RTOC}} |
<includeonly>{{RTOC}} |
||
A '''{{#if:{{{name|}}}|[[pretty name is::{{{name}}}| ]]|[[pretty name is::''<{{{mat}}}>'' {{{itype}}}| ]]}}{{#switch:{{{sub}}}|true=|#default={{#arraymap:{{{itype}}}{{#if:{{{itype2|}}}|, {{{itype2}}}|}}|,|@@@@|[[item type is::@@@@| ]]|}}[[noun is::{{#if:{{{noun|}}}|{{{noun|}}}|{{{itype|}}}}}| ]]}}[[{{{itype}}}]]''' is a {{#switch:{{{type|}}} |
A '''{{#if:{{{name|}}}|[[pretty name is::{{{name}}}| ]]|[[pretty name is::''<{{{mat}}}>'' {{{itype}}}| ]]}}{{#switch:{{{sub}}}|true=|#default={{#arraymap:{{{itype}}}{{#if:{{{itype2|}}}|, {{{itype2}}}|}}|,|@@@@|[[item type is::@@@@| ]]|}}[[noun is::{{#if:{{{noun|}}}|{{{noun|}}}|{{{itype|}}}}}| ]]}}[[{{{itype}}}]]''' is a {{#switch:{{{type|}}} |
||
|chain=[[recipe material is::metal| ]][[Armorsmithing products|forged chain armor template]][[is combat type::Chain Armor| ]] |
|chain=[[recipe material is::metal| ]][[Armorsmithing products|forged chain armor template]]{{#switch:{{{sub|}}}|y|yes|t|true=|#default=[[Category:Armorsmithing products|{{PAGENAME}}]]}}[[is combat type::Chain Armor| ]] |
||
|plate=[[recipe material is::metal| ]][[Armorsmithing products|forged plate armor template]][[is combat type::Plate Armor| ]] |
|plate=[[recipe material is::metal| ]][[Armorsmithing products|forged plate armor template]]{{#switch:{{{sub|}}}|y|yes|t|true=|#default=[[Category:Armorsmithing products|{{PAGENAME}}]]}}[[is combat type::Plate Armor| ]] |
||
|brig|brigandine=[[recipe material is::metal| ]][[Armorsmithing products|forged brigandine armor template]][[is combat type::Brigandine Armor| ]] |
|brig|brigandine=[[recipe material is::metal| ]][[Armorsmithing products|forged brigandine armor template]]{{#switch:{{{sub|}}}|y|yes|t|true=|#default=[[Category:Armorsmithing products|{{PAGENAME}}]]}}[[is combat type::Brigandine Armor| ]] |
||
|armor={{#switch:{{{mat|}}} |
|armor={{#switch:{{{mat|}}} |
||
|leather=[[recipe material is::leather| ]][[Tailoring products|tailored leather armor template]][[is combat type::Light Armor| ]] |
|leather=[[recipe material is::leather| ]][[Tailoring products|tailored leather armor template]]{{#switch:{{{sub|}}}|y|yes|t|true=|#default=[[Category:Tailoring products|{{PAGENAME}}]]}}[[is combat type::Light Armor| ]] |
||
|cloth=[[recipe material is::cloth| ]][[Tailoring products|tailored cloth armor template]][[is combat type::Light Armor| ]] |
|cloth=[[recipe material is::cloth| ]][[Tailoring products|tailored cloth armor template]]{{#switch:{{{sub|}}}|y|yes|t|true=|#default=[[Category:Tailoring products|{{PAGENAME}}]]}}[[is combat type::Light Armor| ]] |
||
|bone=[[recipe material is::bone| ]][[Carving products|carved bone armor template]][[is combat type::Light Armor| ]]| |
|bone=[[recipe material is::bone| ]][[Carving products|carved bone armor template]]{{#switch:{{{sub|}}}|y|yes|t|true=|#default=[[Category:Carving products|{{PAGENAME}}]]}}[[is combat type::Light Armor| ]]| |
||
}} |
}} |
||
|ss=[[is combat type::Small Shield| ]]{{#switch:{{{mat|}}} |
|ss=[[is combat type::Small Shield| ]]{{#switch:{{{mat|}}} |
||
|leather=[[recipe material is::leather| ]][[Tailoring products|small leather shield template]] |
|leather=[[recipe material is::leather| ]][[Tailoring products|small leather shield template]]{{#switch:{{{sub|}}}|y|yes|t|true=|#default=[[Category:Tailoring products|{{PAGENAME}}]]}} |
||
|metal=[[recipe material is::metal| ]][[Armorsmithing products|small metal shield template]] |
|metal=[[recipe material is::metal| ]][[Armorsmithing products|small metal shield template]]{{#switch:{{{sub|}}}|y|yes|t|true=|#default=[[Category:Armorsmithing products|{{PAGENAME}}]]}} |
||
|bone=[[recipe material is::bone| ]][[Carving products|small bone shield template]] |
|bone=[[recipe material is::bone| ]][[Carving products|small bone shield template]]{{#switch:{{{sub|}}}|y|yes|t|true=|#default=[[Category:Carving products|{{PAGENAME}}]]}} |
||
|wood=[[recipe material is::wood| ]][[Shaping products|small wood shield template]] |
|wood=[[recipe material is::wood| ]][[Shaping products|small wood shield template]]{{#switch:{{{sub|}}}|y|yes|t|true=|#default=[[Category:Shaping products|{{PAGENAME}}]]}} |
||
}} |
}} |
||
|ms=[[is combat type::Medium Shield| ]]{{#switch:{{{mat|}}} |
|ms=[[is combat type::Medium Shield| ]]{{#switch:{{{mat|}}} |
||
|leather=[[recipe material is::leather| ]][[Tailoring products|medium leather shield template]] |
|leather=[[recipe material is::leather| ]][[Tailoring products|medium leather shield template]]{{#switch:{{{sub|}}}|y|yes|t|true=|#default=[[Category:Tailoring products|{{PAGENAME}}]]}} |
||
|metal=[[recipe material is::metal| ]][[Armorsmithing products|medium metal shield template]] |
|metal=[[recipe material is::metal| ]][[Armorsmithing products|medium metal shield template]]{{#switch:{{{sub|}}}|y|yes|t|true=|#default=[[Category:Armorsmithing products|{{PAGENAME}}]]}} |
||
|bone=[[recipe material is::bone| ]][[Carving products|medium bone shield template]] |
|bone=[[recipe material is::bone| ]][[Carving products|medium bone shield template]]{{#switch:{{{sub|}}}|y|yes|t|true=|#default=[[Category:Carving products|{{PAGENAME}}]]}} |
||
|wood=[[recipe material is::wood| ]][[Shaping products|medium wood shield template]] |
|wood=[[recipe material is::wood| ]][[Shaping products|medium wood shield template]]{{#switch:{{{sub|}}}|y|yes|t|true=|#default=[[Category:Shaping products|{{PAGENAME}}]]}} |
||
}} |
}} |
||
|ls=[[is combat type::Large Shield| ]]{{#switch:{{{mat|}}} |
|ls=[[is combat type::Large Shield| ]]{{#switch:{{{mat|}}} |
||
|leather=[[recipe material is::leather| ]][[Tailoring products|large leather shield template]] |
|leather=[[recipe material is::leather| ]][[Tailoring products|large leather shield template]]{{#switch:{{{sub|}}}|y|yes|t|true=|#default=[[Category:Tailoring products|{{PAGENAME}}]]}} |
||
|metal=[[recipe material is::metal| ]][[Armorsmithing products|large metal shield template]] |
|metal=[[recipe material is::metal| ]][[Armorsmithing products|large metal shield template]]{{#switch:{{{sub|}}}|y|yes|t|true=|#default=[[Category:Armorsmithing products|{{PAGENAME}}]]}} |
||
|bone=[[recipe material is::bone| ]][[Carving products|large bone shield template]] |
|bone=[[recipe material is::bone| ]][[Carving products|large bone shield template]]{{#switch:{{{sub|}}}|y|yes|t|true=|#default=[[Category:Carving products|{{PAGENAME}}]]}} |
||
|wood=[[recipe material is::wood| ]][[Shaping products|large wood shield template]] |
|wood=[[recipe material is::wood| ]][[Shaping products|large wood shield template]]{{#switch:{{{sub|}}}|y|yes|t|true=|#default=[[Category:Shaping products|{{PAGENAME}}]]}} |
||
}} |
}} |
||
|tool={{#switch:{{{mat|}}} |
|tool={{#switch:{{{mat|}}} |
||
|stone|rock=[[recipe material is::stone| ]][[Carving products|stone carving template]] |
|stone|rock=[[recipe material is::stone| ]][[Carving products|stone carving template]]{{#switch:{{{sub|}}}|y|yes|t|true=|#default=[[Category:Carving products|{{PAGENAME}}]]}} |
||
|metal=[[recipe material is::metal| ]][[{{#if:{{{craft|}}}|{{{craft}}}|Blacksmithing}} products|metal {{#if:{{{craft|}}}|{{lc:{{{craft}}}}}|blacksmithing}} template]] |
|metal=[[recipe material is::metal| ]][[{{#if:{{{craft|}}}|{{{craft}}}|Blacksmithing}} products|metal {{#if:{{{craft|}}}|{{lc:{{{craft}}}}}|blacksmithing}} template]]{{#switch:{{{sub|}}}|y|yes|t|true=|#default=[[Category:{{#if:{{{craft|}}}|{{{craft}}}|Blacksmithing}} products|{{PAGENAME}}]]}} |
||
|bone=[[recipe material is::bone| ]][[Carving products|bone carving template]] |
|bone=[[recipe material is::bone| ]][[Carving products|bone carving template]]{{#switch:{{{sub|}}}|y|yes|t|true=|#default=[[Category:Carving products|{{PAGENAME}}]]}} |
||
|wood=[[recipe material is::wood| ]][[Shaping products|wood shaping template]] |
|wood=[[recipe material is::wood| ]][[{{#if:{{{craft|}}}|{{{craft}}}|Shaping}} products|wood {{#if:{{{craft|}}}|{{lc:{{{craft}}}}}|shaping}} template]]{{#switch:{{{sub|}}}|y|yes|t|true=|#default=[[Category:{{#if:{{{craft|}}}|{{{craft}}}|Shaping}} products|{{PAGENAME}}]]}} |
||
}} |
}} |
||
|misc={{#switch:{{{mat|}}} |
|misc={{#switch:{{{mat|}}} |
||
|stone|rock=[[recipe material is::stone| ]][[Carving products|stone carving template]] |
|stone|rock=[[recipe material is::stone| ]][[Carving products|stone carving template]]{{#switch:{{{sub|}}}|y|yes|t|true=|#default=[[Category:Carving products|{{PAGENAME}}]]}} |
||
|metal=[[recipe material is::metal| ]][[{{#if:{{{craft|}}}|{{{craft}}}|Blacksmithing}} products|metal {{#if:{{{craft|}}}|{{lc:{{{craft}}}}}|blacksmithing}} template]] |
|metal=[[recipe material is::metal| ]][[{{#if:{{{craft|}}}|{{{craft}}}|Blacksmithing}} products|metal {{#if:{{{craft|}}}|{{lc:{{{craft}}}}}|blacksmithing}} template]]{{#switch:{{{sub|}}}|y|yes|t|true=|#default=[[Category:{{#if:{{{craft|}}}|{{{craft}}}|Blacksmithing}} products|{{PAGENAME}}]]}} |
||
|bone=[[recipe material is::bone| ]][[Carving products|bone carving template]] |
|bone=[[recipe material is::bone| ]][[Carving products|bone carving template]]{{#switch:{{{sub|}}}|y|yes|t|true=|#default=[[Category:Carving products|{{PAGENAME}}]]}} |
||
|wood=[[recipe material is::wood| ]][[Shaping products|wood shaping template]] |
|wood=[[recipe material is::wood| ]][[{{#if:{{{craft|}}}|{{{craft}}}|Shaping}} products|wood {{#if:{{{craft|}}}|{{lc:{{{craft}}}}}|shaping}} template]]{{#switch:{{{sub|}}}|y|yes|t|true=|#default=[[Category:{{#if:{{{craft|}}}|{{{craft}}}|Shaping}} products|{{PAGENAME}}]]}} |
||
|sigil=[[recipe material is::sigil| ]][[Artificing products|artificing template]] |
|sigil=[[recipe material is::sigil| ]][[Artificing products|artificing template]]{{#switch:{{{sub|}}}|y|yes|t|true=|#default=[[Category:Artificing products|{{PAGENAME}}]]}} |
||
|herb=[[recipe material is::herb| ]][[Remedies products|remedies template]] |
|herb=[[recipe material is::herb| ]][[Remedies products|remedies template]]{{#switch:{{{sub|}}}|y|yes|t|true=|#default=[[Category:Remedies products|{{PAGENAME}}]]}} |
||
|leather=[[recipe material is::leather| ]][[Tailoring products|tailoring template]] |
|leather=[[recipe material is::leather| ]][[Tailoring products|tailoring template]]{{#switch:{{{sub|}}}|y|yes|t|true=|#default=[[Category:Tailoring products|{{PAGENAME}}]]}} |
||
|cloth=[[recipe material is::cloth| ]][[Tailoring products|tailoring template]] |
|cloth=[[recipe material is::cloth| ]][[Tailoring products|tailoring template]]{{#switch:{{{sub|}}}|y|yes|t|true=|#default=[[Category:Tailoring products|{{PAGENAME}}]]}} |
||
|yarn=[[recipe material is::yarn| ]][[Tailoring products|tailoring template]] |
|yarn=[[recipe material is::yarn| ]][[Tailoring products|tailoring template]]{{#switch:{{{sub|}}}|y|yes|t|true=|#default=[[Category:Tailoring products|{{PAGENAME}}]]}} |
||
}} |
}} |
||
|weapon={{#switch:{{{range}}}|-=|[[range is::{{{range|?}}}]]-range{{+}}}}{{#if:{{IfMatch2|{{{style|}}}|hands|feet|elbows|knees|parry}}|[[is combat type::{{ucfirst:{{{style|}}}}}]] [[is combat type::Brawling]]|{{#arraymap:{{#arraymaptemplate:{{{style|?}}}|SkillCode|,|,}}|,|@@@@|[[is combat type::@@@@]]|{{+}}/{{+}}}}}} {{#switch:{{{mat|}}} |
|weapon={{#switch:{{{range}}}|-=|[[range is::{{{range|?}}}]]-range{{+}}}}{{#if:{{IfMatch2|{{{style|}}}|hands|feet|elbows|knees|parry}}|[[is combat type::{{ucfirst:{{{style|}}}}}]] [[is combat type::Brawling]]|{{#arraymap:{{#arraymaptemplate:{{{style|?}}}|SkillCode|,|,}}|,|@@@@|[[is combat type::@@@@]]|{{+}}/{{+}}}}}} {{#switch:{{{mat|}}} |
||
|metal=[[recipe material is::metal| ]][[{{#if:{{{craft|}}}|{{{craft}}}|Weaponsmithing}} products|metal {{#if:{{{craft|}}}|{{lc:{{{craft}}}}}|weaponsmithing}} template]] |
|metal=[[recipe material is::metal| ]][[{{#if:{{{craft|}}}|{{{craft}}}|Weaponsmithing}} products|metal {{#if:{{{craft|}}}|{{lc:{{{craft}}}}}|weaponsmithing}} template]]{{#switch:{{{sub|}}}|y|yes|t|true=|#default=[[Category:{{#if:{{{craft|}}}|{{{craft}}}|Weaponsmithing}} products|{{PAGENAME}}]]}} |
||
|stone|rock=[[recipe material is::stone| ]][[Carving products|stone carved weaponry template]] |
|stone|rock=[[recipe material is::stone| ]][[Carving products|stone carved weaponry template]]{{#switch:{{{sub|}}}|y|yes|t|true=|#default=[[Category:Carving products|{{PAGENAME}}]]}} |
||
|bone=[[recipe material is::bone| ]][[Carving products|bone carved weaponry template]] |
|bone=[[recipe material is::bone| ]][[Carving products|bone carved weaponry template]]{{#switch:{{{sub|}}}|y|yes|t|true=|#default=[[Category:Carving products|{{PAGENAME}}]]}} |
||
|wood=[[recipe material is::wood| ]]{{#switch:{{{style|}}}|lx=[[Tinkering products|wood tinkering template]]|hx=[[Tinkering products|wood tinkering template]]|[[Shaping products|wood shaping template]]}} |
|wood=[[recipe material is::wood| ]]{{#switch:{{{style|}}}|lx=[[Tinkering products|wood tinkering template]]{{#switch:{{{sub|}}}|y|yes|t|true=|#default=[[Category:Tinkering products|{{PAGENAME}}]]}}|hx=[[Tinkering products|wood tinkering template]]{{#switch:{{{sub|}}}|y|yes|t|true=|#default=[[Category:Tinkering products|{{PAGENAME}}]]}}|[[Shaping products|wood shaping template]]{{#switch:{{{sub|}}}|y|yes|t|true=|#default=[[Category:Shaping products|{{PAGENAME}}]]}}}} |
||
}} |
}} |
||
|ammo={{#switch:{{{style|}}} |
|ammo={{#switch:{{{style|}}} |
||
|arrow=[[recipe material is::wood| ]][[is combat type::arrow| ]][[Shaping products|fletching template]] |
|arrow=[[recipe material is::wood| ]][[is combat type::arrow| ]][[Shaping products|fletching template]]{{#switch:{{{sub|}}}|y|yes|t|true=|#default=[[Category:Shaping products|{{PAGENAME}}]]}} |
||
|bolt=[[recipe material is::metal| ]][[is combat type::bolt| ]][[Tinkering products|boltmaking template]] |
|bolt=[[recipe material is::metal| ]][[is combat type::bolt| ]][[Tinkering products|boltmaking template]]{{#switch:{{{sub|}}}|y|yes|t|true=|#default=[[Category:Tinkering products|{{PAGENAME}}]]}} |
||
|rock=[[recipe material is::stone| ]][[is combat type::rock| ]][[Carving products|stone carved weaponry template]] |
|rock=[[recipe material is::stone| ]][[is combat type::rock| ]][[Carving products|stone carved weaponry template]]{{#switch:{{{sub|}}}|y|yes|t|true=|#default=[[Category:Carving products|{{PAGENAME}}]]}} |
||
}} |
}} |
||
|unknown type of template |
|unknown type of template |
||
| Line 126: | Line 126: | ||
|[[linking page is::{{{link}}}| ]] |
|[[linking page is::{{{link}}}| ]] |
||
|[[linking page is::{{FULLPAGENAME}}| ]] |
|[[linking page is::{{FULLPAGENAME}}| ]] |
||
}}{{#switch:{{{sub|}}}|y|yes|t|true=|#default={{#switch:{{NAMESPACE}} |
|||
}}</includeonly><noinclude>A template for handling player created items. |
|||
|Armor=[[Category:Armor|{{PAGENAME}}]] |
|||
|Weapon=[[Category:Weapons|{{PAGENAME}}]] |
|||
|Shield=[[Category:Shields|{{PAGENAME}}]] |
|||
|Item=[[Category:Items|{{PAGENAME}}]]{{#if:{{{cat|}}}|{{#arraymap:{{{cat}}}|,|x|[[Category:x|{{PAGENAME}}]]|}}|{{#ifeq:{{{type|}}}|tool|[[Category:Crafting tools|{{PAGENAME}}]]|}}}} |
|||
}}}}</includeonly><noinclude>A template for handling player created items. It adds each page to its discipline's products category (e.g. [[:Category:Tailoring products]]) and to its item-type category; subpages (sub=y) are not categorised, their main page is. |
|||
==Documentation== |
==Documentation== |
||
| Line 169: | Line 174: | ||
|- |
|- |
||
| book || ''<crafting book>'' || The crafting book that contains this template. |
| book || ''<crafting book>'' || The crafting book that contains this template. |
||
|- |
|||
| craft || ''blank''/''<discipline>'' || For metal and wood templates made in a discipline other than the default (metal: Blacksmithing, metal weapons: Weaponsmithing, wood: Shaping), e.g. Tinkering or Weaponsmithing. Sets the products link and the discipline category. |
|||
|- |
|||
| cat || ''blank''/''<category>''(,''<category>''...) || Item namespace only: the specific item-type category, e.g. Containers or Jewelry, added beside Items (every Item: page is in Items, as with [[Template:Item]]). Defaults to Crafting tools for type=tool. Armor, Weapon and Shield pages are categorised by namespace. |
|||
|- |
|- |
||
| ident1 || ''blank''/''<page name>'' || If this is identical to another item, list the actually page name here. |
| ident1 || ''blank''/''<page name>'' || If this is identical to another item, list the actually page name here. |
||
Latest revision as of 10:58, 12 November 2026
A template for handling player created items. It adds each page to its discipline's products category (e.g. Category:Tailoring products) and to its item-type category; subpages (sub=y) are not categorised, their main page is.
Documentation
| Property | Expected Value(s) |
Notes |
|---|---|---|
| name | blank/<text> | A property for setting the name of the template should it be different from the article name. |
| noun | <text> | The noun of the item this template produces. |
| mat | metal/stone/leather /cloth/bone/sigil/herb |
The material that this template is expected to be made from. On sigil items, put number total needed then use "matdetail" to list them. On herb items, put total volume needed then use "matdetail" to list them. |
| matdetail | <text> | On sigil items, separate multiple with a comma (,). On herb items: (qty) <primary herb>, (qty) <secondary herb> |
| range | <range> | If this produces a weapon, the combat range of the weapon. |
| style | <type> | The combat type of the item produced. |
| rare | blank/y | Whether this template requires special instructions to create. |
| dif | <difficulty> | The difficulty of the template. |
| vol | <#>/<stone size> | The amount of material required to make this item. |
| vol2 | blank/<#> | A rare few templates produce products that weigh more or less than the material that went into them. Put the equivalent amount of material that it uses for final weight. |
| tech | <technique> | The crafting technique relevant to this item. |
| <first blank> | <#> | External length. |
| <second blank> | <#> | External width. |
| <third blank> | <#> | External height. |
| <fourth blank> | <#> | Internal length. (not enabled yet) |
| <fifth blank> | <#> | Internal width. (not enabled yet) |
| <sixth blank> | <#> | Internal height. (not enabled yet) |
| const | blank/s | Whether the item has the standard construction for its type (s), nor not (blank). |
| book | <crafting book> | The crafting book that contains this template. |
| craft | blank/<discipline> | For metal and wood templates made in a discipline other than the default (metal: Blacksmithing, metal weapons: Weaponsmithing, wood: Shaping), e.g. Tinkering or Weaponsmithing. Sets the products link and the discipline category. |
| cat | blank/<category>(,<category>...) | Item namespace only: the specific item-type category, e.g. Containers or Jewelry, added beside Items (every Item: page is in Items, as with Template:Item). Defaults to Crafting tools for type=tool. Armor, Weapon and Shield pages are categorised by namespace. |
| ident1 | blank/<page name> | If this is identical to another item, list the actually page name here. |
| ident2 | blank/<plain name> | If this is identical to another item, list the item's name here. |
| race | blank/<race> | Any race this item might be specially styled for. |
| note | <text> | Any special notes that need to show up in a table listing of the item. |
| sub | blank/y | Whether or not this is a subpage for another crafting page. |
| link | blank/<page name> | If a subpage, the name of the master page. |
Weapon Specific
| Property | Expected Value(s) |
Notes |
|---|---|---|
| swap | blank/y | Whether the weapon produced is swappable. |
| itype | <text> | The subtype of weapon, such as sword or battle axe. If it is a two word type, noun should be set as well. |
Armor Specific
| Property | Expected Value(s) |
Notes |
|---|---|---|
| itype | chain/brig/plate/armor ss/ms/ls |
The type of item this template produces. Use "armor" for all other types. The type of shield produced. Small Shield, Medium Shield, or Large Shield. |
| type | <type>/armor | If metal armor, the specific type of metal armor. Use "armor" for non-metal armors. |
| prot | blank/<area>, <area2>... |
Areas protected by the product. |