ماڊيول:Sports table/sub: جي ورجائن ۾ تفاوت

ڊاٿل مواد شامل ڪيل مواد
نئون صفحو: -- Subfunctions for this module that are called from the style modules local ppp = {} function ppp.colhead(ttt,width,text) -- For individual column headers local head_string...
ٽيگَ: موبائل سنوار موبائل ويب سنوار
 
سنوار جو تَتُ ڪونهي
 
سِٽَ 49:
hth_id_list[team_code_ii] = hth_id
-- Call refn template
hth_string = hth_string .. frame:expandTemplate{ title = 'efn', args = { group='Table_noteslower-alpha', name=hth_id, hth_loc} }
else
-- Option 2
سِٽَ 62:
hth_id_list[hth_loc] = hth_id
-- Call refn template
hth_string = hth_string .. frame:expandTemplate{ title = 'efn', args = { group='Table_noteslower-alpha', name=hth_id, Args['hth_'..hth_loc]} }
end
end
سِٽَ 69:
return {str=hth_string, list=hth_id_list, notes_exist=notes_exist}
end
 
function ppp.status(Args, status_code)
-- Declare status options
-- ------------------------------------------------------------
-- NOTE: If you add to status_code, also add to status_called and status_letters!!
-- Or functionality will be compromised
-- ------------------------------------------------------------
local status_called = {}
local status_letters = (Args['status_order'] or '') .. 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
if type(status_code) ~= 'table' then status_code = {} end
if #status_code < 1 then
status_code = { A='Advance to a further round', C='Champion', D='Disqualified',
E='Eliminated', G='Guest', H='Host', O='Play-off winner', P='Promoted', Q='Qualified to the phase indicated',
R='Relegated', T='Qualified, but not yet to the particular phase indicated'}
end
-- Status position (before or after read and default)
local stat_pos_val = string.lower(Args['status_pos'] or '')
local status_position = 'after' -- Default location
if stat_pos_val=='before' then
status_position = 'before'
elseif stat_pos_val=='after' then
status_position = 'after'
end
-- Read in custom status options
for l in mw.text.gsplit(status_letters, '') do
status_called[l] = false
status_code[l] = status_code[l] or '?'
status_letters = mw.ustring.gsub(status_letters, '(' .. l ..'.-)' .. l, '%1')
 
if Args['status_text_' .. l] then
status_code[l] = Args['status_text_' .. l]
end
end
return {code=status_code, called=status_called, letters=status_letters, position=status_position}
end