Module:SocialMedia: Difference between revisions
// via Wikitext Extension for VSCode |
// via Wikitext Extension for VSCode |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 150: | Line 150: | ||
local function buildIconLink(iconFile, altText, url) | local function buildIconLink(iconFile, altText, url) | ||
-- Add the reusable filter class to the image attributes | -- Add the reusable filter class to the image attributes | ||
return string.format("[[%s|24px | return string.format("[[%s|24px|alt=%s|link=%s|class=filter-icon-green]]", iconFile, altText, url) | ||
end | end | ||
| Line 156: | Line 156: | ||
local function buildSocialRow(icons) | local function buildSocialRow(icons) | ||
local iconMarkup = table.concat({ | local iconMarkup = table.concat({ | ||
'<div class="social-icons external | '<div class="social-icons link-open-external">', | ||
table.concat(icons, ""), | table.concat(icons, ""), | ||
'</div>' | '</div>' | ||