「モジュール:カレンダー」の版間の差分

デカさを指定可能に
(日付チェックを導入)
(デカさを指定可能に)
16行目: 16行目:
days = month == 1 and (yogurian.isLeap(year + 2020) and 36 or 35) or 30
days = month == 1 and (yogurian.isLeap(year + 2020) and 36 or 35) or 30
beforeDays = month == 2 and (yogurian.isLeap(year + 2020) and 36 or 35) or 30
beforeDays = month == 2 and (yogurian.isLeap(year + 2020) and 36 or 35) or 30
res = "{| class=\"wikitable\" style=\"text-align:center;color:red;width:70vmin;height:70vmin;font-size:5vmin;\"\n"
res = "{| class=\"wikitable\" style=\"text-align:center;color:red;" .. (frame.args[3] ~= nil and frame.args[3] or "width:70%;height:auto;font-size:200%;") .. "\"\n"
  .."|+ style=\"color:black\" | ".. month .."月\n"
  .."|+ style=\"color:black\" | ".. month .."月\n"
  .."|- style=\"background-color:red;color:white;font-weight:bold;\"\n"
  .."|- style=\"background-color:red;color:white;font-weight:bold;\"\n"