Difference between revisions of "Template:Fdate/doc"
Jump to navigation
Jump to search
imported>Zfish118 (→Usage) |
imported>Zfish118 (→Usage) |
||
| Line 5: | Line 5: | ||
Example: | Example: | ||
| + | <p> | ||
* "<nowiki>{{fdate|7/4/15}}</nowiki>" renders as: "{{fdate|7/4/15}}" | * "<nowiki>{{fdate|7/4/15}}</nowiki>" renders as: "{{fdate|7/4/15}}" | ||
| + | * "<nowiki>{{fdate|7/4/15|dmy}}</nowiki>" renders as: "{{fdate|7/4/15|dmy}}" | ||
| + | * "<nowiki>{{fdate|7/4/15|mdy}}</nowiki>" renders as: "{{fdate|7/4/15|mdy}}" | ||
| + | </p><p> | ||
* "<nowiki>{{fdate|}}</nowiki>" yields: "{{fdate|}}" | * "<nowiki>{{fdate|}}</nowiki>" yields: "{{fdate|}}" | ||
| − | + | * "<nowiki>{{fdate||dmy}}</nowiki>" yields: "{{fdate||dmy}}" | |
| + | * "<nowiki>{{fdate||mdy}}</nowiki>" yields: "{{fdate||mdy}}" | ||
| + | </p> | ||
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | | | <includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | | | ||
<!-- Categories below this line, please; interwikis at Wikidata --> | <!-- Categories below this line, please; interwikis at Wikidata --> | ||
}}</includeonly> | }}</includeonly> | ||
Latest revision as of 22:28, 13 July 2015
| This is a documentation subpage for Template:Fdate. It contains usage information, categories and other content that is not part of the original template page. |
Usage
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.
Example:
- "{{fdate|7/4/15}}" renders as: "4 July 2015"
- "{{fdate|7/4/15|dmy}}" renders as: "4 July 2015"
- "{{fdate|7/4/15|mdy}}" renders as: "July 4, 2015"
- "{{fdate|}}" yields: ""
- "{{fdate||dmy}}" yields: ""
- "{{fdate||mdy}}" yields: ""