Template:Mastodon user/doc: Difference between revisions
Appearance
Content deleted Content added
WindTempos (talk | contribs) fix broken link |
No edit summary Tags: Reverted Mobile edit Mobile web edit |
||
| Line 1: | Line 1: | ||
{{nodoc}} |
{{nodoc}} |
||
{{Uses Wikidata| |
{{Uses Wikidata|Fabian |
||
{{Tracks Wikidata|P4033}} |
{{Tracks Wikidata|P4033}} |
||
{{Lua|Module:EditAtWikidata|Module:WikidataCheck}} |
{{Lua|Module:EditAtWikidata|Module:WikidataCheck}} |
||
| Line 6: | Line 6: | ||
'''{{NAMESPACE}}:{{BASEPAGENAME}}''' displays an external link to a page at [[Mastodon (social network)|Mastodon]], a [[social media]] website. It is intended for use in the [[Wikipedia:External links|external links]] section of an article. |
'''{{NAMESPACE}}:{{BASEPAGENAME}}''' displays an external link to a page at [[Mastodon (social network)|Mastodon]], a [[social media]] website. It is intended for use in the [[Wikipedia:External links|external links]] section of an article. |
||
== Usage |
== Usage = |
||
* If the Wikidata entry for a subject for the [[:d:Property:P4033|property P4033]] exists, then typing <nowiki>{{Mastodon user}}</nowiki> should automatically provide the subject's Mastodon user URL; this is typically usable in a [[WP:EXTERNALLINK]]; discuss on the talk page if there is controversy about whether the external link is notable enough for that subject (person or organisation). |
* If the Wikidata entry for a subject for the [[:d:Property:P4033|property P4033]] exists, then typing <nowiki>{{Mastodon user}}</nowiki> should automatically provide the subject's Mastodon user URL; this is typically usable in a [[WP:EXTERNALLINK]]; discuss on the talk page if there is controversy about whether the external link is notable enough for that subject (person or organisation). |
||
* If the Wikidata entry for a subject does ''not'' exist, typing <nowiki>{{Mastodon user|subject@instance}}</nowiki> should provide the URL https://instance/@subject . The result of this example is: {{Mastodon user|subject@instance}} |
* If the Wikidata entry for a subject does ''not'' exist, typing <nowiki>{{Mastodon user|subject@instance}}</nowiki> should provide the URL https://instance/@subject . The result of this example is: {{Mastodon user|subject@instance}} |
||
| Line 14: | Line 14: | ||
== Tracking categories == |
== Tracking categories == |
||
* {{clc|Mastodon username |
* {{clc|Mastodon username Fabian from Wikidata}} |
||
* {{clc|Mastodon username not in Wikidata}} |
* {{clc|Mastodon username not in Wikidata}} |
||
* {{clc|Mastodon user template missing ID and not in Wikidata}} |
* {{clc|Mastodon user template missing ID and not in Wikidata}} |
||
Revision as of 06:14, 18 September 2024
| This template's documentation is missing, inadequate, or does not accurately describe its functionality or the parameters in its code. Please help add, expand, or improve it. |
{{Uses Wikidata|Fabian
| This template uses Lua: |
Template:Mastodon user displays an external link to a page at Mastodon, a social media website. It is intended for use in the external links section of an article.
= Usage
- If the Wikidata entry for a subject for the property P4033 exists, then typing {{Mastodon user}} should automatically provide the subject's Mastodon user URL; this is typically usable in a WP:EXTERNALLINK; discuss on the talk page if there is controversy about whether the external link is notable enough for that subject (person or organisation).
- If the Wikidata entry for a subject does not exist, typing {{Mastodon user|subject@instance}} should provide the URL https://instance/@subject . The result of this example is: Mastodon user/doc on Mastodon
- Do not use two '@' symbols:
{{Mastodon user|@subject@instance}}will give the wrong result. - You may also use {{Mastodon user|subject@instance|alternative name of this subject}} to override the name of the article in the displayed text; this will give: alternative name of this subject on Mastodon
- Using
|noon=(any value)disables the "on Mastodon" portion of the template.
Tracking categories
- Category:Mastodon username Fabian from Wikidata (0)
- Category:Mastodon username not in Wikidata (0)
- Category:Mastodon user template missing ID and not in Wikidata (0)
See also