Template:CraftTemplate: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
No edit summary
(Add leather reference to misc)
 
(44 intermediate revisions by 5 users 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|}}}
|chain=[[recipe material is::metal| ]][[Armorsmithing products|forged chain armor template]][[is combat type::Chain Armor| ]]
|[[pretty name is::{{{name}}}| ]]
|plate=[[recipe material is::metal| ]][[Armorsmithing products|forged plate armor template]][[is combat type::Plate Armor| ]]
|[[pretty name is::''<metal>'' {{{itype}}}| ]]
|brig|brigandine=[[recipe material is::metal| ]][[Armorsmithing products|forged brigandine armor template]][[is combat type::Brigandine Armor| ]]
}}{{#arraymap:{{{itype}}}{{#if:{{{itype2|}}}|, {{{itype2}}}|}}|,|@@@@|[[item type is::@@@@| ]]|}}[[{{{itype}}}]][[noun is::{{#if:{{{noun|}}}|{{{noun|}}}|{{{itype|}}}}}| ]]''' is a {{#switch:{{{type|}}}
|chain=[[Armorsmithing Products|forged chain armor template]][[is combat type::Chain Armor| ]]
|plate=[[Armorsmithing Products|forged plate armor template]][[is combat type::Plate Armor| ]]
|brig|brigandine=[[Armorsmithing Products|forged brigandine armor template]][[is combat type::Brigandine Armor| ]]
|armor={{#switch:{{{mat|}}}
|armor={{#switch:{{{mat|}}}
|leather=[[Tailoring Products|tailored leather armor template]][[is combat type::Light Armor| ]]
|leather=[[recipe material is::leather| ]][[Tailoring products|tailored leather armor template]][[is combat type::Light Armor| ]]
|cloth=[[Tailoring Products|tailored cloth armor template]][[is combat type::Light Armor| ]]
|cloth=[[recipe material is::cloth| ]][[Tailoring products|tailored cloth armor template]][[is combat type::Light Armor| ]]
|bone=[[Carving Products|carved bone armor template]][[is combat type::Light Armor| ]]|
|bone=[[recipe material is::bone| ]][[Carving products|carved bone armor template]][[is combat type::Light Armor| ]]|
}}
}}
|ss=[[is combat type::Small Shield| ]]{{#switch:{{{mat|}}}
|ss=[[is combat type::Small Shield| ]]{{#switch:{{{mat|}}}
|leather=[[Tailoring Products|small leather shield template]]
|leather=[[recipe material is::leather| ]][[Tailoring products|small leather shield template]]
|metal=[[Armorsmithing Products|small metal shield template]]
|metal=[[recipe material is::metal| ]][[Armorsmithing products|small metal shield template]]
|bone=[[Carving Products|small bone shield template]]
|bone=[[recipe material is::bone| ]][[Carving products|small bone shield template]]
|wood=[[recipe material is::wood| ]][[Shaping products|small wood shield template]]
}}
}}
|ms=[[is combat type::Medium Shield| ]]{{#switch:{{{mat|}}}
|ms=[[is combat type::Medium Shield| ]]{{#switch:{{{mat|}}}
|leather=[[Tailoring Products|medium leather shield template]]
|leather=[[recipe material is::leather| ]][[Tailoring products|medium leather shield template]]
|metal=[[Armorsmithing Products|medium metal shield template]]
|metal=[[recipe material is::metal| ]][[Armorsmithing products|medium metal shield template]]
|bone=[[Carving Products|medium bone shield template]]
|bone=[[recipe material is::bone| ]][[Carving products|medium bone shield template]]
|wood=[[recipe material is::wood| ]][[Shaping products|medium wood shield template]]
}}
}}
|ls=[[is combat type::Large Shield| ]]{{#switch:{{{mat|}}}
|ls=[[is combat type::Large Shield| ]]{{#switch:{{{mat|}}}
|leather=[[Tailoring Products|large leather shield template]]
|leather=[[recipe material is::leather| ]][[Tailoring products|large leather shield template]]
|metal=[[Armorsmithing Products|large metal shield template]]
|metal=[[recipe material is::metal| ]][[Armorsmithing products|large metal shield template]]
|bone=[[Carving Products|large bone shield template]]
|bone=[[recipe material is::bone| ]][[Carving products|large bone shield template]]
|wood=[[recipe material is::wood| ]][[Shaping products|large wood shield template]]
}}
}}
|tool={{#switch:{{{mat|}}}
|tool={{#switch:{{{mat|}}}
|stone=[[Carving Products|carved stone tool template]]
|stone|rock=[[recipe material is::stone| ]][[Carving products|stone carving template]]
|metal=[[recipe material is::metal| ]][[Blacksmithing products|metal blacksmithing template]]
|metal=[[Blacksmithing Products|blacksmithing metal tool]]
|wood=[[recipe material is::wood| ]][[Shaping products|wood shaping template]]
}}
}}
|misc={{#switch:{{{mat|}}}
|weapon=[[range is::{{{range|?}}}]]-range {{#arraymap:{{#arraymaptemplate:{{{style|?}}}|SkillCode|,|,}}|,|@@@@|[[is combat type::@@@@]]|/}} {{#switch:{{{mat|}}}
|metal=[[Weaponsmithing Products|metal weaponsmithing template]]
|stone|rock=[[recipe material is::stone| ]][[Carving products|stone carving template]]
|stone=[[Carving Products|carved stone weapon template]]
|metal=[[recipe material is::metal| ]][[Blacksmithing products|metal blacksmithing template]]
|bone=[[Carving Products|carved bone weapon template]]
|wood=[[recipe material is::wood| ]][[Shaping products|wood shaping template]]
|sigil=[[recipe material is::sigil| ]][[Artificing products|artificing template]]
|herb=[[recipe material is::herb| ]][[Remedies products|remedies template]]
|leather=[[recipe material is::leather| ]][[Tailoring products|tailoring template]]
}}
|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]]
|stone|rock=[[recipe material is::stone| ]][[Carving products|stone carved weaponry template]]
|bone=[[recipe material is::bone| ]][[Carving products|bone carved weaponry template]]
|wood=[[recipe material is::wood| ]]{{#switch:{{{style|}}}|lx=[[Tinkering products|wood tinkering template]]|hx=[[Tinkering products|wood tinkering template]]|[[Shaping products|wood shaping template]]}}

}}
|ammo={{#switch:{{{style|}}}
|arrow=[[recipe material is::wood| ]][[is combat type::arrow| ]][[Shaping products|fletching template]]
|bolt=[[recipe material is::metal| ]][[is combat type::bolt| ]][[Tinkering products|boltmaking template]]
|rock=[[recipe material is::stone| ]][[is combat type::rock| ]][[Carving products|stone carved weaponry template]]
}}
}}
|unknown type of template
|unknown type of template
Line 45: Line 61:
}}.
}}.
|[[rare item::false| ]]
|[[rare item::false| ]]
}}<br /><br />It is difficulty [[recipe difficulty is::{{{dif|}}}| ]]{{GearProcess|{{{dif|}}}|dif2}}{{#if:{{{tech|}}}
}}<br /><br />It is a '''[[recipe difficulty is::{{{dif|}}}|]] {{GearProcess|{{{dif|}}}|dif2}}''' template{{#if:{{{tech|}}}
|,
|,
|{{+}}and
|{{+}}and
}} uses {{#switch:{{{mat|}}}
}} uses {{#switch:{{{mat|}}}
|metal=[[recipe volume is::{{{vol|}}}]] volumes of metal
|metal={{#if:{{{vol|}}}|[[recipe volume is::{{{vol|}}}]]|?}} volumes of metal
|leather=[[recipe volume is::{{{vol|}}}]] yards of leather
|leather={{#if:{{{vol|}}}|[[recipe volume is::{{{vol|}}}]]|?}} yards of leather
|cloth=[[recipe volume is::{{{vol|}}}]] yards of cloth
|cloth={{#if:{{{vol|}}}|[[recipe volume is::{{{vol|}}}]]|?}} yards of cloth
|bone=[[recipe volume is::{{{vol|}}}]] pieces of bone
|bone={{#if:{{{vol|}}}|[[recipe volume is::{{{vol|}}}]]|?}} pieces of bone
|stone=at least a [[recipe volume is::{{{vol}}}| ]]{{GearProcess|{{{vol}}}|stone}} worth of stone
|stone|rock=at least a [[recipe volume is::{{GearProcess3|{{{vol}}}|rock|n}}|{{GearProcess3|{{{vol}}}|stone|t}}]] worth of stone
|wood={{#if:{{{vol|}}}|[[recipe volume is::{{{vol|}}}]]|?}} pieces of wood
|sigil={{#if:{{{vol|}}}|[[recipe volume is::{{{vol|}}}]]|?}} sigils {{#if:{{{matdetail|}}}|('''{{{matdetail}}}''')|?}}
|herb={{#if:{{{vol|}}}|[[recipe volume is::{{{vol|}}}]]|?}} volumes of herb {{#if:{{{matdetail|}}}|('''{{{matdetail}}}''')|?}}
|volumes of an unknown type of material
|volumes of an unknown type of material
}}{{#if:{{{tech|}}}
}}{{#if:{{{tech|}}}
|,{{#if:{{{vol2|}}}
|,{{#if:{{{vol2|}}}
|{{+}}but is calculated as if it's volumes were {{{vol2}}},
|{{+}}but its weight is calculated as if its volume were {{{vol2}}},
|
|
}} and is covered by the [[recipe technique is::{{{tech|}}}]] technique|
}} and is covered by the [[recipe technique is::{{{tech|}}}]] technique|
}}.<br /><br />It is {{span|{{{1|}}}|{{{2|}}}|{{{3|}}}}}.{{#switch:{{{type}}}
}}.<br /><br />It is {{span|{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}|{{{6|}}}|{{{7|}}}}}{{#switch:{{{type}}}
|armor|chain|plate|brigandine|brig=<br /><br />It protects the following body parts: {{prot|{{{prot|}}}}}
|armor|chain|plate|brigandine|brig=<br /><br />It protects the following body parts: {{prot|{{{prot|}}}}}
|
|
}}{{#switch:{{{const|}}}
}}{{#switch:{{{const|}}}
|s=<br /><br />{{#switch:{{{type|}}}
|s=<br /><br />{{#switch:{{{type|}}}
|chain|plate|brig|brigandine|armor=This metal armor has the [[Armorsmithing#Construction|standard construction values]] for it's type.
|chain|plate|brig|brigandine|armor=This metal armor has the [[Armorsmithing#Construction|standard construction values]] for its type.
|ss|ms|ls={{#switch:{{{mat|}}}
|ss|ms|ls={{#switch:{{{mat|}}}
|leather=This tailored shield has the [[Tailoring#Construction|standard construction values]] for it's type.
|leather=This tailored shield has the [[Tailoring#Construction|standard construction values]] for its type.
|metal=This metal shield has the [[Armorsmithing#Construction|standard construction values]] for it's type.
|metal=This metal shield has the [[Armorsmithing#Construction|standard construction values]] for its type.
|wood=This wood shield has the [[Shaping#Construction|standard construction values]] for its type.
}}
|weapon={{#switch:{{{mat|}}}
|metal=This metal weapon has the [[Weaponsmithing#Construction|standard construction]] values for its type.
|wood=This wood weapon has the [[Shaping#Construction|standard construction]] values for its type.
}}
}}
|weapon=This weapon has the [[Weaponsmithing#Construction|standard construction]] values for it's type.
}}
}}
}}{{#if:{{{ident1|}}}{{{race|}}}
}}{{#if:{{{ident1|}}}{{{race|}}}
Line 82: Line 105:
|{{+}}and
|{{+}}and
|A '''crafted {{{itype}}}'''
|A '''crafted {{{itype}}}'''
}}{{+}}is styled for [[race association is::{{lc:{{{race}}}}}|{{{race}}}]][[has item property::{{lc:{{{race}}}}} style| ]].
}}{{+}}is styled for [[race association is::{{ucfirst:{{{race}}}}}|{{{race}}}]][[has item property::{{ucfirst:{{{race}}}}} style| ]].
}}{{#if:{{{book|}}}
}}{{#if:{{{book|}}}
|[[recipe book is::{{{book}}}| ]]
|[[recipe book is::{{{book}}}| ]]
Line 92: Line 115:
|y|yes|t|true=[[swappable template::true| ]]
|y|yes|t|true=[[swappable template::true| ]]
|[[swappable template::false| ]]
|[[swappable template::false| ]]
}}{{#switch:{{{sub}}}
}}</includeonly><noinclude>A template for handling player created items. Documentation will be forthcoming.{{Cat|Templates}}</noinclude>
|y|yes|t|true=[[is subpage::true| ]]
|[[is subpage::false| ]]
}}{{#if:{{{link|}}}
|[[linking page is::{{{link}}}| ]]
|[[linking page is::{{FULLPAGENAME}}| ]]
}}</includeonly><noinclude>A template for handling player created items.

==Documentation==
{| border="1"
! Property !! Expected<br />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<br />/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.
|-
| 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==
{| border="1"
! Property !! Expected<br />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==
{| border="1"
! Property !! Expected<br />Value(s) !! Notes
|-
| itype || chain/brig/plate/armor<br />ss/ms/ls || The type of item this template produces. Use "armor" for all other types.<br />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>'',<br />''<area2>''... || Areas protected by the product.
|}

{{Cat|Templates}}</noinclude>

Latest revision as of 15:09, 21 June 2023

A template for handling player created items.

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.
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.