Widget:MastodonLink: Difference between revisions

From Nottinghack Wiki
Jump to navigation Jump to search
Add icon option (I'm not expecting this to work)
mNo edit summary
Line 2: Line 2:
Image:Mastodon.svg
Image:Mastodon.svg
<a href="https://<!--{$site|escape:'html'}-->/@<!--{$user|escape:'html'}-->" rel="me">
<a href="https://<!--{$site|escape:'html'}-->/@<!--{$user|escape:'html'}-->" rel="me">
<!-- {if $icon} -->
<!-- {if $icon eq true} -->
[[Image:Mastodon.svg|width=25px]]
[[Image:Mastodon.svg|width=25px]]
<!-- {else} -->
<!-- {else} -->

Revision as of 00:04, 12 March 2025

This widget basically just generates a hyperlink with the rel="me" attribute/value.

Example

{{#widget:MastodonLink|site=hachyderm.io|user=nottinghack}}

@nottinghack@hachyderm.io

@nottinghack@hachyderm.io

Parameters

site
The mastodon site domain
username
The mastodon username
icon
Show mastodon icon instead of text link (set or do not set)