Template:SocialLink: Difference between revisions
Appearance
Created page with "<includeonly><span style="display: inline-flex; align-items: center; gap: 0.3em;">[[{{{icon}}}|20px|frameless|link={{{link}}}|alt={{{service_name}}}]] [{{{link}}} {{{name}}}]</span></includeonly><noinclude> = Example = <pre>{{SocialLink|icon=File:Bluesky.svg|service_name=Bluesky|link=https://bsky.app/profile/dril.bsky.social|name=dril.bsky.social}}</pre> {{SocialLink|icon=File:Bluesky.svg|service_name=Bluesky|link=https://bsky.app/profile/dril.bsky.social|name=dril.bsky...." |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly><span style="display: inline-flex; align-items: center; gap: 0.3em;">[[{{{icon}}}|20px|frameless|link={{{link}}}|alt={{{service_name}}}]] [{{{link}}} {{{name}}}]</span></includeonly><noinclude> | <includeonly><span style="display: inline-flex; align-items: center; gap: 0.3em;">[[{{{icon}}}|20px|frameless|link={{{link}}}|alt={{{service_name}}}|title={{{service_name}}}]] [{{{link}}} {{{name}}}||title={{{name}}} on {{{service_name}}}]</span></includeonly><noinclude> | ||
= Example = | = Example = | ||
<pre>{{SocialLink|icon=File:Bluesky.svg|service_name=Bluesky|link=https://bsky.app/profile/dril.bsky.social|name=dril.bsky.social}}</pre> | <pre>{{SocialLink|icon=File:Bluesky.svg|service_name=Bluesky|link=https://bsky.app/profile/dril.bsky.social|name=dril.bsky.social}}</pre> |
Revision as of 19:37, 26 January 2025
Example
{{SocialLink|icon=File:Bluesky.svg|service_name=Bluesky|link=https://bsky.app/profile/dril.bsky.social|name=dril.bsky.social}}
dril.bsky.social||title=dril.bsky.social on Bluesky
But generally see child templates like Template:Bluesky
Template Data
A nicely formatted link to a social media account. This is mainly intended as a metatemplate for other templates, use ones specific to a service rather than this directly.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Service Icon | icon | The icon file for the service. | File | required |
Service Name | service_name | The name of the service. | String | required |
Link | link | The link to the account on the service. | URL | required |
Account Name | name | The name of the account. | String | required |