Template:OldStyleDate/doc: Difference between revisions

Jump to navigation Jump to search
m (1 revision imported)
m (→‎See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other and <includeonly>)
Line 26: Line 26:
* {{Tl|OldStyleDateNY}} – for cases that require only the day and month, not the year
* {{Tl|OldStyleDateNY}} – for cases that require only the day and month, not the year
** Example: {{OldStyleDateNY|13 October|2 October}}
** Example: {{OldStyleDateNY|13 October|2 October}}
<includeonly>
<includeonly>{{Sandbox other||
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[Category:Time, date and calendar templates|OldStyleDate]]
[[Category:Time, date and calendar templates|OldStyleDate]]


</includeonly>
}}</includeonly>

Revision as of 17:44, 26 April 2020

Usage

This template is used for displaying a date in both Old Style and New Style, including a discreet link to the article Old Style and New Style dates, in cases where the year is the same in both Styles.

{{OldStyleDate|NS day and month|year|OS day and month}}

If it helps you remember the order of the parameters, you may optionally choose to think of it like this:

{{OldStyleDate|NS day and month|NS year|OS day and month|OS year}}

Note that in this usage the fourth parameter will be ignored when the template is rendered.

Examples

  • Usage: {{OldStyleDate|2 February|1905|20 January}}
    • Result: 2 February [O.S. 20 January] 1905
  • Usage: {{OldStyleDate|February 2|1905|January 20}}
    • Result: February 2 [O.S. January 20] 1905

See also

  • {{OldStyleDateDY}} – for cases where the year is different in the Old Style and the New Style
    • Example: 17 January 1706 [O.S. 6 January 1705]
  • {{OldStyleDateNY}} – for cases that require only the day and month, not the year
    • Example: 13 October [O.S. 2 October]