「テンプレート:YouTube channel」の版間の差分
ナビゲーションに移動
検索に移動
細 (Softyu がページ「テンプレート:YouTube channe」を「テンプレート:YouTube channel」に移動しました: 误字) |
編集の要約なし |
||
1行目: | 1行目: | ||
<includeonly>{{#invoke:YouTube | <includeonly>{{#invoke:YouTube channel|main}}</includeonly><noinclude> | ||
YouTubeのユーザーページ(公式チャンネル)にリンクするテンプレートです、基本的に外部リンク節で使用します。 | YouTubeのユーザーページ(公式チャンネル)にリンクするテンプレートです、基本的に外部リンク節で使用します。 | ||
* [[Property:YouTubeチャンネル]] | * [[Property:YouTubeチャンネル]] | ||
* [[Property:YouTubeユーザー]] | * [[Property:YouTubeユーザー]] | ||
* [[モジュール:YouTube | * [[モジュール:YouTube channel]] | ||
== 使い方 == | == 使い方 == | ||
17行目: | 17行目: | ||
}} | }} | ||
{{YouTube | {{YouTube channel|UCR0V48DJyWbwEAdxLL5FjxA|日向坂46 OFFICIAL YouTube CHANNEL}} | ||
{{YouTube | {{YouTube channel|UCR0V48DJyWbwEAdxLL5FjxA}} | ||
</pre> | </pre> | ||
25行目: | 25行目: | ||
* <code>https://www.youtube.com/user/AKB48 </code> → <code>AKB48 </code> | * <code>https://www.youtube.com/user/AKB48 </code> → <code>AKB48 </code> | ||
<pre> | <pre> | ||
{{YouTube | {{YouTube channel | ||
| user = AKB48 | | user = AKB48 | ||
| name = AKB48 | | name = AKB48 | ||
}} | }} | ||
{{YouTube | {{YouTube channel|user=AKB48|name=AKB48 }} | ||
{{YouTube | {{YouTube channel|user=AKB48}} | ||
</pre> | </pre> | ||
== 引数 == | == 引数 == | ||
39行目: | 39行目: | ||
|- | |- | ||
! id | ! id | ||
| テキスト (id)|| (なし) || YouTube | | テキスト (id)|| (なし) || YouTube channel ID。 | ||
|- | |- | ||
! user | ! user | ||
| テキスト (user)|| (なし) || YouTube | | テキスト (user)|| (なし) || YouTube User ID。youtube.com/user/AKB48 などはこちら | ||
|- | |- | ||
! name | ! name | ||
| テキスト (name)|| YouTube | | テキスト (name)|| YouTube channel名 || 記事本文に表示するリンクの文字列 (省略可能) | ||
|} | |} | ||
55行目: | 55行目: | ||
| | | | ||
<pre> | <pre> | ||
{{YouTube | {{YouTube channel | ||
| id = UCR0V48DJyWbwEAdxLL5FjxA | | id = UCR0V48DJyWbwEAdxLL5FjxA | ||
| name = 日向坂46 OFFICIAL YouTube CHANNEL | | name = 日向坂46 OFFICIAL YouTube CHANNEL | ||
}} | }} | ||
{{YouTube | {{YouTube channel|UCR0V48DJyWbwEAdxLL5FjxA|日向坂46 OFFICIAL YouTube CHANNEL}} | ||
{{YouTube | {{YouTube channel|UCR0V48DJyWbwEAdxLL5FjxA}} | ||
{{YouTube | {{YouTube channel|user=AKB48}} | ||
</pre> | </pre> | ||
|| | || | ||
{{YouTube | {{YouTube channel | ||
| id = UCR0V48DJyWbwEAdxLL5FjxA | | id = UCR0V48DJyWbwEAdxLL5FjxA | ||
| name = 日向坂46 OFFICIAL YouTube CHANNEL | | name = 日向坂46 OFFICIAL YouTube CHANNEL | ||
}} | }} | ||
{{YouTube | {{YouTube channel|UCR0V48DJyWbwEAdxLL5FjxA|日向坂46 OFFICIAL YouTube CHANNEL}} | ||
{{YouTube | {{YouTube channel|UCR0V48DJyWbwEAdxLL5FjxA}} | ||
{{YouTube | {{YouTube channel|user=AKB48}} | ||
|} | |} | ||
[[Category:Luaを利用するテンプレート]] | [[Category:Luaを利用するテンプレート]] | ||
90行目: | 90行目: | ||
], | ], | ||
"label": "チャンネル名", | "label": "チャンネル名", | ||
"description": "YouTube | "description": "YouTube channel id。", | ||
"example": "UCR0V48DJyWbwEAdxLL5FjxA", | "example": "UCR0V48DJyWbwEAdxLL5FjxA", | ||
"required": true, | "required": true, | ||
119行目: | 119行目: | ||
} | } | ||
}, | }, | ||
"description": "YouTube | "description": "YouTube channel へのリンクを生成するテンプレートです。", | ||
"paramOrder": [ | "paramOrder": [ | ||
"id", | "id", |
2020年3月21日 (土) 13:57時点における版
YouTubeのユーザーページ(公式チャンネル)にリンクするテンプレートです、基本的に外部リンク節で使用します。
使い方
YouTubeの「channel ID」を与えて使用します。 チャンネル URL について - YouTube ヘルプ
https://www.youtube.com/channel/UCR0V48DJyWbwEAdxLL5FjxA
→UCR0V48DJyWbwEAdxLL5FjxA
{{YouTube channe | id = UCR0V48DJyWbwEAdxLL5FjxA | name = 日向坂46 OFFICIAL YouTube CHANNEL }} {{YouTube channel|UCR0V48DJyWbwEAdxLL5FjxA|日向坂46 OFFICIAL YouTube CHANNEL}} {{YouTube channel|UCR0V48DJyWbwEAdxLL5FjxA}}
AKB48公式など以前のユーザー名を使用したURLの場合```user```を使用してください
{{YouTube channel | user = AKB48 | name = AKB48 }} {{YouTube channel|user=AKB48|name=AKB48 }} {{YouTube channel|user=AKB48}}
引数
引数 | 指定内容 | 既定値 | 説明 |
---|---|---|---|
id | テキスト (id) | (なし) | YouTube channel ID。 |
user | テキスト (user) | (なし) | YouTube User ID。youtube.com/user/AKB48 などはこちら |
name | テキスト (name) | YouTube channel名 | 記事本文に表示するリンクの文字列 (省略可能) |
使用例
コード | プレビュー |
---|---|
{{YouTube channel | id = UCR0V48DJyWbwEAdxLL5FjxA | name = 日向坂46 OFFICIAL YouTube CHANNEL }} {{YouTube channel|UCR0V48DJyWbwEAdxLL5FjxA|日向坂46 OFFICIAL YouTube CHANNEL}} {{YouTube channel|UCR0V48DJyWbwEAdxLL5FjxA}} {{YouTube channel|user=AKB48}} |
日向坂46 OFFICIAL YouTube CHANNEL - YouTube |
テンプレートデータ
YouTube channel へのリンクを生成するテンプレートです。
引数 | 説明 | 型 | 状態 | |
---|---|---|---|---|
チャンネル名 | id 1 | YouTube channel id。
| 行 | 必須 |
名前 | name 2 | 記事本文に表示するリンクの文字列
| 行 | 非推奨 |
user | user | 以前のユーザー名の URL用
| 文字列 | 非推奨 |
nosmw | nosmw | 説明なし
| ブール値 | 非推奨 |