Module:HeroData: Difference between revisions

Jump to navigation Jump to search
Sur (talk | contribs)
m centering style for left column
Sur (talk | contribs)
m role playstyle name wep name wep desc
Line 105: Line 105:
     local template_args = {}
     local template_args = {}
     local stat_values = {Weapon = "", Vitality = ""}
     local stat_values = {Weapon = "", Vitality = ""}
   
    -- Add the main parameters
    template_args["name"] = lang_module.search_string(hero_name)
   
    local wep_name = lang_module.get_string(hero_data["WeaponName"])
    if (wep_name ~= nil) then template_args["weapon_name"] = wep_name end
   
    local wep_desc = lang_module.get_string(hero_data["WeaponDescription"])
    if (wep_desc ~= nil) then template_args["weapon_description"] = wep_desc end
   
    local role = lang_module.get_string(hero_data["Role"])
    if (role ~= nil) then template_args["role"] = role end
   
    local playstyle = lang_module.get_string(hero_data["Playstyle"])
    if (playstyle ~= nil) then template_args["playstyle"] = playstyle end
      
      
     -- Iterate attribute categories
     -- Iterate attribute categories