View source for Module:National squad
You do not have permission to edit this page, for the following reasons:
You can view and copy the source of this page.
-- This module implements [[Template:National squad]] and
-- [[Template:National squad no numbers]] to avoid articles being added to
-- [[:Category:Pages where template include size is exceeded]]
-- when the template is used many times.
local p = {}
function p.main(frame)
local nonumbers = frame.args['nonumbers']
local args = frame:getParent().args
local country = args.country or '{{{country}}}'
local coach_label = args.coach_type or 'Coach'
local comp = args.comp or '{{{comp}}}'
local name = args.name or ''
local sport = args.sport or 'football'
local gender = (args.gender or '') == 'female' and ' women\'s' or ''
local titlestyle = 'background-color:' .. (args.bg or 'transparent') .. ';'
.. 'color:' .. (args.fg or 'inherit') .. ';'
.. 'border: 1px solid ' .. (args.bordercolor or '#aaa') .. ';'
local image = frame:expandTemplate{
title = 'flagicon',
args = {args.country or 'none', args.flagvar or '', size = '50px'}
}
000
1:0
Template used on this page:
Return to Module:National squad.