Modul:Medals table/peskovnik: Razlika med redakcijama

Izbrisana vsebina Dodana vsebina
Nova stran z vsebino: require('Modul:No globals') local getArgs = require('Modul:Arguments').getArgs local p = {} local function deflag(s) s = mw.ustring.gsub(s or '', '%[%[[Ff][Ii][Ll][Ee]:[^%[%]]*%]%]', '') s = mw.ustring.gsub(s, '%[%[[Ii][Mm][Aa][Gg][Ee]:[^%[%]]*%]%]', '') s = mw.ustring.gsub(s, '<[^<>]*>', '') s = mw.ustring.gsub(s, '%s*%([A-Z][A-Z][A-Z]%)%s*$', '') while s:match('^%s*&[Nn][Bb][Ss][Pp];%s*') do s = mw.ustring.gsub(s, '^%s*&[Nn][Bb][Ss][Pp];%s*', '') end s = m...
 
mBrez povzetka urejanja
Vrstica 23:
end
 
local team = args['team'] or 'NationDržav'
local root = mw.html.create()
local host = args['host'] or ''
Vrstica 48:
if args['name_' .. host] then
host = args['name_' .. host]
host = 'HostDržava nationgostiteljica (' .. deflag(host) .. ')'
elseif host:match('^([A-Z][A-Z][A-Z])') then
host = frame:expandTemplate{title = flagTemplate, args = {host, event} }
host = 'HostDržava nationgostiteljica (' .. deflag(host) .. ')'
end
host = host .. (args['host_note'] or '')
Vrstica 271:
:addClass('sortbottom')
:tag('th')
:wikitext('TotalsSkupaj ('..remainingEnd..' '..team..'s?)')
:attr('scope', 'row')
:css('background-color', '#eaebef')