模板:OffsetDayInMonth
更多語言
更多操作
{{#expr: 1 - {{#time: w | 06/1/2026 }} }}Template:Pp-protected
- 功能:從年份數(默認為{{CURRENTYEAR}})和月份數(默認為{{CURRENTMONTH}})返回對應月份第一個星期天的日期數
- 用法:
{{OffsetDayInMonth|年份数|月份数}}
返回值應為 -5 和 1 之間的某個整數。
{{
{{#switch:
{{#if:
|
| {{#ifeq:template|
| main
| {{#ifeq:template|template talk
| talk
| template
}}
}}
}}
| main = ambox | talk = tmbox | user = ombox | wikipedia = ombox | image = ombox | mediawiki = ombox | template = ombox | help = ombox | category = cmbox | portal = ombox | other | #default = ombox
}}
| type = notice
| image =
| imageright =
| class =
| style =
| textstyle =
| text = 這個模板在原始碼中包含了一些非常複雜的可選參數和構造。
這個模板的結構精密,除非您確認非常了解它的用途和構造細節,並且能夠修復這個修改所有可能引起的變更,否則請不要隨意更動這個模板。所有實驗性的步驟請在沙盒模板內,或是您的用戶頁內進行。使用前請參閱討論頁。
| small =
| smallimage =
| smallimageright =
| smalltext =
| subst =
| date =
| name =
}}