「モジュール:YouTube channel」の版間の差分

ナビゲーションに移動 検索に移動
(Softyu がページ「モジュール:YouTube channe」を「モジュール:YouTube channel」に、リダイレクトを残さずに移動しました: 误字)
編集の要約なし
25行目: 25行目:


function p.main( frame )
function p.main( frame )
local args = require( 'Module:Arguments' ).getArgs( frame, { wrappers = 'Template:YouTube_channe', removeBlanks = false, parentFirst = true });
local args = require( 'Module:Arguments' ).getArgs( frame, { wrappers = 'Template:YouTube_channel', removeBlanks = false, parentFirst = true });
local dataStore = {}
local dataStore = {}
 
 
-- YouTube_channe ID
-- YouTube_channel ID
local y_id = args[1] or args.id or '';
local y_id = args[1] or args.id or '';
local formatterURL = "https://www.youtube.com/channel/$1";
local formatterURL = "https://www.youtube.com/channel/$1";
44行目: 44行目:
end
end


-- YouTube_channe 表示名
-- YouTube_channel 表示名
local name = args[2] or args.name or '';
local name = args[2] or args.name or '';
53行目: 53行目:




-- YouTube_channe 表示名デフォルト
-- YouTube_channel 表示名デフォルト
if name == '' then
if name == '' then
name = "YouTube チャンネル";
name = "YouTube チャンネル";