Module:HeroData/nav: Difference between revisionsGive feedback
m Hero card2 now uses link param for localization |
m now uses Module:HeroData/release |
||
| Line 1: | Line 1: | ||
local p = {} | local p = {} | ||
local heroes_data = mw.loadJsonData("Data:HeroData.json") | local heroes_data = mw.loadJsonData("Data:HeroData.json") | ||
local hero_release_module = require('Module:HeroData/release') | |||
local lang_module = require('Module:Lang') | local lang_module = require('Module:Lang') | ||
| Line 31: | Line 32: | ||
-- if herolabs is requested, only needs to have herolabs=true | -- if herolabs is requested, only needs to have herolabs=true | ||
-- otherwise, needs to be not disabled, in development, nd herolabs is nil or false | -- otherwise, needs to be not disabled, in development, nd herolabs is nil or false | ||
local this_hero_status = hero_release_module.get_hero_release_status(hero_key) | |||
if this_in_herolabs == nil then this_in_herolabs = false end | if this_in_herolabs == nil then this_in_herolabs = false end | ||
if ((in_herolabs == 'true' and | if ((in_herolabs == 'true' and this_hero_status == 'HeroLabs') or | ||
(in_herolabs == 'false' and | (in_herolabs == 'false' and this_hero_status == 'Released')) then | ||
local is_recommended = hero_data['IsRecommended'] | local is_recommended = hero_data['IsRecommended'] | ||