User:Jfarris964/Sandbox/1

From Guild Wars 2 Wiki
Jump to navigationJump to search
<div class="infobox crafting">
<div class="icon">[[File:{{#if:{{{icon|}}}|{{{icon}}}|{{#ifexist: File:{{PAGENAME}}.png|{{PAGENAME}}.png|{{#vardefine:nonexistent-icon|y}}Skill.png{{!}}link=File:{{PAGENAME}}.png}}}}|40px]]</div>
<p class="heading">{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}</p>
<div class="wrapper">
;[[Crafting material|Material type]]
:{{#switch:{{lc:{{{type|}}}}}
| common = [[Crafting material#Common crafting materials|Common material]]
| fine = [[Crafting material#Fine crafting materials|Fine material]]
| gemstone = [[Crafting material#Gemstones|Gemstone]]
| component = [[Crafting component]]
| inscription = [[Inscription]]
| insignia = [[Insignia]]
| upgrade = [[Upgrade component]]
| ingredient = [[Ingredient]]
| dessert = [[Chef#Desserts|Dessert]]
| meal = [[Chef#Meals|Meal]]
| seasoning = [[Chef#Seasoning|Seasoning]]
| snack = [[Chef#Snacks|Snack]]
| soup = [[Chef#Soups|Soup]]
}}
{{#if:{{{tier|}}}|;[[Crafting#Tiers|Tier]]
:{{{tier|}}} }}
;[[Item rarity|Rarity]]
:{{rarity|{{#if:{{{rarity|}}}|{{{rarity}}}|{{#switch:{{lc:{{{type|}}}}}
| common = common
| fine = fine
| gemstone = {{#switch:{{{tier|}}} | 1 | 2 | 3 | 4 = fine | 5 = masterwork | 6 = rare }}
| insignia = {{#if:{{#pos:{{{name|{{PAGENAME}}}}}}}|Embroidered|masterwork|fine}}
| inscription = {{#if:{{#pos:{{{name|{{PAGENAME}}}}}}}|Plated|masterwork|fine}}
| component = common
<!-- This can probably be expanded to cover more types like runes, we just don't have enough information on the wiki -->
| #default = ''Unspecified''}} }} }}
;[[Crafting#Crafting disciplines|Used by]]
:{{#if:{{{armorsmith|}}}|{{Armorsmith}} ({{{armorsmith}}})<br>}}<!--
-->{{#if:{{{artificer|}}}|{{Artificer}} ({{{artificer}}})<br>}}<!--
-->{{#if:{{{chef|}}}|{{Chef}} ({{{chef}}})<br>}}<!--
-->{{#if:{{{huntsman|}}}|{{Huntsman}} ({{{huntsman}}})<br>}}<!--
-->{{#if:{{{jeweler|}}}|{{Jeweler}} ({{{jeweler}}})<br>}}<!--
-->{{#if:{{{leatherworker|}}}|{{Leatherworker}} ({{{leatherworker}}})<br>}}<!--
-->{{#if:{{{tailor|}}}|{{Tailor}} ({{{tailor}}})<br>}}<!--
-->{{#if:{{{weaponsmith|}}}|{{Weaponsmith}} ({{{weaponsmith}}})<br>}}
{{ #if: {{{value|}}} |;[[Coin|Value]]
:{{value|{{{value|}}}}}}}
</div>
{{clear}}
</div>
{{#ifeq: {{{historical|n}}} | y | {{historical content}} }}{{ #if: {{{description|}}} | {{Quotation|game|{{{description|}}} }} }}
<!-- Auto-categorization
-->{{ #ifeq: {{{categorize|{{ #if: {{NAMESPACE}} | n | y }} }}} | n | | {{#ifeq: {{{historical|n}}} | y | | {{#ifeq: {{#var:nonexistent-icon}} | y | [[Category:Skills missing icon]] |}}
{{#switch:{{lc:{{{type|}}}}}
| common = [[Category:Common crafting materials]]
| fine = [[Category:Fine crafting materials]]
| gemstone = [[Category:Gemstones]]
| component = [[Category:Crafting components]]
| inscription = [[Category:Inscriptions]]
| insignia = [[Category:Insignias]]
| upgrade = [[Category:Upgrade components]]
| ingredient = [[Category:Ingredients]]
| dessert = [[Category:Desserts]]
| meal = [[Category:Meals]]
| seasoning = [[Category:Seasoning]]
| snack = [[Category:Snacks]]
| soup = [[Category:Soups]]
}}
}}}}

Parameters[edit]

Parameter Optional? Default Notes
name Optional {{PAGENAME}} Name of the item (required if article name has a disambiguation suffix)
icon Optional File:{{PAGENAME}}.png Inventory icon. Should only be used in rare cases.
description Optional Verbatim from the game. Do not repeat the item type, since it appears in the infobox proper.
type Unspecified Allowed values:

For cooking ingredients:

tier Sometimes The tier 1 – 6 of the material. Required for most non-cooking materials.
rarity Sometimes Specified rarity: common, fine, masterwork, rare, exotic, legendary. Can be determined automatically for some material types.
armorsmith
artificer
chef
huntsman
jeweler
leatherworker
tailor
weaponsmith
Optional The level of the discipline(s) that can use the material.
value Optional The value of the item.
categorize Optional n to skip auto-categorization. If the page is historical, use the historical parameter (below) instead.
historical Optional y to flag the page as historical. Functionally identical to categorize = n, but it also adds Category:Historical content and displays the {{Historical content}} notice.

Code[edit]

{{Crafting infobox
| name = 
| icon = 
| description = 
| type = 
| tier = 
| rarity = 
| armorsmith = 
| artificer = 
| chef = 
| huntsman = 
| jeweler = 
| leatherworker = 
| tailor = 
| weaponsmith = 
| value = 
}}

Example[edit]

Note that the parameters name and icon are only used here because this is not the Tiny Scale article; normally they would not be needed.

{{Crafting infobox
| name = Tiny Scale
| icon = Tiny Scale.png
| description = Used to make [[Insignia]]s.
| type = fine
| tier = 1
| armorsmith = 25
| artificer = 25
| huntsman = 25
| leatherworker = 25
| tailor = 25
| weaponsmith = 25
| value = 3
}}