View source for Module:Sports table/Custom

MyWikiBiz, Author Your Legacy — Wednesday June 04, 2025
Jump to navigationJump to search

You do not have permission to edit this page, for the following reasons:

  • The action you have requested is limited to users in one of the groups: Users, vuser.
  • You must confirm your email address before editing pages. Please set and validate your email address through your user preferences.

You can view and copy the source of this page.

-- Style for sports tables with custom columns
local pp = {}
function pp.get_col_styles(Args)
-- Load relevant modules
local yesno = require('Module:Yesno')
local col_style = {}
local num_cols = 1
-- Default styles
local default_style = Args['default_style'] or ''
if default_style:match('^([Ww][Dd]?[Ll])') then
-- Backwards compatibility with WDL
if not yesno(Args['hide_played'] or 'no') then
col_style[num_cols] = 'pld'
num_cols = num_cols +1
end
if yesno(Args['show_win'] or 'yes') then
col_style[num_cols] = 'w'
num_cols = num_cols +1
end
 
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
000
1:0
Debug console
* The module exports are available as the variable "p", including unsaved modifications. * Precede a line with "=" to evaluate it as an expression or use print(). Use mw.logObject() for tables. * Use mw.log() and mw.logObject() in module code to send messages to this console.

Return to Module:Sports table/Custom.