Jump to content

Template:SocialLink: Difference between revisions

From Joepedia
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<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>
<includeonly><span style="display: inline-flex; align-items: center; gap: 0.3em;" title="{{{name}}} on {{{service_name}}}">[[{{{icon}}}|20px|frameless|link={{{link}}}|alt={{{service_name}}}]] [{{{link}}} {{{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>
{{SocialLink|icon=File:Bluesky.svg|service_name=Bluesky|link=https://bsky.app/profile/dril.bsky.social|name=dril.bsky.social}}
{{SocialLink|icon=File:Bluesky.svg|service_name=Bluesky|link=https://bsky.app/profile/dril.bsky.social|name=dril.bsky.social}}


But generally see child templates like [[:Template:Bluesky]]
But generally see child templates like [[:Template:Bluesky]], see [https://wiki.jads.stream/wiki/Special:WhatLinksHere?target=Template%3ASocialLink&namespace=10&hidelinks=1&hideredirs=1&limit=50|All the templates based on this one]


= Template Data =
= Template Data =

Latest revision as of 21:22, 26 January 2025

Example

{{SocialLink|icon=File:Bluesky.svg|service_name=Bluesky|link=https://bsky.app/profile/dril.bsky.social|name=dril.bsky.social}}

Bluesky dril.bsky.social

But generally see child templates like Template:Bluesky, see the templates based on this one

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.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Service Iconicon

The icon file for the service.

Filerequired
Service Nameservice_name

The name of the service.

Stringrequired
Linklink

The link to the account on the service.

URLrequired
Account Namename

The name of the account.

Stringrequired