Module:SocialMedia: Difference between revisions
Created page with "-- Reusable, single-row or multi-row social media footer that can be called from any other module or template. local sf = {} -- 1) Define the social platforms -- param = the name of the parameter -- icon = wiki file for the icon -- prefix = URL prefix -- label = optional for referencing or debugging local socialPlatforms = { { param = "twitter", icon = "File:TwitterIcon.png", -- or "File:XIcon.png" prefix = "https://x..." |
mNo edit summary |
||
| Line 9: | Line 9: | ||
-- label = optional for referencing or debugging | -- label = optional for referencing or debugging | ||
local socialPlatforms = { | local socialPlatforms = { | ||
{ | { | ||
param = "facebook", | param = "facebook", | ||
| Line 26: | Line 20: | ||
prefix = "https://www.instagram.com/", | prefix = "https://www.instagram.com/", | ||
label = "Instagram" | label = "Instagram" | ||
}, | }, | ||
{ | { | ||
| Line 38: | Line 26: | ||
prefix = "https://www.linkedin.com/", | prefix = "https://www.linkedin.com/", | ||
label = "LinkedIn" | label = "LinkedIn" | ||
}, | }, | ||
{ | { | ||
| Line 50: | Line 32: | ||
prefix = "", | prefix = "", | ||
label = "Mastodon" | label = "Mastodon" | ||
}, | |||
{ | |||
param = "threads", | |||
icon = "File:ThreadsIcon.png", | |||
prefix = "https://www.threads.net/", | |||
label = "Threads" | |||
}, | }, | ||
{ | { | ||
| Line 56: | Line 44: | ||
prefix = "https://www.tiktok.com/", | prefix = "https://www.tiktok.com/", | ||
label = "TikTok" | label = "TikTok" | ||
}, | |||
{ | |||
param = "twitter", | |||
icon = "File:TwitterIcon.png", -- or "File:XIcon.png" | |||
prefix = "https://x.com/", | |||
label = "X (Twitter)" | |||
}, | |||
{ | |||
param = "youtube", | |||
icon = "File:YouTubeIcon.png", | |||
prefix = "https://www.youtube.com/", | |||
label = "YouTube" | |||
}, | }, | ||
} | } | ||