2,875
edits
No edit summary |
No edit summary |
||
Line 21: | Line 21: | ||
local skillID = 'Summoning' | local skillID = 'Summoning' | ||
local | local html = mw.html.create('table') | ||
:addClass('wikitable sortable stickyHeader') | |||
html:tag('tr'):addClass('headerRow-0') | |||
:tag('th'):wikitext('Mark') | |||
:attr('colspan', 2) | |||
:tag('th'):wikitext('Tier') | |||
:tag('th'):wikitext(Icons._SkillRealmIcon(skillID, realm.id) .. '<br>Level') | |||
:tag('th'):wikitext('DLC') | |||
:tag('th'):wikitext('Discovered in') | |||
local Familiars = GameData.getEntities(SkillData.Summoning.recipes, | local Familiars = GameData.getEntities(SkillData.Summoning.recipes, | ||
Line 40: | Line 45: | ||
local item = Items.getItemByID(Fam.productID) | local item = Items.getItemByID(Fam.productID) | ||
if item ~= nil then | if item ~= nil then | ||
local | local row = html:tag('tr') | ||
row:tag('td'):wikitext(Icons.Icon({item.name, type='mark', notext=true})) | |||
:attr('data-sort-value', item.name) | |||
row:tag('td'):wikitext(Icons.Icon({item.name, 'Mark of the ' .. item.name, type='mark', noicon=true})) | |||
row:tag('td'):wikitext(Fam.tier) | |||
:css('text-align', 'center') | |||
row:tag('td'):wikitext(level) | |||
:css('text-align', 'center') | |||
row:tag('td'):wikitext(Icons.getDLCColumnIcon(Fam.id)) | |||
:css('text-align', 'center') | |||
:attr('data-sort-value', Icons.getExpansionID(Fam.id)) | |||
local discoveredArray = {} | local discoveredArray = {} | ||
for j, SkillID in ipairs(Fam.skillIDs) do | for j, SkillID in ipairs(Fam.skillIDs) do | ||
table.insert(discoveredArray, Icons.Icon({Constants.getSkillName(SkillID), type='skill'})) | table.insert(discoveredArray, Icons.Icon({Constants.getSkillName(SkillID), type='skill'})) | ||
end | end | ||
row:tag('td'):wikitext(table.concat(discoveredArray, '<br/>')) | |||
end | end | ||
end | end | ||
return tostring(html) | |||
end | end | ||
edits