模板討論:Previous month

頁面內容不支援其他語言。
新增話題
維基新聞,自由的新聞源

語法[編輯]

{{Previous month|參數}}

返回值[編輯]

return value: 上n個月份的年月字符串

參數[編輯]

倒退之月份數.

示例[編輯]

  • 本月的上月是...

{{Previous month}}月

得到:

2024年/5月
  • 本月往前數 8 個月是哪月?

{{Previous month|8}}月

得到:

2023年/10月


  • 去年的本月呢?

{{Previous month|12}}月

得到:

2023年/6月

注意點[編輯]

(https 用戶無法看見這段公式)

參見[編輯]

template:Previous month 2