Template:CraftProp: Difference between revisions
(global capacity change and refactor to allow easy addition of future properties to crafting materials) |
(fix #ifeq bug, where a - should indicate the property is absent.) |
||
Line 19: | Line 19: | ||
}} |
}} |
||
{{!}}- |
{{!}}- |
||
{{#if:{{{hardness|}}}|{{#ifeq:{{{hardness|}}}|-|{{!}} align="center"{{!}} |[[crafting hardness is::{{{hardness}}}]]}}|}} |
{{#if:{{{hardness|}}}|{{#ifeq:{{{hardness|}}}|-||{{!}} align="center"{{!}} |[[crafting hardness is::{{{hardness}}}]]}}|}} |
||
{{#if:{{{durability|}}}|{{#ifeq:{{{durability|}}}|-|{{!}} align="center"{{!}} [[crafting durability is::{{{durability}}}]]}}|}} |
{{#if:{{{durability|}}}|{{#ifeq:{{{durability|}}}|-||{{!}} align="center"{{!}} [[crafting durability is::{{{durability}}}]]}}|}} |
||
{{#if:{{{workability|}}}|{{#ifeq:{{{workability|}}}|-|{{!}} align="center"{{!}} [[crafting workability is::{{{workability}}}|}} |
{{#if:{{{workability|}}}|{{#ifeq:{{{workability|}}}|-||{{!}} align="center"{{!}} [[crafting workability is::{{{workability}}}|}} |
||
{{#if:{{{electrical|}}}|{{#ifeq:{{{electrical|}}}|-|{{!}} align="center"{{!}} [[crafting electrical resistance is::{{{electrical}}}]]}}|}} |
{{#if:{{{electrical|}}}|{{#ifeq:{{{electrical|}}}|-||{{!}} align="center"{{!}} [[crafting electrical resistance is::{{{electrical}}}]]}}|}} |
||
{{#if:{{{thermal|}}}|{{#ifeq:{{{thermal|}}}|-|{{!}} align="center"{{!}} [[crafting thermal resistance is::{{{thermal}}}]]}}|}} |
{{#if:{{{thermal|}}}|{{#ifeq:{{{thermal|}}}|-||{{!}} align="center"{{!}} [[crafting thermal resistance is::{{{thermal}}}]]}}|}} |
||
{{#if:{{{physical|}}}|{{#ifeq:{{{physical|}}}|-|{{!}} align="center"{{!}} [[crafting physical resistance is::{{{physical}}}]]}}|}} |
{{#if:{{{physical|}}}|{{#ifeq:{{{physical|}}}|-||{{!}} align="center"{{!}} [[crafting physical resistance is::{{{physical}}}]]}}|}} |
||
{{#if:{{{ductility|}}}|{{#ifeq:{{{ductility|}}}|-|{{!}} align="center"{{!}} [[crafting ductility is::{{{ductility}}}]]}}|}} |
{{#if:{{{ductility|}}}|{{#ifeq:{{{ductility|}}}|-||{{!}} align="center"{{!}} [[crafting ductility is::{{{ductility}}}]]}}|}} |
||
{{#if:{{{stiffness|}}}|{{#ifeq:{{{stiffness|}}}|-|{{!}} align="center"{{!}} [[crafting stiffness is::{{{stiffness}}}]]}}|}} |
{{#if:{{{stiffness|}}}|{{#ifeq:{{{stiffness|}}}|-||{{!}} align="center"{{!}} [[crafting stiffness is::{{{stiffness}}}]]}}|}} |
||
{{#if:{{{shortbow|}}}|{{#ifeq:{{{shortbow|}}}|-|{{!}} align="center"{{!}} [[crafting shortbow affinity is::{{{longbow}}}]]}}|}} |
{{#if:{{{shortbow|}}}|{{#ifeq:{{{shortbow|}}}|-||{{!}} align="center"{{!}} [[crafting shortbow affinity is::{{{longbow}}}]]}}|}} |
||
{{#if:{{{longbow|}}}|{{#ifeq:{{{longbow|}}}|-|{{!}} align="center"{{!}} [[crafting longbow affinity is::{{{hardness}}}]]}}|}} |
{{#if:{{{longbow|}}}|{{#ifeq:{{{longbow|}}}|-||{{!}} align="center"{{!}} [[crafting longbow affinity is::{{{hardness}}}]]}}|}} |
||
{{#if:{{{composite|}}}|{{#ifeq:{{{composite|}}}|-|{{!}} align="center"{{!}} [[crafting composite bow affinity is::{{{composite}}}]]}}|}} |
{{#if:{{{composite|}}}|{{#ifeq:{{{composite|}}}|-||{{!}} align="center"{{!}} [[crafting composite bow affinity is::{{{composite}}}]]}}|}} |
||
{{#if:{{{capacity|}}}|{{#ifeq:{{{hardness|}}}|-|{{!}} align="center"{{!}} [[crafting capacity is::{{{capacity}}}]]}}|}} |
{{#if:{{{capacity|}}}|{{#ifeq:{{{hardness|}}}|-||{{!}} align="center"{{!}} [[crafting capacity is::{{{capacity}}}]]}}|}} |
||
{{#if:{{{density|}}}|{{#ifeq:{{{density|}}}|-|{{!}} align="center"{{!}} [[crafting density is::{{{density}}}]]}}|}} |
{{#if:{{{density|}}}|{{#ifeq:{{{density|}}}|-||{{!}} align="center"{{!}} [[crafting density is::{{{density}}}]]}}|}} |
||
{{#if:{{{potency|}}}|{{#ifeq:{{{potency|}}}|-|{{!}} align="center"{{!}} [[crafting potency is::{{{potency}}}]]}}|}} |
{{#if:{{{potency|}}}|{{#ifeq:{{{potency|}}}|-||{{!}} align="center"{{!}} [[crafting potency is::{{{potency}}}]]}}|}} |
||
{{#if:{{{efficacy|}}}|{{#ifeq:{{{efficacy|}}}|-|{{!}} align="center"{{!}} [[crafting efficacy is::{{{efficacy}}}]]}}|}} |
{{#if:{{{efficacy|}}}|{{#ifeq:{{{efficacy|}}}|-||{{!}} align="center"{{!}} [[crafting efficacy is::{{{efficacy}}}]]}}|}} |
||
{{#if:{{{solubility|}}}|{{#ifeq:{{{solubility|}}}|-|{{!}} align="center"{{!}} [[crafting solubility is::{{{solubility}}}]]}}|}} |
{{#if:{{{solubility|}}}|{{#ifeq:{{{solubility|}}}|-||{{!}} align="center"{{!}} [[crafting solubility is::{{{solubility}}}]]}}|}} |
||
{{#if:{{{toxicity|}}}|{{#ifeq:{{{toxicity|}}}|-|{{!}} align="center"{{!}} [[crafting toxicity is::{{{toxicity}}}]]}}|}} |
{{#if:{{{toxicity|}}}|{{#ifeq:{{{toxicity|}}}|-||{{!}} align="center"{{!}} [[crafting toxicity is::{{{toxicity}}}]]}}|}} |
||
{{#if:{{{size|}}}|{{#ifeq:{{{size|}}}|-|{{!}} align="center"{{!}} [[crafting size is::{{{size}}}]]}}|}} |
{{#if:{{{size|}}}|{{#ifeq:{{{size|}}}|-||{{!}} align="center"{{!}} [[crafting size is::{{{size}}}]]}}|}} |
||
{{#if:{{{value|}}}|{{#ifeq:{{{value|}}}|-|{{!}} align="center"{{!}} [[crafting value is::{{{value}}}]]}}|}} |
{{#if:{{{value|}}}|{{#ifeq:{{{value|}}}|-||{{!}} align="center"{{!}} [[crafting value is::{{{value}}}]]}}|}} |
||
{{#if:{{{source|}}}|{{#ifeq:{{{source|}}}|-|{{!}} align="center"{{!}} [[crafting source is::{{{source}}}]]}}|}} |
{{#if:{{{source|}}}|{{#ifeq:{{{source|}}}|-||{{!}} align="center"{{!}} [[crafting source is::{{{source}}}]]}}|}} |
||
|} |
|} |
||
{{#if:{{{rarity|}}}|{{#switch:{{{rarity}}}|-=|s|special=[[rarity is::special| ]]|vr|very rare=[[rarity is::very rare| ]]|r|rare=[[rarity is::rare| ]]|u|uncommon=[[rarity is::uncommon| ]]|[[rarity is::common| ]]}}|[[rarity is::common| ]]}} |
{{#if:{{{rarity|}}}|{{#switch:{{{rarity}}}|-=|s|special=[[rarity is::special| ]]|vr|very rare=[[rarity is::very rare| ]]|r|rare=[[rarity is::rare| ]]|u|uncommon=[[rarity is::uncommon| ]]|[[rarity is::common| ]]}}|[[rarity is::common| ]]}} |
Revision as of 15:41, 31 October 2017
Examples
Alchemy
{{CraftProp |type=alchemy |workability=99 |potency=99 |efficacy=99 |solubility=99 |toxicity=99 |value=1,000 |source=- |rarity=common}} |
- If the catalyst is a metal, see the Metal Source note below
Bone
{{CraftProp |type=bone |hardness=110 |durability=99 |workability=99 |electrical=99 |thermal=99 |physical=99 |density=3.0 |size=4 |value=400 |source=Ship rat |rarity=common}} |
- Source for bone should include the creature that can be skinned, when possible.
Cloth
{{CraftProp |type=cloth |durability=60 |workability=20 |electrical=35 |thermal=50 |physical=85 |density=2.00, 2.25, 2.50, 2.75, 3.00 |value=? |source=- |rarity=common}} |
Leather
{{CraftProp |type=leather |durability=60 |workability=50 |electrical=50 |thermal=35 |physical=85 |density=3.80 |size=4 |value=? |source=Granite gargoyle |rarity=common}} |
- Source for leather should include the creature that can be skinned, when possible.
Metal
{{CraftProp |type=metal |hardness=85 |durability=80 |workability=95 |electrical=40 |thermal=80 |physical=94 |ductility=90 |capacity=12 |density=5.2 |value=20,625 |source=- |rarity=special}} |
- Source for mined metal should include the rock type:
- alluvial
- igneous
- metamorphic
- sedimentary
- igneous, metamorphic, sedimentary
Stone
{{CraftProp |type=stone |hardness=30 |durability=15 |workability=60 |density=40,000 |value=277 |source=metamorphic |rarity=common}} |
- Density should be the boulder weight.
- Source for mined stone should include the rock type:
- alluvial
- igneous
- metamorphic
- sedimentary
- igneous, metamorphic, sedimentary
Wood
{{CraftProp |type=wood |durability=60 |workability=35 |hardness=20 |stiffness=64 |physical=64 |capacity=60 |shortbow=15 |longbow=10 |composite=18 |density=4.4 |value=301 |source=boreal |rarity=uncommon}} |
- Source for lumberjacked wood should include the forest type:
- boreal
- coniferous
- deciduous
- tropical
- boreal, coniferous
Common attributes
Type
The type of the crafting material. Possible values are:
- alchemy
- bone
- cloth
- leather
- metal
- stone
- wood
Hardness
The numerical hardness of the material. Used with bone, metal, stone, and wood materials.
Durability
The numerical durability of the material. Used with all crafting materials.
Workability
The numerical workability of the material. Used with all crafting materials.
Electrical
The numerical electrical resistance of the material. Used with bone, cloth, leather, and metal materials.
Thermal
The numerical thermal resistance of the material. Used with bone, cloth, leather, and metal materials.
Physical
The numerical physical resistance of the material. Used with bone, cloth, leather, and metal materials.
Ductility
The numerical ductility of the material. Used with metal materials
Stiffness
The numerical stiffness of the material. Used with wood materials.
Shortbow
The numerical shortbow affinity of the material. Used with wood materials.
Longbow
The numerical longbow affinity of the material. Used with wood materials.
Composite
The numerical composite bow affinity of the material. Used with wood materials.
Capacity
The numerical capacity of the material. Used with bone, cloth, leather, metal, stone, and wood materials.
Density
The numerical density of the material. Used with bone, cloth, leather, metal, stone, and wood materials.
Note: There is a special calculation required for wood density.
Potency
The numerical potency of the material. Used with alchemy materials.
Efficacy
The numerical efficacy of the material. Used with alchemy materials.
Solubility
The numerical solubility of the material. Used with alchemy materials.
Toxicity
The numerical toxicity of the material. Used with alchemy materials.
Size
Deprecated. The numerical size (number of pieces) contained within an item. Used with bone and leather materials.
Value
The numerical value in Kronars for a 99 quality volume of the material. Used with all crafting materials.
Value is calculated by dividing the appraised price in Kronars and dividing by the number of volumes of the material. Make sure to follow the Elanthipedia standard of putting commas in the values. For example, "75,000".
Source
This property is optionally used to describe the material's source. The most common value would include "-" (none). For leather you should indicate the skinned creature as a source, and for metal or stone you should indicate the rock formation type.
- "-" = none, the most common Source
In the case of a special source avoid ambiguous terms such as "Unique". Instead use "Quest", "Festival", "Auction" or combination.
- auction = auction only
- festival = festival specific materials such as smokewood sold at Hollow Eve
- quest = quest only, including microtrans quests
Combined terms should be a comma separated list in alphabetical order, for example, "Auction, Festival".
- auction, quest
Rarity
The rarity of the crafting material. Used with all crafting materials. Possible values include:
- c = common
- u = uncommon
- r = rare
- vr = very rare
- s = special. Denote the Source for special rarity (e.g. Quest, Festival)
Category
This template automatically includes the article in Category:Crafting materials, unless category= is set to "-".