Module:SiteList: Difference between revisions

Jump to navigation Jump to search
134 bytes removed ,  22 July 2023
no edit summary
No edit summary
Tag: Reverted
No edit summary
Tag: Manual revert
local style
if args[1] == 'Studio' then
style = 'background-color:#DADADA;text-align:center;color:black;background-image:linear-gradient(to top, #F2F2F2, #EFEFEF);'
else
style = 'background-color:#E7E7E7;text-align:center;color:black;background-image:linear-gradient(to top, #F2F2F2, #EFEFEF);'
end
 
local result = string.format(
'|-\n! colspan="4"| style="%s" | %s\n|- \n| style="text-align:center;vertical-align:middletop;" colspan="1" | %s\n| style="text-align:center;vertical-align:middletop;" colspan="1" | %s\n| style="text-align:center;vertical-align:middletop;" colspan="1" | %s\n',
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
)
)
 
local ns = mw.title.getCurrentTitle().namespace

Navigation menu