Module:Country alias and Module:Country alias/sandbox: Difference between pages

(Difference between pages)
Jump to navigation Jump to search
Page 1
Page 2
m (1 revision imported)
 
m (1 revision imported)
 
Line 186: Line 186:


local function flagXYZ(frame)
local function flagXYZ(frame)
-- Implement {{flagIOC2}} and its variants which previously called this module three times.
-- Implement {{flagIOC2}} which previously called this module three times.
-- Returns one of four possible outputs:
-- Returns <flag> <country link> <athletes>, with the third value optional
-- from flagIOC2: <flag> <country link> <athletes>, with the third value optional
-- from flagIOC2team: <flag> <country link> <country alias>
-- from flagIOC2athlete: <flag> <athlete(s)> <country alias/link>
-- from flagIOC2medalist: <athlete(s)><br><flag> <country link>
local args = frame:getParent().args
local args = frame:getParent().args
local dispType = stripToNil(frame.args['type'])
local dispType = stripToNil(frame.args['type'])