Modul:Ice hockey box: Unterschied zwischen den Versionen

Die Seite wurde neu angelegt: „-- implements template:IceHockeybox local p = {} local errorcats = '' local function isnotempty(s) return s and s:match( '^%s*(.-)%s*$' ) ~= '' end local function makelink(s,t) if s:match('^[Hh][Tt][Tt][Pp][Ss]?:[^ ]*$') then return '[' .. s .. ' ' .. t .. ']' end return s end local function mysplit(s) -- Change <br> tags to slashes s = mw.ustring.gsub(s or '', '<[\/%s]*[Bb][Rr][^<>]*>', ' / ') s = mw.ustring.gsub(s or '', '[%s]* /[%s]*',…“
 
KKeine Bearbeitungszusammenfassung
 
(Eine dazwischenliegende Version desselben Benutzers wird nicht angezeigt)
Zeile 203: Zeile 203:
:css('font-size', '85%')
:css('font-size', '85%')
if isnotempty(args['reference']) then
if isnotempty(args['reference']) then
cell:wikitext(makelink(args['reference'], 'Game reference'))
cell:wikitext(makelink(args['reference'], 'Spielbericht'))
end
end
-- Empty spacing
-- Empty spacing
Zeile 382: Zeile 382:
:css('font-size', '85%')
:css('font-size', '85%')
:css('padding-right', '4em')
:css('padding-right', '4em')
cell:wikitext(makelink(args['reference'], 'Game reference'))
cell:wikitext(makelink(args['reference'], 'Spielbericht'))
res = res .. tostring(root)
res = res .. tostring(root)
end
end