Template talk:User YouTube

(Redirected from Template talk:User YouTube/doc)
Latest comment: 1 year ago by 46.208.6.20 in topic New YouTube channel URL formats

Need to add parameters for channel URLs following different formats

edit

This userbox template assumes that all YouTube channel URLs are of the form

  • https://www.youtube.com/channel/{{{1}}}

where {{{1}}} is a 24-digit alphanumeric code called the channelID. However, there are some channels with different URL forms like:

  • https://www.youtube.com/user/{{{username}}} (prevalent in channels opened before 2013)
  • https://www.youtube.com/c/{{{custom_name}}}
  • https://www.youtube.com/{{{custom_name_2}}}

I have this custom userbox template that adapts to this situation:

Its unnamed parameters behave differently than the Template:-spaced template, but at least it gives an idea about how to modify the template to accept named parameters like username, custom_name, etc. ‐⁠‑🌀⁠SilSinnAL982100💬 05:51, 1 December 2019 (UTC)Reply

For this template to accept named parameters, the wikicode line

| info     = This user has a '''{{#if:{{{1|}}}|[https://www.youtube.com/channel/{{{1}}} channel]|channel}}''' on '''[[YouTube]]'''.

could be modified to

| info     = This user has a '''{{#if: {{{channelID|}}}|[http://youtube.com/channel/{{{channelID}}} channel]|{{#if: {{{custom_name|}}}|[http://youtube.com/c/{{{custom_name}}} channel]|{{#if: {{{username|}}}|[http://youtube.com/user/{{{username}}} channel]|{{#if: {{{custom_name_2|}}}|[http://youtube.com/{{{custom_name_2}}} channel]|{{#if: {{{1|}}}|[http://youtube.com/channel/{{{1}}} channel]|channel}}}}}}}}}}''' on '''[[YouTube]]'''.

and still preserve backwards compatibility with its current implementation. ‐⁠‑🌀⁠SilSinnAL982100💬 06:01, 1 December 2019 (UTC)Reply

Need to replace current userbox icon (YT logo + name) with just the logo alone

edit

@InfiniteNexus: I noticed you reduced the render size of the YouTube userbox icon to make it consistent with other userboxes, but there’s a problem now: because the icon currently incorporates the logo & name of YouTube, both now effectively render too tiny to be appreciated. I believe such userbox icon should be cropped to show only the YouTube logo alone (without showing the name “YouTube”) so that the 39 pixels show it in an effectively reasonable size. ‐⁠‑🌀⁠SilSinnAL982100💬 22:15, 7 April 2021 (UTC)Reply

I found the ideal replacement icon for the userbox:
‐⁠‑🌀⁠SilSinnAL982100💬 22:21, 7 April 2021 (UTC)Reply
@SilSinn9821: Sounds good to me, thanks for the message! InfiniteNexus (talk) 22:26, 7 April 2021 (UTC)Reply

Semi-protected edit request on 23 July 2021

edit

The info-a parameter needs to be removed so align is reset to left to maintain consistency. All infoboxes I've come across and ever used do not center align:

 

Adaaaam (talk) 17:17, 23 July 2021 (UTC)Reply

  Done * Pppery * it has begun... 17:40, 23 July 2021 (UTC)Reply
@Pppery: Wow that was fast, excellent work! Adaaaam (talk) 18:41, 23 July 2021 (UTC)Reply

New YouTube channel URL formats

edit

Consider how the template may need to be updated since YT is replacing /user/... and /channel/... URLs with /@account_name.

46.208.6.20 (talk) 01:35, 18 February 2023 (UTC)Reply