Module:SocialMedia: Difference between revisions
No edit summary |
No edit summary |
||
| Line 28: | Line 28: | ||
}, | }, | ||
{ | { | ||
param = " | param = "telegram", | ||
icon = "File: | icon = "File:SocialTelegramIcon.png", | ||
prefix = "", | prefix = "https://t.me/", | ||
label = " | label = "Telegram" | ||
}, | }, | ||
{ | { | ||
| Line 93: | Line 93: | ||
local handle = getUserHandle(args, platform.param) | local handle = getUserHandle(args, platform.param) | ||
if handle and handle ~= "" then | if handle and handle ~= "" then | ||
local | local url = platform.prefix .. handle | ||
-- Build an icon link, passing label as alt text | -- Build an icon link, passing label as alt text | ||
local iconLink = buildIconLink(platform.icon, platform.label, url) | local iconLink = buildIconLink(platform.icon, platform.label, url) | ||