View source for Module:Sports results/Chess
MyWikiBiz, Author Your Legacy — Saturday May 17, 2025
Jump to navigationJump to searchYou do not have permission to edit this page, for the following reasons:
You can view and copy the source of this page.
-- Module to build results cross-tables for standings in Chess
-- See documentation for details
require('Module:No globals')
local p = {}
-- Other functions
local function get_short_name(s, t, n, ss)
-- return short name if defined
if s and s ~= '' then
return s
end
-- deflag if necessary
if ss and n then
if ss == 'noflag' or ss == 'nocountry' then
n = mw.ustring.gsub(n, '%[%[[Ff][Ii][Ll][Ee]:[^%[%]]*%]%]', '')
n = mw.ustring.gsub(n, '<span class="flagicon">[^<>]*</span>', '')
if ss == 'nocountry' then
n = mw.ustring.gsub(n, '<abbr[^<>]*>[^<>]*</abbr>', '')
n = mw.ustring.gsub(n, ' <span[^<>]*>[^<>]*</span>$', '')
000
1:0
Template used on this page:
Return to Module:Sports results/Chess.