Difference between revisions of "Template:InfoBox UO Recipe"

m
m
 
(23 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#arraydefine:graphic_is_wearable|{{UOGraphicList_wearable}}}}{{#arraydefine:ingreds| <!--The extra commas here are to allow clean newlines between different items. -->
+
<includeonly>{{#arraydefine:graphic_is_wearable|{{UOGraphicList_wearable}}}}{{#vardefine: wearSlot|{{#explode:{{#arrayindex:graphic_is_wearable|{{#arraysearch:graphic_is_wearable|/{{{graphic}}};\w?/|0}}|-1}}|;|1}} }}{{#arraydefine:ingreds| <!--The extra commas here are to allow clean newlines between different items. -->
 
,Unabridged Atlas Of Eodon,
 
,Unabridged Atlas Of Eodon,
 
,Level 1 Treasure Map,
 
,Level 1 Treasure Map,
 
,Level 3 Treasure Map,
 
,Level 3 Treasure Map,
 
,Level 4 Treasure Map,
 
,Level 4 Treasure Map,
 +
,Resolve's Bridle,
 +
,Ring Of The Elements,
 +
,Leggings Of Bane,
 +
,Black Moonstone,
 +
,Hat Of The Magi,
 
,Level 5 Treasure Map,
 
,Level 5 Treasure Map,
 
,Blow Pipe,
 
,Blow Pipe,
 +
,Fresh Seasoning,
 +
,Raw Serpent Steak,
 +
,Salt,
 +
,Dried Herbs,
 +
,Cure Of Defense,
 +
,Cure Of Fortification,
 +
,Cure Of Hardening,
 +
,Cure Of Invulnerability,
 +
,Raw Dino Ribs,
 +
,Cure Of Protection,
 +
,Gloss Of Defense,
 +
,Gloss Of Fortification,
 +
,Gloss Of Hardening,
 +
,Quicksilver,
 +
,Gloss Of Invulnerability,
 +
,Gloss Of Protection,
 +
,Polish Of Defense,
 +
,Polish Of Fortification,
 +
,Polish Of Hardening,
 +
,Polish Of Invulnerability,
 +
,Polish Of Protection,
 +
,Scour Of Defense,
 +
,Scour Of Fortification,
 +
,Scour Of Hardening,
 +
,Scour Of Invulnerability,
 +
,Scour Of Protection,
 +
,Varnish Of Defense,
 +
,Varnish Of Fortification,
 +
,Varnish Of Hardening,
 +
,Varnish Of Invulnerability,
 +
,Varnish Of Protection,
 +
,Wash Of Defense,
 +
,Wash Of Fortification,
 +
,Wash Of Hardening,
 +
,Wash Of Invulnerability,
 +
,Wash Of Protection,
 
,Sand,
 
,Sand,
 
,Academic Books,
 
,Academic Books,
Line 25: Line 66:
 
,Animal Pheromone,
 
,Animal Pheromone,
 
,Hitching Rope,
 
,Hitching Rope,
 +
,Rope,
 
,Phillip's Wooden Steed,
 
,Phillip's Wooden Steed,
 
,Bananas,
 
,Bananas,
Line 47: Line 89:
 
,Bottle Of Wine,
 
,Bottle Of Wine,
 
,Boura Pelt,
 
,Boura Pelt,
 +
,Bread Loaf,
 
,Bowl Of Peas,
 
,Bowl Of Peas,
 
,Bowl Of Rotworm Stew,
 
,Bowl Of Rotworm Stew,
Line 155: Line 198:
 
,Mandrake Root,
 
,Mandrake Root,
 
,Medusa Blood,
 
,Medusa Blood,
 +
,Dried Herbs,
 +
,Ham,
 
,Mento Seasoning,
 
,Mento Seasoning,
 
,Midnight Bracers,
 
,Midnight Bracers,
Line 246: Line 291:
 
,Zoogi Fungus,
 
,Zoogi Fungus,
 
}}{{#arrayunique:ingreds}}{{#arraysort:ingreds|asc}}{{#arraydefine:skills|Alchemy,Anatomy,Animal Lore,Animal Taming,Archery,Arms Lore,Basket Weaving,Begging,Blacksmithing,Bushido,Camping,Carpentry,Cartography,Chivalry,Cooking,Detecting Hidden,Discordance,Evaluating Intelligence,Fencing,Fishing,Fletching,Focus,Forensic Evaluation,Glassblowing,Healing,Herding,Hiding,Imbuing,Inscription,Item Identification,Lock Picking,Lumberjacking,Mace Fighting,Magery,Meditation,Mining,Musicianship,Mysticism,Necromancy,Ninjitsu,Parrying,Peacemaking,Poisoning,Provocation,Remove Trap,Resisting Spells,Snooping,Spellweaving,Spirit Speak,Stealing,Stealth,Stone Crafting,Swordsmanship,Tactics,Tailoring,Taste Identification,Throwing,Tinkering,Tracking,Veterinary,Wrestling}}
 
}}{{#arrayunique:ingreds}}{{#arraysort:ingreds|asc}}{{#arraydefine:skills|Alchemy,Anatomy,Animal Lore,Animal Taming,Archery,Arms Lore,Basket Weaving,Begging,Blacksmithing,Bushido,Camping,Carpentry,Cartography,Chivalry,Cooking,Detecting Hidden,Discordance,Evaluating Intelligence,Fencing,Fishing,Fletching,Focus,Forensic Evaluation,Glassblowing,Healing,Herding,Hiding,Imbuing,Inscription,Item Identification,Lock Picking,Lumberjacking,Mace Fighting,Magery,Meditation,Mining,Musicianship,Mysticism,Necromancy,Ninjitsu,Parrying,Peacemaking,Poisoning,Provocation,Remove Trap,Resisting Spells,Snooping,Spellweaving,Spirit Speak,Stealing,Stealth,Stone Crafting,Swordsmanship,Tactics,Tailoring,Taste Identification,Throwing,Tinkering,Tracking,Veterinary,Wrestling}}
{| class=infobox style="clear: right;"
+
{| class=infobox style="clear: right;max-width: 55%;"
 
|class=titlecell colspan="2"|Craftable {{ucfirst:{{{type|Item}}}}}
 
|class=titlecell colspan="2"|Craftable {{ucfirst:{{{type|Item}}}}}
 
|-
 
|-
Line 265: Line 310:
 
|{{#if:{{{mana|}}}|{{{mana|}}} mana}}
 
|{{#if:{{{mana|}}}|{{{mana|}}} mana}}
 
|-
 
|-
|Can be exceptionally crafted
+
|Can be exceptional
 
|{{#if:{{{exceptional|}}}|Yes|No}}
 
|{{#if:{{{exceptional|}}}|Yes|No}}
 
|-
 
|-
 
| Wearable Slot
 
| Wearable Slot
| {{#arraydefine:graphic_is_wearable|{{UOGraphicList_wearable}}}}{{#ifeq:{{#explode:{{#arrayindex:graphic_is_wearable|{{#arraysearch:graphic_is_wearable|/{{{graphic}}};\w?/|0}}|-1}}|;|0}}|{{{graphic}}}|{{#explode:{{#arrayindex:graphic_is_wearable|{{#arraysearch:graphic_is_wearable|/{{{graphic}}};\w?/|0}}|-1}}|;|1}}|No}}
+
| {{#if: {{#var: wearSlot}} |{{#var: wearSlot}}[[Category:UO {{#var: wearSlot}}-Slot Items]]|None}}
 
|-
 
|-
 
| Wieldable
 
| Wieldable
Line 275: Line 320:
 
|-
 
|-
 
| Required Recipe
 
| Required Recipe
|style="white-space: nowrap;"| {{#if:{{{recipe|}}}|{{UO_Image|image|Recipe|no}} [[UO:{{{name}}} Recipe]][[Category:UO Items that require Recipes]]|None}}
+
|style="white-space: nowrap;padding-right: 1rem;"| {{#if:{{{recipe|}}}|{{UO_Image|image|Recipe|no}} [[UO:{{{recipe_name|{{{name}}}}}} Recipe]][[Category:UO Items that require Recipes]]|None}}
 
|-
 
|-
| Tool Required|| {{#ifeq:{{lc:{{{tool|none}}}}}|none|None|{{#arraydefine:tools|{{{tool}}}}}{{#arraysort:tools|asc}}{{#arrayprint:tools|&nbsp;''or''<br>|@@@@|{{UO_Image|image|@@@@}}}}}}
+
| Tool Required
 +
|style="padding-right: 1rem;"| {{#ifeq:{{lc:{{{tool|none}}}}}|none|None|{{#arraydefine:tools|{{{tool}}}}}{{#arraysort:tools|asc}}
 +
{{#ifexpr: {{#arraysize:tools}} > 1|''Any of:''<br>|}}{{#arrayprint:tools||@@@@|<div style="white-space: nowrap;padding-right: 0.75rem;height:2.5rem;">{{UO_Image|image|@@@@}}</div>}}}}
 
|-
 
|-
 
|{{#if:{{{proximity|}}}|Must Be Near}}
 
|{{#if:{{{proximity|}}}|Must Be Near}}
Line 292: Line 339:
 
|class=titlecell colspan="2"|Ingredients
 
|class=titlecell colspan="2"|Ingredients
 
|-
 
|-
|
 
 
|style="white-space: nowrap;"|{{#arrayprint:ingreds| |@@@@|{{#if:{{{@@@@|}}}|{{{@@@@|}}} {{UO_Image|image|@@@@}}{{#ifeq:{{PAGEID}}|187693||[[Category:UO Craftable Items Using @@@@]]}}<br> }} }}
 
|style="white-space: nowrap;"|{{#arrayprint:ingreds| |@@@@|{{#if:{{{@@@@|}}}|{{{@@@@|}}} {{UO_Image|image|@@@@}}{{#ifeq:{{PAGEID}}|187693||[[Category:UO Craftable Items Using @@@@]]}}<br> }} }}
 
|}
 
|}
 
{{#explode:{{#arrayindex:graphic_is_wearable|{{#arraysearch:graphic_is_wearable|/{{{graphic}}};\w?/|0}}|-1}}|;|1}}
 
 
 
</includeonly>
 
</includeonly>

Latest revision as of 23:22, 21 June 2020