「モジュール:YouTube channel」の版間の差分
YouTube handles: |
編集の要約なし |
||
| (同じ利用者による、間の1版が非表示) | |||
| 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 | |||
local y_handle = handle | |||
v_handle = '(@' ..handle.. ')'; | |||
formatterURL = "https://www.youtube.com/@$1"; | |||
url = mw.ustring.gsub(formatterURL, "\$1", y_handle); | |||
end | |||
-- YouTube channel 表示名 | -- YouTube channel 表示名 | ||
| 63行目: | 74行目: | ||
end | end | ||
--YouTube channel 表示名デフォルト | --YouTube channel 表示名デフォルト | ||