Editing Template:SocialMediaLink

Template page
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
<noinclude>
<noinclude>
This Template creates a social media link and, if it's used on a User page, adds the relevant Semantic MediaWiki properties.
== Usage ==
== Usage ==
The first parameter has to be the service you are linking to, the second the username, the third the server if it is a federated service.
The first parameter has to be the service you are linking to, the second the username, the third the server if it is a federated service.
<pre><nowiki>{{SocialMediaLink|service|username|server.example.com}}</nowiki></pre>
<pre><nowiki>{{SocialMediaLink|service|username|server.example.com}}</nowiki></pre>
Bei Service sind folgende Einträge möglich bzw. folgende Services werden unterstützt:
* dorfgit (alternative Schreibweisen: DorfGit, Git, git)
* github (alternative Schreibweisen: Github, GitHub, gh)
* matrix (alternative Schreibweisen: Matrix, mtrx, mx)
* mastodon (alternative Schreibweisen: Mastodon, mstdn)
* telegram (alternative Schreibweisen: Telegram)
* twitter (alternative Schreibweisen: Twitter, tw)
</noinclude>
</noinclude>
<includeonly>{{#switch: {{{1}}}
<includeonly>{{#switch: {{{1}}}
  | dorfgit  | DorfGit  | Git      | git      = [https://chaosdorf.de/git/{{{2}}} {{{2}}}] {{#ifeq: {{NAMESPACE}}|User|{{#set:DorfGit={{{2}}}}} {{#set:DorfGitLink={{{2}}}}} {{#set:Has DorfGit=True}} |}}
  | dorfgit  =  
  | github  | Github  | GitHub  | gh      = [https://github.com/{{{2}}} {{{2}}}] {{#ifeq: {{NAMESPACE}}|User|{{#set:GitHub={{{2}}}}} {{#set:GitHubLink={{{2}}}}} {{#set:Has GitHub=True}} |}}
  | github  =
  | matrix  | Matrix  | mtrx    | mx      = [https://matrix.to/#/@{{{2}}}:{{{3}}} @{{{2}}}:{{{3}}}] {{#ifeq: {{NAMESPACE}}|User|{{#set:Matrix=@{{{2}}}:{{{3}}}}} {{#set:MatrixLink={{{2}}}{{{{3}}}} }} {{#set:Has Matrix=True}} |}}
  | matrix  = [https://matrix.to/#/@{{{2}}}:{{{3}}} @{{{2}}}:{{{3}}}] {{#ifeq: {{NAMESPACE}}|User|{{#set:Matrix=@{{{2}}}:{{{3}}}}} {{#set:MatrixLink={{{2}}}{{{{3}}}} }} {{#set:Has Matrix=True}} |}}
  | mastodon | Mastodon | mstdn              = [https://{{{3}}}/@{{{2}}} @{{{2}}}@{{{3}}}] {{#ifeq: {{NAMESPACE}}|User|{{#set:Mastodon=@{{{2}}}:{{{3}}}}} {{#set:MastodonLink={{{2}}}{{{{3}}}} }} {{#set:Has Mastodon=True}} |}}
  | mastodon =
| telegram | Telegram                      = [https://t.me/{{{2}}} @{{{2}}}] {{#ifeq: {{NAMESPACE}}|User|{{#set:Telegram=@{{{2}}}}} {{#set:TelegramLink={{{2}}}}} {{#set:Has Telegram=True}} |}}
  | twitter  =
  | twitter  | Twitter  | tw                  = [https://twitter.com/{{{2}}} @{{{2}}}] {{#ifeq: {{NAMESPACE}}|User|{{#set:Twitter=@{{{2}}}}} {{#set:TwitterLink={{{2}}}}} {{#set:Has Twitter=True}} |}}
}}</includeonly>
}}</includeonly>
Please note that all contributions to Chaosdorf Wiki are considered to be released under the Attribution 3.0 Unported (see Chaosdorf Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!
Cancel Editing help (opens in new window)