Difference between revisions of "Template:DateUnpackB/doc"
Jump to navigation
Jump to search
Line 8: | Line 8: | ||
! Condition !! Result | ! Condition !! Result | ||
|- | |- | ||
| len | | len 0 || error | ||
|- | |||
| len 1 || error | |||
|- | |- | ||
| len 2 || If yr is 2 long, Assume numbers, prepend "19" | | len 2 || If yr is 2 long, Assume numbers, prepend "19" | ||
|- | |- | ||
| len | | len 3 || error | ||
|- | |- | ||
| len | | len 4 || Assume numbers, no spc handling needed | ||
|- | |- | ||
| len > | | len > 9 || error | ||
|} | |} | ||
Revision as of 15:59, 7 December 2021
- - -
There is a documentation subpage housing the metadata about parent template: DateUnpackB.
Semi smart
This template assumes a four digit date starting with 19. If it doesn't get that, it makes a bunch of other assumptions that maybe wrong.
Condition | Result |
---|---|
len 0 | error |
len 1 | error |
len 2 | If yr is 2 long, Assume numbers, prepend "19" |
len 3 | error |
len 4 | Assume numbers, no spc handling needed |
len > 9 | error |
Examples
input | output |
---|---|
ca. 1940s | lord knows |
58 | 1958 |
1958 | 1958 |
See Also
Template Data
add a link to year cat and shows a label, routed from DateUnpack with opt=b
Parameter | Description | Type | Status | |
---|---|---|---|---|
Year | yr 1 | 4 digit year
| Date | required |