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

ナビゲーションに移動 検索に移動
表示名や認証マークをdatastoreできないな。。。
(認証バッジ verified は "○" か "" で)
(表示名や認証マークをdatastoreできないな。。。)
1行目: 1行目:
local p = {};
local p = {};


local function setProperty(t_name, i_v)
local function setProperty(t_name, n_name, i_v)
-- メイン空間のみ
-- メイン空間のみ
14行目: 14行目:
     local dataStore = {}
     local dataStore = {}
     dataStore['Instagramアカウント'] = t_name
     dataStore['Instagramアカウント'] = t_name
    dataStore['表示名'] = n_name
     dataStore['認証バッジ'] = i_v
     dataStore['認証バッジ'] = i_v


41行目: 42行目:
local verified = args[3] or args.v or '';
local verified = args[3] or args.v or '';
-- Instagram 表示名デフォルト
if name == '' then
name = mw.ustring.gsub(mw.title.getCurrentTitle().text,"%s+%b()$","");
end
-- SemanticMediaWiki
-- SemanticMediaWiki
if not args.nosmw then
if not args.nosmw then
setProperty(i_name, verified);
setProperty(i_name, name, verified);
end
end




-- Instagram 表示名デフォルト
if name == '' then
name = mw.ustring.gsub(mw.title.getCurrentTitle().text,"%s+%b()$","");
end


local i_name2 = '(@' .. i_name  ..')';
local i_name2 = '(@' .. i_name  ..')';
管理者、user-upload
32,049

回編集

案内メニュー