月次ページ作成script
日報ページ作成scriptのテンプレバリエーション
利用イメージ→月次ページ
導入するときはたぶん日報ページ作成scriptもいれないとだめ?
2025/6/1
inputのwipって日報で大抵言及されてるから不要 消した
code:月次テンプレート.js
(() => {
const today = new Date();
const currentYear = today.getFullYear();
const currentMonth = today.getMonth() + 1;
const formatYearMonth = (year, month) => ${year}/${month};
const currentYearMonth = formatYearMonth(currentYear, currentMonth);
const prevMonth = currentMonth === 1 ? formatYearMonth(currentYear - 1, 12) : formatYearMonth(currentYear, currentMonth - 1);
const nextMonth = currentMonth === 12 ? formatYearMonth(currentYear + 1, 1) : formatYearMonth(currentYear, currentMonth + 1);
const lastYear = formatYearMonth(currentYear - 1, currentMonth);
return `${currentYearMonth}
#日記
${currentMonth}月
前:${prevMonth}
次:${nextMonth}
去年の今:${lastYear}
今月の画像
目標 目標-${currentYear}
めーんとぴっく!
世相!
いんぷっと
Complete
消費
table:消費
対象 金額 日時
総括
成果
来月に向けて`;
})();
public.icon