Module:Utilities: Difference between revisionsGive feedback
Gammaton32 (talk | contribs) use item slot colors from Infobox:Hero |
No edit summary |
||
| (One intermediate revision by one other user not shown) | |||
| Line 111: | Line 111: | ||
local slot_colors = { | local slot_colors = { | ||
["Weapon"] = { | ["Weapon"] = { | ||
hex = " | hex = "c8761c", | ||
rgb = " | rgb = "200, 118, 28", | ||
hsl = " | hsl = "31, 75%, 45%", | ||
cmyk = "0%, | cmyk = "0%, 41%, 86%, 22%" | ||
}, | }, | ||
["Armor"] = { | ["Armor"] = { | ||
hex = " | hex = "6f8724", | ||
rgb = " | rgb = "198, 248, 114", | ||
hsl = " | hsl = "82, 91%, 71%", | ||
cmyk = " | cmyk = "20%, 0%, 54%, 3%" | ||
}, | }, | ||
["Tech"] = { | ["Tech"] = { | ||
hex = " | hex = "ba5ca6", | ||
rgb = " | rgb = "186, 92, 166", | ||
hsl = " | hsl = "313, 41%, 55%", | ||
cmyk = " | cmyk = "0%, 51%, 11%, 27%" | ||
} | } | ||
| Line 264: | Line 264: | ||
end | end | ||
return result | return result | ||
end | |||
-- Helper function | |||
-- Returns true or false depending if the page exist | |||
function p.page_exists(title_text) | |||
local title_obj = mw.title.new(title_text) | |||
return title_obj and title_obj.exists or false | |||
end | end | ||
return p | return p | ||