Module:SiteList: Difference between revisions

Jump to navigation Jump to search
147 bytes added ,  22 July 2023
no edit summary
No edit summary
No edit summary
website1 = {
label = 'Website 1',
type = 'website',
aliases = {'website1', 'website1.com', 'website1com'},
url = 'https://website1.com/',
website2 = {
label = 'Website 2',
type = 'website',
aliases = {'website2', 'website2.com', 'website2com'},
url = 'https://website2.com/',
website3 = {
label = 'Website 3',
type = 'studio',
aliases = {'website3', 'website3.com', 'website3com'},
url = 'https://website3.com/',
 
local style
iflocal args[1]siteType == 'Studio'site.type thenor args[1]
if siteType:lower() == 'studio' then
style = 'background-color:#DADADA;text-align:center;color:black'
else
'|-\n| style="%s" | %s\n| style="text-align:center;vertical-align:middle;" | %s%s\n| style="text-align:center;vertical-align:middle;" | %s\n| style="text-align:center;vertical-align:middle;" | %s\n| style="width: 0px; padding: 0px; border: none;" |\n',
style,
args[1]siteType ==and 'Studio' andsiteType:gsub("^%l", 'Studio'string.upper) or 'Website',
linkOrLabel,
categoryLink,

Navigation menu