This is the template sandbox page for Template:Twitch (diff). |
This template uses the Wikidata property:
This template uses Lua: |
The external links guideline recommends avoiding links to Twitch unless the profile is an official account, "controlled by the subject (organization or individual person) of the Wikipedia article" and when the links to Twitch "provide the reader with unique content and are not prominently linked from other official websites". Wikipedia is not a directory for helping Twitch users find pages on Twitch. |
Usage
editGenerate a link to a Twitch channel in a standard format.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Account ID | id 1 | ID of the Twitch account (part of the web page address, for https://www.twitch.tv/example/ the account id is "example"). This parameter is optional if Wikidata property P5797 exists, but required if not.
| Line | optional |
Display name | name 2 | Display name for the Twitch account. This parameter is optional; it defaults to the Wikipedia article name.
| Line | optional |
Link | link | Whether to link "Twitch (service)"
| Boolean | optional |
Team | team | For linking to teams of Twitch Channels
| String | optional |
Examples
editUser
editIn this example, the Twitch user account is zeroserenity and the description in the link is Zero Serenity:
- Usage and output
* {{Twitch | zeroserenity | Zero Serenity }}
* {{Twitch | id= zeroserenity | name= Zero Serenity }}
* {{Twitch | zeroserenity | Zero Serenity | link= no }}
- Zero Serenity on Twitch
* {{Twitch | id= zeroserenity | name= Zero Serenity | link= no }}
- Zero Serenity on Twitch
Team
edit- Usage and output
* {{Twitch | team= dreamsmp | name= dream smp }}
* {{Twitch | team= dreamsmp | name= dream smp | link= no }}
- dream smp on Twitch
No ID in template or Wikidata
edit- Usage and output
* {{Twitch}}
- {{Twitch}} template missing ID and not present in Wikidata.