Module:SiteList: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Tag: Reverted
 
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="%stext-align:center;vertical-align:middle; background-image:linear-gradient(to top, #F2F2F2, #EFEFEF);" | %s\n| style="text-align:center;vertical-align:topmiddle;" | %s\n| style="text-align:center;vertical-align:topmiddle;" | %s\n| style="text-align:center;vertical-align:topmiddle;" | %s\n',
args[1] == 'Studio' and style'Studio' or 'Website',
string.format('[%s %s] <small>([[:Category:%s|%s]])</small>', url, site.label, site.category, site.category),
args[1] == 'Studio' and 'Studio' or 'Website',
)alias,
string.format('[%s %s] <small>([[:Category:%s|%s]])</small>', url, site.label, site.category, site.category),
alias,notes
notes)
)
 
local ns = mw.title.getCurrentTitle().namespace

Navigation menu