Module:SiteList: Difference between revisions

Jump to navigation Jump to search
303 bytes added ,  21 July 2023
no edit summary
(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...")
 
No edit summary
Tag: Reverted
else
typeText = siteType
end
 
-- Проверяем пространство имен и добавляем категорию
local title = mw.title.getCurrentTitle()
local category = ''
if title.namespace == 0 then
category = '[[Category:Website' .. siteInfo.id .. ' models]]'
end
 
| 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

Navigation menu