Widget:MastodonLink: Difference between revisions
Jump to navigation
Jump to search
Created page with "<includeonly> <!--{$category|escape:'html'}--> <a href="https://<!--{$site|escape:'html'}-->/@<!--{$user|escape:'html'}-->" rel="me">@<!--{$user|escape:'html'}-->@<!--{$site|escape:'html'}--></a> </includeonly><noinclude> This widget basically just generates a hyperlink with the <code>rel="me"</code> attribute/value. ==Example== <nowiki>{{#widget:MastodonLink|site=hachyderm.io|user=nottinghack}}</nowiki> {{#widget:MastodonLink|site=hachyderm.io|user=nottinghack}} ==P..." |
Add icon option (I'm not expecting this to work) |
||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
Image:Mastodon.svg | |||
<a href="https://<!--{$site|escape:'html'}-->/@<!--{$user|escape:'html'}-->" rel="me">@<!--{$user|escape:'html'}-->@<!--{$site|escape:'html'}--></a> | <a href="https://<!--{$site|escape:'html'}-->/@<!--{$user|escape:'html'}-->" rel="me"> | ||
<!-- {if $icon} --> | |||
[[Image:Mastodon.svg|width=25px]] | |||
<!-- {else} --> | |||
@<!--{$user|escape:'html'}-->@<!--{$site|escape:'html'}--> | |||
<!-- {/if} --> | |||
</a> | |||
</includeonly><noinclude> | </includeonly><noinclude> | ||
This widget basically just generates a hyperlink with the <code>rel="me"</code> attribute/value. | This widget basically just generates a hyperlink with the <code>rel="me"</code> attribute/value. | ||
Line 10: | Line 16: | ||
{{#widget:MastodonLink|site=hachyderm.io|user=nottinghack}} | {{#widget:MastodonLink|site=hachyderm.io|user=nottinghack}} | ||
{{#widget:MastodonLink|site=hachyderm.io|user=nottinghack|icon}} | |||
==Parameters== | ==Parameters== | ||
Line 16: | Line 24: | ||
;username | ;username | ||
:The mastodon username | :The mastodon username | ||
;icon | |||
:Show mastodon icon instead of text link (set or do not set) | |||
[[Category:Widget]] | [[Category:Widget]] | ||
</noinclude> | </noinclude> |
Revision as of 00:03, 12 March 2025
This widget basically just generates a hyperlink with the rel="me"
attribute/value.
Example
{{#widget:MastodonLink|site=hachyderm.io|user=nottinghack}}
Parameters
- site
- The mastodon site domain
- username
- The mastodon username
- icon
- Show mastodon icon instead of text link (set or do not set)