「モジュール:YouTube channel」の版間の差分
ナビゲーションに移動
検索に移動
(YouTube handles:) |
(URLを @形式に) |
||
38行目: | 38行目: | ||
url = mw.ustring.gsub(formatterURL, "\$1", y_user); | url = mw.ustring.gsub(formatterURL, "\$1", y_user); | ||
end | end | ||
-- YouTube handles: A new way to identify your YouTube channel | |||
local handle = args.handle or ''; | |||
if handle == '' then | |||
v_handle = ''; | |||
else | |||
v_handle = '(@' ..handle.. ')'; | |||
formatterURL = "https://www.youtube.com/@$1"; | |||
url = mw.ustring.gsub(formatterURL, "\$1", v_handle); | |||
end | |||
-- YouTube channel 表示名 | -- YouTube channel 表示名 | ||
63行目: | 73行目: | ||
end | end | ||
--YouTube channel 表示名デフォルト | --YouTube channel 表示名デフォルト |