Difference between revisions of "Template:Date range and age/doc"
Jump to navigation
Jump to search
imported>WOSlinker m (add {{documentation subpage}}) |
imported>Daviddwd (Update to TemplateData) |
||
| Line 2: | Line 2: | ||
==== To use ==== | ==== To use ==== | ||
:<nowiki>{{Date range and age|Year of event start|Month of event start|Day of event start|Year of event end|Month of event end|Day of event end|df=y}}</nowiki> | :<nowiki>{{Date range and age|Year of event start|Month of event start|Day of event start|Year of event end|Month of event end|Day of event end|df=y}}</nowiki> | ||
| + | <templatedata> | ||
| + | { | ||
| + | "params": { | ||
| + | "1": { | ||
| + | "aliases": [ | ||
| + | "year1" | ||
| + | ], | ||
| + | "label": "Start year", | ||
| + | "type": "number", | ||
| + | "suggested": true | ||
| + | }, | ||
| + | "2": { | ||
| + | "aliases": [ | ||
| + | "month" | ||
| + | ], | ||
| + | "label": "Start month", | ||
| + | "type": "string", | ||
| + | "suggested": true | ||
| + | }, | ||
| + | "3": { | ||
| + | "aliases": [ | ||
| + | "day" | ||
| + | ], | ||
| + | "label": "Start day", | ||
| + | "type": "string", | ||
| + | "suggested": true | ||
| + | }, | ||
| + | "4": { | ||
| + | "aliases": [ | ||
| + | "year2" | ||
| + | ], | ||
| + | "label": "End year", | ||
| + | "type": "number", | ||
| + | "suggested": true | ||
| + | }, | ||
| + | "5": { | ||
| + | "aliases": [ | ||
| + | "month2" | ||
| + | ], | ||
| + | "label": "End month", | ||
| + | "type": "string" | ||
| + | }, | ||
| + | "6": { | ||
| + | "aliases": [ | ||
| + | "day2" | ||
| + | ], | ||
| + | "label": "End day", | ||
| + | "type": "string" | ||
| + | }, | ||
| + | "df": { | ||
| + | "label": "Day first?", | ||
| + | "description": "if 'y' or 'yes', day comes before month", | ||
| + | "type": "string" | ||
| + | } | ||
| + | } | ||
| + | } | ||
| + | </templatedata> | ||
Revision as of 22:46, 3 December 2018
| This is a documentation subpage for Template:Date range and age. It contains usage information, categories and other content that is not part of the original template page. |
To use
- {{Date range and age|Year of event start|Month of event start|Day of event start|Year of event end|Month of event end|Day of event end|df=y}}
No description.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Start year | 1 year1 | no description | Number | suggested |
| Start month | 2 month | no description | String | suggested |
| Start day | 3 day | no description | String | suggested |
| End year | 4 year2 | no description | Number | suggested |
| End month | 5 month2 | no description | String | optional |
| End day | 6 day2 | no description | String | optional |
| Day first? | df | if 'y' or 'yes', day comes before month | String | optional |