Content deleted Content added
mNo edit summary |
MarcusAbacus (talk | contribs) No edit summary |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 15:
if d then
table.sort(d, function (a, b) return a < b end)
local param = showdiv and 'inst' or '
local yr = {}
for k, inst in pairs(d) do
if type(k) == 'string' and
ia = ia .. string.format('<br>• %s (%s)', inst, k)
if tname then
tname, t, param, showdiv and k or k:sub(1, 4), k:gsub("thru", "–")))
end
end
end
Line 125 ⟶ 129:
root:css('line-height', '100%')
row:tag('th'):attr('rowspan',2):wikitext('Team')
row:tag('th'):attr('rowspan',2):wikitext('Code or<br>Alias/es')
row:tag('th'):attr('rowspan',2):wikitext('School')
row:tag('th'):wikitext('Left-sided icon')
Line 136 ⟶ 140:
else
row:tag('th'):wikitext('Team')
row:tag('th'):wikitext('Code or<br>Alias/es')
row:tag('th'):wikitext('Usage')
row:tag('th'):wikitext('Output')
Line 157 ⟶ 161:
table.sort(temp)
table.insert(temp, '{{{team1}}}')
for k, team in pairs(temp) do
Line 174 ⟶ 178:
local root = mw.html.create('table')
local args = (frame.args[1] ~= nil) and frame.args or frame:getParent().args
local tname = args['tname'] or 'PBA team' or 'MPBL team'
local league = args['league'] or 'PBA' or 'MPBL'
local temp, alias = {}, {}
Line 184 ⟶ 188:
local row = root:tag('tr')
local data_module = string.format('Module:%s/%s', mod,
local data = mw.loadData(data_module)
Line 197 ⟶ 201:
table.sort(temp)
table.insert(temp, '{{{team1}}}')
row:tag('th'):wikitext('Code or<br>Alias/es')
row:tag('th'):wikitext('Output')▼
row:tag('th'):wikitext('Usage')
▲ row:tag('th'):wikitext('Output')
for k, team in pairs(temp) do
|