Module:ItemTables: Difference between revisionsGive feedback
remove get type function, cleanup replace, apply friendly name |
add styling and more patterns |
||
| Line 47: | Line 47: | ||
local link_patterns = {} | local link_patterns = {} | ||
link_patterns["BonusClipSizePercent"] = { "[Aa]mmo" } | link_patterns["BonusClipSizePercent"] = { "[Aa]mmo" } | ||
link_patterns["BaseAttackDamagePercent"] = { "[Ww]eapon [Dd]amage" } | |||
link_patterns["CloseRangeBonusWeaponPower"] = { "[Cc]lose [Ww]eapon [Dd]amage" } | |||
link_patterns["BulletLifestealPercent"] = { "[Bb]ullet [Ll]ifesteal" } | link_patterns["BulletLifestealPercent"] = { "[Bb]ullet [Ll]ifesteal" } | ||
link_patterns["BonusHealth"] = { "[Hh]ealth" } | link_patterns["BonusHealth"] = { "[Hh]ealth" } | ||
| Line 104: | Line 106: | ||
:tag('td'):wikitext(get_cost(itemName["Name"])):done() | :tag('td'):wikitext(get_cost(itemName["Name"])):done() | ||
:tag('td'):wikitext(get_type(itemName["Name"])):done() | :tag('td'):wikitext(get_type(itemName["Name"])):done() | ||
:tag('td'):wikitext("+" .. itemName[property].. " " .. friendlyPropertyName):done() | :tag('td'):wikitext("+<b>" .. itemName[property].. "</b> " .. friendlyPropertyName):done() | ||
table.insert(requirements, tableData) | table.insert(requirements, tableData) | ||