「モジュール:SMWメンバー情報」の版間の差分

setPropertyはこの場所にも置くべきだったのか?
編集の要約なし
(setPropertyはこの場所にも置くべきだったのか?)
タグ: 手動差し戻し
 
(同じ利用者による、間の4版が非表示)
70行目: 70行目:
       -- If the group is not extracted, use the provided group
       -- If the group is not extracted, use the provided group
       if not extractedGroup or extractedGroup == "" then
       if not extractedGroup or extractedGroup == "" then
         extractedGroup = args["グループ"] or args["元グループ"] or ""
         extractedGroup = args["元グループ"] or args["グループ"] or ""
       end
       end
       -- If the num is nil, return an error
       -- If the num is nil, return an error
77行目: 77行目:
       end
       end
       -- Store the group and selection times
       -- Store the group and selection times
       total_s = total_s + tonumber(num)
       if tonumber(num) > 0 then
      table.insert(dataStore["選抜回数"], extractedGroup .. ';' .. num)
        total_s = total_s + tonumber(num)
        table.insert(dataStore["選抜回数"], extractedGroup .. ';' .. num)
      end
   end
   end
   -- Add the total selection times to the dataStore
   -- Add the total selection times to the dataStore
95行目: 97行目:
       -- If the group is not extracted, use the provided group
       -- If the group is not extracted, use the provided group
       if not extractedGroup or extractedGroup == "" then
       if not extractedGroup or extractedGroup == "" then
         extractedGroup = args["グループ"] or args["元グループ"] or ""
         extractedGroup = args["元グループ"] or args["グループ"] or ""
       end
       end
       -- If the num is nil, return an error
       -- If the num is nil, return an error
102行目: 104行目:
       end
       end
       -- Store the group and selection times
       -- Store the group and selection times
       total_c = total_c + tonumber(num)
       if  tonumber(num) > 0 then
      table.insert(dataStore["センター回数"], extractedGroup .. ';' .. num)
        total_c = total_c + tonumber(num)
        table.insert(dataStore["センター回数"], extractedGroup .. ';' .. num)
      end
   end
   end
   -- Add the total selection times to the dataStore
   -- Add the total selection times to the dataStore
   dataStore["センター回数合計"] = total_c
   if total_c > 0 then
    dataStore["センター回数合計"] = total_c
  end


   local generation = ''
   local generation = ''
127行目: 133行目:
       -- If the group is not extracted, use the provided group
       -- If the group is not extracted, use the provided group
       if not extractedGroup or extractedGroup == "" then
       if not extractedGroup or extractedGroup == "" then
         extractedGroup = args["グループ"] or args["元グループ"] or ""
         extractedGroup = args["元グループ"] or args["グループ"] or ""
         num = mw.ustring.match(line, "(%d+)回")
         num = mw.ustring.match(line, "(%d+)回")
       end
       end
135行目: 141行目:
       end
       end
       -- Store the group and selection times
       -- Store the group and selection times
       total_s = total_s + tonumber(num)
       if tonumber(num) > 0 then
      table.insert(dataStore["選抜回数"], extractedGroup .. ';' .. num)
        total_s = total_s + tonumber(num)
        table.insert(dataStore["選抜回数"], extractedGroup .. ';' .. num)
      end
   end
   end
   -- Add the total selection times to the dataStore
   -- Add the total selection times to the dataStore
153行目: 161行目:
       -- If the group is not extracted, use the provided group
       -- If the group is not extracted, use the provided group
       if not extractedGroup or extractedGroup == "" then
       if not extractedGroup or extractedGroup == "" then
         extractedGroup = args["グループ"] or args["元グループ"] or ""
         extractedGroup = args["元グループ"] or args["グループ"] or ""
         num = mw.ustring.match(line, "(%d+)回")
         num = mw.ustring.match(line, "(%d+)回")
       end
       end
161行目: 169行目:
       end
       end
       -- Store the group and selection times
       -- Store the group and selection times
       total_c = total_c + tonumber(num)
       if tonumber(num) > 0 then
      table.insert(dataStore["センター回数"], extractedGroup .. ';' .. num)
        total_c = total_c + tonumber(num)
        table.insert(dataStore["センター回数"], extractedGroup .. ';' .. num)
      end
   end
   end
   -- Add the total selection times to the dataStore
   -- Add the total selection times to the dataStore
   dataStore["センター回数合計"] = total_c
 
   if total_c > 0 then
    dataStore["センター回数合計"] = total_c
  end
 
   setProperty(dataStore);
   setProperty(dataStore);


user-upload
32,192

回編集