Module:PHL sports team/testtable: Difference between revisions

Content deleted Content added
mNo edit summary
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 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 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 161:
table.sort(temp)
table.insert(temp, '{{{team1}}}')
-- table.insert(temp, 'XYZ')
 
for k, team in pairs(temp) do
Line 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 201:
table.sort(temp)
table.insert(temp, '{{{team1}}}')
-- table.insert(temp, 'XYZ')
 
row:tag('th'):wikitext('Code or <br>Alias/es')
row:tag('th'):wikitext('Usage')
row:tag('th'):wikitext('Output')