Module:SiteList: Difference between revisions

37 bytes removed ,  22 July 2023
Undo revision 2500 by PeaceDeadC (talk)
No edit summary
Tag: Reverted
(Undo revision 2500 by PeaceDeadC (talk))
Tag: Undo
 
local alias = args.alias or mw.title.getCurrentTitle().text
local notes = args.notes and '<small>' .. args.notes .. '</small>' or 'N/A'
 
local style
end
 
local result = string.format(
'|-\n! colspan="4"| style="text-align:center;vertical-align:middle; background-image:linear-gradient(to top, #F2F2F2, #EFEFEF);%s" | %s\n| style="text-align:center;vertical-align:middletop;" | %s\n| style="text-align:center;vertical-align:middletop;" | %s\n| style="text-align:center;vertical-align:middletop;" | %s\n',
args[1] == 'Studio' and 'Studio' or 'Website'style,
args[1] == 'Studio' and 'Studio' or 'Website',
string.format('[%s %s] <small>([[:Category:%s|%s]])</small>', url, site.label, site.category, site.category),
alias,
notes alias,
) notes
alias,)
 
local ns = mw.title.getCurrentTitle().namespace