Module:SiteList: Difference between revisions
Content deleted Content added
PeaceDeadC (talk | contribs) Created page with "local p = {} function p.list(frame) local args = frame:getParent().args local siteType = args[1] or '' local site = args['site'] or '' local id = args['id'] or '' local sceneid = args['sceneid'] or '' local alias = args['alias'] or '' local notes = args['notes'] or 'N/A' -- Создаем словарь соответствий для сайтов local siteData = mw.loadData('Module:SiteDictionary') local siteInfo = siteData[si..." |
PeaceDeadC (talk | contribs) No edit summary Tag: Reverted |
||
Line 35:
else
typeText = siteType
end
-- Проверяем пространство имен и добавляем категорию
local title = mw.title.getCurrentTitle()
local category = ''
if title.namespace == 0 then
category = '[[Category:Website' .. siteInfo.id .. ' models]]'
end
Line 44 ⟶ 51:
| style="text-align:center;vertical-align:middle;" | %s
| style="text-align:center;vertical-align:middle;" | <small>%s</small>
%s
]], backgroundColor, typeText, websiteText, alias ~= '' and alias or mw.title.getCurrentTitle().text, notes, category)
return result
| |||