ХӀокху модулах лаьцна хааман Модуль:Sports kit/field hockey/doc агӀо кхолла мега

local fieldhockey = require('Module:Sports kit/default')

fieldhockey.elements.leftarm.prefix = 'Kit short left arm'
fieldhockey.elements.leftarm.main_file = 'Kit short left arm.png'
fieldhockey.elements.rightarm.prefix = 'Kit short right arm'
fieldhockey.elements.rightarm.main_file = 'Kit short right arm.png'
fieldhockey.elements.skirt = {
	genitive = 'юбки',
	left = 0, top = 59, width = 100, height = 36,
	color_params = {'skirt'},
	pattern_params = {'pattern_sk'},
	prefix = 'Kit skirt',
	main_file = 'Kit skirt.png'
}
fieldhockey.elements.socks = {
	genitive = 'гетр',
	left = 0, top = 95, width = 100, height = 25,
	color_params = {'socks', 'гетры'},
	pattern_params = {'pattern_so', 'узор_гетры'},
	prefix = 'Kit socks'
}

function either_skirt_or_shorts(args)
	if get_param(args, fieldhockey.elements.shorts.color_params) then
		args[fieldhockey.elements.skirt.color_params[1]] = 'нет'
	else
		if get_param(args, fieldhockey.elements.skirt.color_params) then
			args[fieldhockey.elements.shorts.color_params[1]] = 'нет'
		end
	end
end
fieldhockey.preformat = either_skirt_or_shorts

fieldhockey.error_category = 'Неправильный формат формы для хоккея на траве'

return fieldhockey