Module:ItemData/nav: Difference between revisions

added override for Bullet Lifesteal and Spirit Lifesteal in ItemBox
changed displayed cost for Legendary items in ItemBox list (needs to be changed for Active table as well)
Line 77: Line 77:
                     if lang_code == "en" then
                     if lang_code == "en" then
                         -- For English pages, do not include item_loc or link
                         -- For English pages, do not include item_loc or link
                         item_template = "{{ItemBox|item_name=" .. item_name_english .. "|link=" .. item_link .. "}}"
                         -- Display cost as "Legendary" for street brawl items
                        if is_street_brawl == true then
                            item_template = "{{ItemBox|item_name=" .. item_name_english .. "|link=" .. item_link .. "|item_price=Legendary" .. "}}"
                        else
                            item_template = "{{ItemBox|item_name=" .. item_name_english .. "|link=" .. item_link .. "}}"
                        end
                     else
                     else
                         -- For non-English pages, include item_loc and link
                         -- For non-English pages, include item_loc and link
                         local link_local = item_link .. "/" .. lang_code -- Add subpage for non-English languages
                         local link_local = item_link .. "/" .. lang_code -- Add subpage for non-English languages
                         item_template = "{{ItemBox|item_name=" .. item_name_english .. "|item_loc=" .. item_name_local .. "|link=" .. link_local .. "}}"
                         if is_street_brawl == true then
                            item_template = "{{ItemBox|item_name=" .. item_name_english .. "|item_loc=" .. item_name_local .. "|link=" .. link_local ..
                            "|item_price={{#invoke:Lang|get_string|Citadel_ItemDraft_Legendary}}" .. "}}"
                        else
                        item_template = "{{ItemBox|item_name=" .. item_name_english .. "|item_loc=" .. item_name_local .. "|link=" .. link_local .. "}}"
                        end
                     end
                     end
                 else
                 else