Module:Color: Difference between revisions

Sur (talk | contribs)
m write_previews initial
Sur (talk | contribs)
m order added for write_previews sake
Line 141: Line 141:
         cmyk = "0%,63%,18%,35%"
         cmyk = "0%,63%,18%,35%"
     }
     }
}
local colors_order = {
"CitadelCategoryWeapon",
"CitadelCategoryArmor",
"CitadelCategoryTech",
"Souls",
"Healing",
"hero_atlas",
"hero_wraith",
"hero_viscous",
"hero_orion",
"hero_hornet",
"hero_inferno",
"hero_forge",
"hero_haze",
"hero_ghost",
"hero_mirage",
"hero_lash",
"hero_gigawatt",
"hero_yamato",
"hero_warden",
"hero_bebop",
"hero_chrono",
"hero_dynamo",
"hero_shiv"
}
}


Line 232: Line 257:
local rows = ""
local rows = ""
local row
local row
for key, value in pairs(colors_data) do
for i, key in ipairs(colors_order) do
local hex = value['hex']
local hex = colors_data[key]['hex']
row = ''
row = ''
row = row .. "<td>" .. key .. "</td>"
row = row .. "<td>" .. key .. "</td>"