}
function p.site(frameargs)
local args = require('Module:Arguments').getArgs(frame, {wrappers = 'Template:SiteList'})
local site = getSite(args.site)
end
local result = string.format(''
'|-\n| style="%s" | %s\n| style="text-align:center;vertical-align:middle;" | %s%s\n| style="text-align:center;vertical-align:middle;" | %s\n| style="text-align:center;vertical-align:middle;" | %s\n| style="width: 0px; padding: 0px; border: none;" |\n',
style,
siteType and siteType:gsub("^%l", string.upper) or 'Website',
linkOrLabel,
categoryLink,
alias,
notes
local ns = mw.title.getCurrentTitle().namespace
if ns == 0 then
end
return {
style = style,
siteType = siteType and siteType:gsub("^%l", string.upper) or 'Website',
linkOrLabel = linkOrLabel,
categoryLink = categoryLink,
alias = alias,
notes = notes,
additionalInfo = result
additionalInfo = result -- ваш код для добавления информации категории
}
else
return string.format('|-\n| colspan="4" style="text-align:center;vertical-align:middle;color:red;font-weight:bold;" | Error: invalid site parameter: %s. See [[PBC:SiteList|PBC:SiteList for documentation]] \n| style="width: 0px; padding: 0px; border: none;" |\n', args.site)
end
end
for i, site in ipairs(args.list) do
local siteData = p.site({argssite = {site, id = site}args.id, sceneid = args.sceneid, alias = args.alias, notes = args.notes})
if siteData then
table.insert(sites, siteData)
|