Module:ItemData/nav: Difference between revisionsGive feedback
m ItemBox sets the localized name itself |
Gammaton32 (talk | contribs) made navbox icons bigger |
||
| Line 69: | Line 69: | ||
if lang_code == "en" then | if lang_code == "en" then | ||
-- For English pages, do not include lang or localized name | -- For English pages, do not include lang or localized name | ||
item_template = "{{ItemIcon|" .. item_name_english .. "}}" | item_template = "{{ItemIcon|" .. item_name_english .. "|size=26px}}" | ||
else | else | ||
-- For non-English pages, include lang and localized name | -- For non-English pages, include lang and localized name | ||
item_template = "{{ItemIcon|" .. item_name_english .. "|lang=" .. lang_code .. "|l1=" .. item_name_local .. "}}" | item_template = "{{ItemIcon|" .. item_name_english .. "|lang=" .. lang_code .. "|l1=" .. item_name_local .. "|size=26px}}" | ||
end | end | ||
elseif template == "ItemBox" then | elseif template == "ItemBox" then | ||