「テンプレート:YouTube channel」の版間の差分
ナビゲーションに移動
検索に移動
(マニュアルを「handle」仕様に改訂) |
|||
5行目: | 5行目: | ||
* [[モジュール:YouTube channel]] | * [[モジュール:YouTube channel]] | ||
== 使い方 == | == 使い方 == | ||
2022年10月からは、すべてのYouTubeチャンネルに「ハンドル」(@XXXX 形式)が導入されました([https://www.watch.impress.co.jp/docs/news/1446858.html 参考])。ハンドルを含めたい場合、ハンドル(handle)を指定してください。また、チャンネル名は(name)を指定してください。 | |||
* <code>https://www.youtube.com/@stu4858</code> → <code>stu4858 </code>(先頭部分の"@"は不要) | |||
<pre> | |||
{{YouTube channel | |||
| name = STU48 | |||
| handle = stu4858 | |||
}} | |||
{{YouTube channel|name=STU48|handle=stu4858}} | |||
</pre> | |||
以前のYouTubeの「channel ID」を使う場合は、"id"を使ってください。与えて使用します。 | |||
[https://support.google.com/youtube/answer/6180214?hl=ja チャンネル URL について - YouTube ヘルプ] | [https://support.google.com/youtube/answer/6180214?hl=ja チャンネル URL について - YouTube ヘルプ] | ||
35行目: | 47行目: | ||
</pre> | </pre> | ||
== | == (参考)Channel ID 取得方法 == | ||
[[File:YouTubeチャンネルID取得方法.png|thumb|150px|「概要」から「チャンネルIDをコピー」選択する(AKB48公式YouTubeチャンネルから)]] | [[File:YouTubeチャンネルID取得方法.png|thumb|150px|「概要」から「チャンネルIDをコピー」選択する(AKB48公式YouTubeチャンネルから)]] | ||
61行目: | 62行目: | ||
|- | |- | ||
! id | ! id | ||
| テキスト (id)|| (なし) || YouTube channel | | テキスト (id)|| (なし) || YouTube channel ID (省略可能だが、その場合、handleを指定すること)。 | ||
|- | |- | ||
! user | ! user | ||
| テキスト (user)|| (なし) || YouTube User ID。youtube.com/user/AKB48 などはこちら | | テキスト (user)|| (なし) || YouTube User ID。youtube.com/user/AKB48 などはこちら (省略可能だが、その場合は、handleかidを指定すること) | ||
|- | |- | ||
! name | ! name | ||
70行目: | 71行目: | ||
|- | |- | ||
! handle | ! handle | ||
| テキスト (handle )|| YouTube handle 名 || 2022.10より導入された新しいID [https://support.google.com/youtube/thread/183284252] | | テキスト (handle )|| YouTube handle 名 || 2022.10より導入された新しいID [https://support.google.com/youtube/thread/183284252] (省略可能だが、その場合はidを指定すること) | ||
|} | |} | ||
81行目: | 82行目: | ||
<pre> | <pre> | ||
{{YouTube channel | {{YouTube channel | ||
| name = 日向坂46 OFFICIAL YouTube CHANNEL | | name = 日向坂46 OFFICIAL YouTube CHANNEL | ||
| handle=46officialyoutubechannel99 | | handle=46officialyoutubechannel99 | ||
}} | }} | ||
{{YouTube channel| | {{YouTube channel|name=日向坂46 OFFICIAL YouTube CHANNEL|handle=46officialyoutubechannel99}} | ||
{{YouTube channel|UCR0V48DJyWbwEAdxLL5FjxA}} | {{YouTube channel|UCR0V48DJyWbwEAdxLL5FjxA}} | ||
</pre> | </pre> | ||
|| | || | ||
{{YouTube channel | {{YouTube channel | ||
| name = 日向坂46 OFFICIAL YouTube CHANNEL | | name = 日向坂46 OFFICIAL YouTube CHANNEL | ||
| handle=46officialyoutubechannel99 | | handle=46officialyoutubechannel99 | ||
}} | }} | ||
{{YouTube channel| | {{YouTube channel|name=日向坂46 OFFICIAL YouTube CHANNEL|handle=46officialyoutubechannel99}} | ||
{{YouTube channel|UCR0V48DJyWbwEAdxLL5FjxA}} | {{YouTube channel|UCR0V48DJyWbwEAdxLL5FjxA}} | ||
|} | |||
[[Category:Luaを利用するテンプレート]] | [[Category:Luaを利用するテンプレート]] | ||
[[Category:ソーシャル・ネットワーキング・サービステンプレート]] | [[Category:ソーシャル・ネットワーキング・サービステンプレート]] |