View source for Module:Sports results/blank
MyWikiBiz, Author Your Legacy — Friday July 11, 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.
-- This module generates a blank invocation of the sports results module
-- using the values of team1, team2, ...
local p = {}
local function isnotempty(s)
return s and s:match( '^%s*(.-)%s*$' ) ~= ''
end
function p.main(frame)
local args = (frame.args['team1'] ~= nil) and frame.args or frame:getParent().args
local processed = {}
-- Count the number of teams
local numteams = 0
while isnotempty(args['team' .. (numteams + 1)]) do
numteams = numteams + 1
end
local res = '{{#invoke:sports results|main\n'
if args['template_name'] then
000
1:0
Template used on this page:
Return to Module:Sports results/blank.