模板:Fdate
外观
使用方式
[编辑]If a date is input as the first parameter, the template will format that date (use the second parameter to specify an output format - see template:date). If no date in input, the template will return nothing.
范例
[编辑]- "{{fdate|7/4/15}}"显示为:"4 July 2015"
- "{{fdate|7/4/15|dmy}}"显示为:"4 July 2015"
- "{{fdate|7/4/15|mdy}}"显示为:"July 4, 2015"
- "{{fdate|}}"显示为:""
- "{{fdate||dmy}}"显示为:""
- "{{fdate||mdy}}"显示为:""
上述文档嵌入自Template:Fdate/doc。 (编辑 | 历史) 编者可以在本模板的沙盒 (创建 | 镜像)和测试样例 (创建)页面进行实验。 请在/doc子页面中添加分类。本模板的子页面。 |