Jump to content

Template:Twitch/doc

From Wikipedia, the free encyclopedia

Usage

[edit]

Generate a link to a Twitch channel in a standard format.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Account IDid 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.

Default
Wikidata property P5797
Lineoptional
Display namename 2

Display name for the Twitch account. This parameter is optional; it defaults to the Wikipedia article name.

Default
{{PAGENAMEBASE}}
Lineoptional
Linklink

Whether to link "Twitch (service)"

Default
yes
Booleanoptional
Teamteam

For linking to teams of Twitch Channels

Example
dreamsmp
Stringoptional

Examples

[edit]

User

[edit]

In 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 }}
* {{Twitch | id= zeroserenity | name= Zero Serenity | link= no }}
URL
https://www.twitch.tv/zeroserenity

Team

[edit]
Usage and output
* {{Twitch | team= dreamsmp | name= dream smp }}
* {{Twitch | team= dreamsmp | name= dream smp | link= no }}
URL
https://www.twitch.tv/team/dreamsmp

No ID in template or Wikidata

[edit]
Usage and output
* {{Twitch}}
  • {{Twitch}} template missing ID and not present in Wikidata.

See also

[edit]