Template:MasterCraftingTable: Difference between revisions

From Path of Exile Wiki
Jump to navigation Jump to search
>ARTyficial
(Removed line break. In a new line the first column would need a single ! instead of !!, but the ifs are all correctly producing !!, so one ! remains and can show up in the articles.)
>OmegaK2
No edit summary
Line 4: Line 4:
! {{Abbr|Effect|Effect that can be crafted onto an item}}{{#if: {{{item_affix|yes}}}|!! [[Item_Affix#Prefixes|Prefix]]!! [[Item_Affix#Suffixes|Suffix]]|}}{{#if: {{{plvl|yes}}}|!! {{Abbr|[[Image:Level_up_icon_small.png|link=|Lvl.]]|Required Player Level|class=nounderline}}|}}
! {{Abbr|Effect|Effect that can be crafted onto an item}}{{#if: {{{item_affix|yes}}}|!! [[Item_Affix#Prefixes|Prefix]]!! [[Item_Affix#Suffixes|Suffix]]|}}{{#if: {{{plvl|yes}}}|!! {{Abbr|[[Image:Level_up_icon_small.png|link=|Lvl.]]|Required Player Level|class=nounderline}}|}}
! {{Abbr|[[Image:Level_up_icon_small.png|link=|Lvl.]]|Required Master Level|class=nounderline}}
! {{Abbr|[[Image:Level_up_icon_small.png|link=|Lvl.]]|Required Master Level|class=nounderline}}
! {{Abbr|Cost|Required currency for crafting}}{{#if: {{{helmet|}}}|!! style="max-width: 20px;width: 20px;" {{!}} [[{{SMW item class icon|item_class=Helmets}}|16px|link=Helmet]]|}}{{#if: {{{body|}}}|!! style="max-width: 20px;width: 20px;" {{!}} [[{{SMW item class icon|item_class=Body Armours}}|16px|link=Body armour]]|}}{{#if: {{{gloves|}}}|!! style="max-width: 20px;width: 20px;" {{!}} [[{{SMW item class icon|item_class=Gloves}}|16px|link=Gloves]]|}}{{#if: {{{shoes|}}}|!! style="max-width: 20px;width: 20px;" {{!}} [[{{SMW item class icon|item_class=Boots}}|16px|link=Boots]]|}}{{#if: {{{shield|}}}|!! style="max-width: 20px;width: 20px;" {{!}} [[{{SMW item class icon|item_class=Shields}}|16px|link=Shield]]|}}{{#if: {{{quiver|}}}|!! style="max-width: 20px;width: 20px;" {{!}} [[{{SMW item class icon|item_class=Quivers}}|16px|link=Quiver]]|}}{{#if: {{{belt|}}}|!! style="max-width: 20px;width: 20px;" {{!}} [[{{SMW item class icon|item_class=Belts}}|16px|link=Belt]]|}}{{#if: {{{ring|}}}|!! style="max-width: 20px;width: 20px;" {{!}} [[{{SMW item class icon|item_class=Rings}}|16px|link=Ring]]|}}{{#if: {{{amulet|}}}|!! style="max-width: 20px;width: 20px;" {{!}} [[{{SMW item class icon|item_class=Amulets}}|16px|link=Amulet]]|}}{{#if: {{{bow|}}}|!! style="max-width: 20px;width: 20px;" {{!}} [[{{SMW item class icon|item_class=Bows}}|16px|link=Bow]]|}}{{#if: {{{wand|}}}|!! style="max-width: 20px;width: 20px;" {{!}} [[{{SMW item class icon|item_class=Wands}}|8px|link=Wand]]|}}{{#if: {{{sceptre|}}}|!! style="max-width: 20px;width: 20px;" {{!}} [[{{SMW item class icon|item_class=Sceptres}}|16px|link=Sceptre]]|}}{{#if: {{{claw|}}}|!! style="max-width: 20px;width: 20px;" {{!}} [[{{SMW item class icon|item_class=Claws}}|16px|link=Claw]]|}}{{#if: {{{dagger|}}}|!! style="max-width: 20px;width: 20px;" {{!}} [[{{SMW item class icon|item_class=Daggers}}|8px|link=Dagger]]||}}{{#if: {{{2H sword|}}}|!! style="max-width: 20px;width: 20px;" {{!}} [[{{SMW item class icon|item_class=Two Hand Swords}}|16px|link=Two_Handed_Sword]]|}}{{#if: {{{1H sword|}}}|!! style="max-width: 20px;width: 20px;" {{!}} [[{{SMW item class icon|item_class=One Hand Swords}}|8px|link=One_Handed_Sword]]|}}{{#if: {{{2H mace|}}}|!! style="max-width: 20px;width: 20px;" {{!}} [[{{SMW item class icon|item_class=Two Hand Maces}}|16px|link=Two_Handed_Mace]]|}}{{#if: {{{1H mace|}}}|!! style="max-width: 20px;width: 20px;" {{!}} [[{{SMW item class icon|item_class=One Hand Maces}}|16px|link=One_Handed_Mace]]|}}{{#if: {{{2H axe|}}}|!! style="max-width: 20px;width: 20px;" {{!}} [[{{SMW item class icon|item_class=One Hand Axes}}|16px|link=Two_Handed_Axe]]|}}{{#if: {{{1H axe|}}}|!! style="max-width: 20px;width: 20px;" {{!}} [[{{SMW item class icon|item_class=Two Hand Axes}}|16px|link=One_Handed_Axe]]|}}{{#if: {{{staff|}}}|!! style="max-width: 20px;width: 20px;" {{!}} [[{{SMW item class icon|item_class=Staves}}|16px|link=Staff]]|}}{{#if: {{{1H|}}}|!! {{Abbr|1H|One-Handed Weapons}}|}}{{#if: {{{2H|}}}|!! {{Abbr|2H|Two-Handed Weapons}}|}}</includeonly><noinclude>
! {{Abbr|Cost|Required currency for crafting}}{{#if: {{{helmet|}}}|!! style="max-width: 20px;width: 20px;" {{!}} {{Query item class icon|item_class=Helmets|size=16|link=Helmet}}|}}{{#if: {{{body|}}}|!! style="max-width: 20px;width: 20px;" {{!}} {{Query item class icon|item_class=Body Armours|size=16|link=Body armour}}|}}{{#if: {{{gloves|}}}|!! style="max-width: 20px;width: 20px;" {{!}} {{Query item class icon|item_class=Gloves|size=16|link=Gloves}}|}}{{#if: {{{shoes|}}}|!! style="max-width: 20px;width: 20px;" {{!}} {{Query item class icon|item_class=Boots|size=16|link=Boots}}|}}{{#if: {{{shield|}}}|!! style="max-width: 20px;width: 20px;" {{!}} {{Query item class icon|item_class=Shields|size=16|link=Shield}}|}}{{#if: {{{quiver|}}}|!! style="max-width: 20px;width: 20px;" {{!}} {{Query item class icon|item_class=Quivers|size=16|link=Quiver}}|}}{{#if: {{{belt|}}}|!! style="max-width: 20px;width: 20px;" {{!}} {{Query item class icon|item_class=Belts|size=16|link=Belt}}|}}{{#if: {{{ring|}}}|!! style="max-width: 20px;width: 20px;" {{!}} {{Query item class icon|item_class=Rings|size=16|link=Ring}}|}}{{#if: {{{amulet|}}}|!! style="max-width: 20px;width: 20px;" {{!}} {{Query item class icon|item_class=Amulets|size=16|link=Amulet}}|}}{{#if: {{{bow|}}}|!! style="max-width: 20px;width: 20px;" {{!}} {{Query item class icon|item_class=Bows|size=16|link=Bow}}|}}{{#if: {{{wand|}}}|!! style="max-width: 20px;width: 20px;" {{!}} {{Query item class icon|item_class=Wands|size=8|link=Wand}}|}}{{#if: {{{sceptre|}}}|!! style="max-width: 20px;width: 20px;" {{!}} {{Query item class icon|item_class=Sceptres|size=16|link=Sceptre}}|}}{{#if: {{{claw|}}}|!! style="max-width: 20px;width: 20px;" {{!}} {{Query item class icon|item_class=Claws|size=16|link=Claw}}|}}{{#if: {{{dagger|}}}|!! style="max-width: 20px;width: 20px;" {{!}} {{Query item class icon|item_class=Daggers|size=8|link=Dagger}}||}}{{#if: {{{2H sword|}}}|!! style="max-width: 20px;width: 20px;" {{!}} {{Query item class icon|item_class=Two Hand Swords}}|16px|link=Two_Handed_Sword]]|}}{{#if: {{{1H sword|}}}|!! style="max-width: 20px;width: 20px;" {{!}} {{Query item class icon|item_class=One Hand Swords}}|8px|link=One_Handed_Sword]]|}}{{#if: {{{2H mace|}}}|!! style="max-width: 20px;width: 20px;" {{!}} {{Query item class icon|item_class=Two Hand Maces}}|16px|link=Two_Handed_Mace]]|}}{{#if: {{{1H mace|}}}|!! style="max-width: 20px;width: 20px;" {{!}} {{Query item class icon|item_class=One Hand Maces}}|16px|link=One_Handed_Mace]]|}}{{#if: {{{2H axe|}}}|!! style="max-width: 20px;width: 20px;" {{!}} {{Query item class icon|item_class=One Hand Axes}}|16px|link=Two_Handed_Axe]]|}}{{#if: {{{1H axe|}}}|!! style="max-width: 20px;width: 20px;" {{!}} {{Query item class icon|item_class=Two Hand Axes}}|16px|link=One_Handed_Axe]]|}}{{#if: {{{staff|}}}|!! style="max-width: 20px;width: 20px;" {{!}} {{Query item class icon|item_class=Staves|size=16|link=Staff}}|}}{{#if: {{{1H|}}}|!! {{Abbr|1H|One-Handed Weapons}}|}}{{#if: {{{2H|}}}|!! {{Abbr|2H|Two-Handed Weapons}}|}}</includeonly><noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>

Revision as of 08:38, 3 January 2018

Template documentation[view] [edit] [history] [purge]

Usage

This template creates a table header for the master crafting. Without further specification of Arguments it will only include the required master and player level, the effect and cost columns.

Arguments

Parameter Value Description
master any Will show the master column
item_affix empty Will hide the suffix & affix columns
plvl empty Will show the player level column
helmet any Will show the helmet column
body any Will show the body (armor) column
gloves any Will show the gloves column
shoes any Will show the shoes column
shield any Will show the shield column
quiver any Will show the quiver column
belt any Will show the belt column
ring any Will show the ring column
amulet any Will show the amulet column
bow any Will show the bow column
wand any Will show the wand column
sceptre any Will show the sceptre column
claw any Will show the claw column
dagger any Will show the dagger column
staff any Will show the staff column
1H any Will show the one handed column
2H any Will show the two handed column

Examples

Default Table

{{MasterCraftingTable}}
|-
| Superpowers +1 || {{no}} || {{yes}} || 15 || 1 || 1x {{il|Exalted Orb}}
|}
Effect Prefix Suffix Lvl. Lvl. Cost16px8px16px16px16px16px
Superpowers +1
15 1 1x Exalted OrbExalted OrbStack Size: 20Augments a rare item with a new random modifierRight click this item then left click a rare item to apply it. Rare items can have up to six random modifiers.

Minimal Table

{{MasterCraftingTable
|item_affix=
|plvl=
}}
|-
| Superpowers +1 || 1 || 1x {{il|Exalted Orb}}
|}
Effect Lvl. Cost16px8px16px16px16px16px
Superpowers +1 1 1x Exalted OrbExalted OrbStack Size: 20Augments a rare item with a new random modifierRight click this item then left click a rare item to apply it. Rare items can have up to six random modifiers.

Complete Table

{{MasterCraftingTable
|master=yes
|helmet=yes
|body=yes
|gloves=yes
|shoes=yes
|shield=yes
|quiver=yes
|belt=yes
|ring=1
|amulet=1
|bow=1
|wand=1
|sceptre=1
|claw=1
|dagger=1
|staff=1}}
|-
| Vorici
| Superpowers +1
| {{yes}}
| {{no}}
| 15 
| 1 
| 1x {{il|Exalted Orb}}
| {{yes}}
| {{no}}
|}
Master Effect Prefix Suffix Lvl. Lvl. Cost style="max-width: 20px;width: 20px;" style="max-width: 20px;width: 20px;" style="max-width: 20px;width: 20px;" | style="max-width: 20px;width: 20px;" style="max-width: 20px;width: 20px;" style="max-width: 20px;width: 20px;" style="max-width: 20px;width: 20px;" style="max-width: 20px;width: 20px;" style="max-width: 20px;width: 20px;" style="max-width: 20px;width: 20px;" style="max-width: 20px;width: 20px;" style="max-width: 20px;width: 20px;" style="max-width: 20px;width: 20px;" |16px8px16px16px16px16px
Vorici Superpowers +1
15 1 1x Exalted OrbExalted OrbStack Size: 20Augments a rare item with a new random modifierRight click this item then left click a rare item to apply it. Rare items can have up to six random modifiers.

Adding a column

Since MasterCraftingTable only creates the header of the table, you can also simply add columns if you like. If those are (or may be) used on multiple master pages, please edit the template instead of consistency.

{{MasterCraftingTable}}
! Extra Column
|-
| Superpowers +1 || {{no}} || {{yes}} || 15 || 1 || 1x {{il|Exalted Orb}} || Extra
|}
Effect Prefix Suffix Lvl. Lvl. Cost16px8px16px16px16px16px Extra Column
Superpowers +1
15 1 1x Exalted OrbExalted OrbStack Size: 20Augments a rare item with a new random modifierRight click this item then left click a rare item to apply it. Rare items can have up to six random modifiers. Extra