Jump to content

Template:YouTube

From WikiGence

This template creates a formatted external link to a YouTube channel, profile or video.

Direct URL

{{YouTube|https://www.youtube.com/@example}}

Custom title:

{{YouTube
| https://www.youtube.com/@example
| title = Example on YouTube
}}

Named URL

{{YouTube
| url = https://www.youtube.com/@example
| title = Example on YouTube
}}

YouTube handle

Write the handle without the @ symbol:

{{YouTube
| handle = example
| title = Example on YouTube
}}

Channel ID

{{YouTube
| channel = UCxxxxxxxxxxxxxxxx
| title = Example YouTube channel
}}

The alias channel_id is also supported:

{{YouTube
| channel_id = UCxxxxxxxxxxxxxxxx
| title = Example YouTube channel
}}

Username

{{YouTube
| user = example
| title = Example on YouTube
}}

The alias username is also supported.

Video

{{YouTube
| video = dQw4w9WgXcQ
| title = Watch on YouTube
}}

The alias video_id is also supported.

Supported parameters

  • 1 — complete YouTube URL
  • url — complete YouTube URL
  • channel or channel_id
  • handle — without the @ symbol
  • user or username
  • video or video_id
  • title or name — displayed link text