Editing Module:Infobox Skill
From Eco - English Wiki
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 84: | Line 84: | ||
-- Skill or Talent Image | -- Skill or Talent Image | ||
local image = '' | local image = '' | ||
Line 97: | Line 96: | ||
for i,v in ipairs(checkImage) do | for i,v in ipairs(checkImage) do | ||
image = | image = skillId .. '.png' | ||
if mw.title.makeTitle('File', image).file.exists then | if mw.title.makeTitle('File', image).file.exists then | ||
break | break | ||
Line 104: | Line 103: | ||
image = 'NoImage.png' | image = 'NoImage.png' | ||
if check == 'skill' then | if check == 'skill' then | ||
image = image .. '|link=https://wiki.play.eco/index.php?title=Special:Upload&wpDestFile=' .. | image = image .. '|link=https://wiki.play.eco/index.php?title=Special:Upload&wpDestFile=' .. skillId .. '.png|[[Category:Pages_with_missing_skill_Icon]]' | ||
end | end | ||
if check == 'talent' then | if check == 'talent' then | ||
image = image .. '|link=https://wiki.play.eco/index.php?title=Special:Upload&wpDestFile=' .. | image = image .. '|link=https://wiki.play.eco/index.php?title=Special:Upload&wpDestFile=' .. skillId .. '.png|[[Category:Pages_with_missing_talent_Icon]]' | ||
end | end | ||
end | end | ||
Line 175: | Line 174: | ||
local talent6 = skillTable.talents.level6 | local talent6 = skillTable.talents.level6 | ||
-- for each item in the listTalents3 (b is position, c is value) | -- for each item in the listTalents3 (b is position, c is value) | ||
for b,c in ipairs(talent3) do | for b,c in ipairs(talent3) do | ||
--if not these tags listed here | --if not these tags listed here | ||
Line 189: | Line 187: | ||
end | end | ||
end | end | ||
-- for each item in the listTalents6 (e is position, d is value) | -- for each item in the listTalents6 (e is position, d is value) | ||
for e,d in ipairs(talent6) do | for e,d in ipairs(talent6) do | ||
--if not these tags listed here | --if not these tags listed here | ||
Line 204: | Line 200: | ||
end | end | ||
end | end | ||
-- 'Talent Information' section header | -- 'Talent Information' section header | ||
infobox = infobox .. '|- style=\"background-color: #4688C0; text-align: center;\"\n| colspan=\"2\" | \'\'\'Talent Information\'\'\'\n' | infobox = infobox .. '|- style=\"background-color: #4688C0; text-align: center;\"\n| colspan=\"2\" | \'\'\'Talent Information\'\'\'\n' | ||
Line 216: | Line 211: | ||
-- skill id (type) | -- skill id (type) | ||
infobox = infobox .. '|- valign=\"center\"\n| Item ID:\n| style=\"text-align: right; padding: 3px;\" | ' .. skillTable.skillID .. '\n' | infobox = infobox .. '|- valign=\"center\"\n| Item ID:\n| style=\"text-align: right; padding: 3px;\" | ' .. skillTable.skillID .. '\n' | ||
-- id number (type id) | |||
infobox = infobox .. '|- valign=\"center\"\n| ID Number:\n| style=\"text-align: right; padding: 3px;\" | ' .. skillTable.skillIDNum .. '\n' | |||
end | end | ||