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

Recordを使わないとアカウントに紐付かない
Motodai (トーク | 投稿記録)
エラー解消
 
(2人の利用者による、間の3版が非表示)
29行目: 29行目:
-- Instagram URL
-- Instagram URL
local formatterURL = "https://instagram.com/$1";
local formatterURL = "https://instagram.com/$1";
local url = mw.ustring.gsub(formatterURL, "\$1", i_name);
local url = mw.ustring.gsub(formatterURL, "$1", i_name);
-- Instagram 表示名
-- Instagram 表示名
42行目: 42行目:
else
else
verify ='true';
verify ='true';
v_veryfy = '[[ファイル:認証バッジ.png|15px]]';
v_veryfy = '[[ファイル:認証バッジ.png|15px|link=]]';
end
end
    
    
54行目: 54行目:
-- SemanticMediaWiki
-- SemanticMediaWiki
     local dataStore = {}
     local dataStore = {}
     dataStore['Instagram'] = '' .. i_name .. ';'..verify
     dataStore['Instagram'] = '' .. i_name .. ';'..verify .. ';'..name


if not args.nosmw then
if not args.nosmw then
65行目: 65行目:
end
end


return '[' ..url ..' ' ..name ..'] ' ..i_name2 ..v_veryfy..'- [[Instagram]]';
return '[' ..url ..' ' ..name ..'] ' ..i_name2 ..v_veryfy..' - [[Instagram]]';
end
end


return p;
return p;