Template:Birth date no year/doc: Difference between revisions
(Created page with "{{Documentation subpage}} {{Lua|Module:String}} {{Support|Template:MONTHNAME|Template:Main other}} {{tsh|Bdy}} This template is to be used when the person's year of birth is unknown. If the year is known, please use the {{tl|Birth date and age}} template. == Usage == ; Unnamed parameters for month and day : {{tji|Birth date no year|month of birth|day of birth|additional parameters}} ; Named parameters for month and day : {{tji|Birth date no year|month:month of birth|d...") |
mNo edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
{{Support|Template:MONTHNAME|Template:Main other}} | {{Support|Template:MONTHNAME|Template:Main other}} | ||
{{tsh|Bdy}} | {{tsh|Bdy}} | ||
__NOTOC__ | |||
This template is to be used when the person's year of birth is unknown. If the year is known, please use the {{tl|Birth date and age}} template. | This template is to be used when the person's year of birth is unknown. Using this template rather than simply inserting the date into articles is mostly for ease and formatting. | ||
If the year is known, please use the {{tl|Birth date and age}} template. | |||
== Usage == | == Usage == | ||
Line 40: | Line 43: | ||
: {{tlc|Bdy|month{{=}}2|day{{=}}24}} {{Rarr}} {{Bdy|month=2|day=24}} | : {{tlc|Bdy|month{{=}}2|day{{=}}24}} {{Rarr}} {{Bdy|month=2|day=24}} | ||
: {{tlc|Bdy|month{{=}}2|day{{=}}24|df{{=}}yes}} {{Rarr}} {{Bdy|month=2|day=24|df=yes}} | : {{tlc|Bdy|month{{=}}2|day{{=}}24|df{{=}}yes}} {{Rarr}} {{Bdy|month=2|day=24|df=yes}} | ||
With Missing Parameters: | |||
: {{tlc|Birth date no year}} {{Rarr}} {{Birth date no year}} | |||
: {{tlc|Bdy}} {{Rarr}} {{Bdy}} | |||
== See Also == | == See Also == | ||
Line 48: | Line 55: | ||
<templatedata> | <templatedata> | ||
{ | { | ||
"description": "This template will display a person's birth month and day.", | "description": "This template will display a person's birth month and day. Using this template rather than simply inserting the date into articles is mostly for ease and formatting.", | ||
"params": { | "params": { | ||
"1": { | "1": { | ||
Line 81: | Line 88: | ||
<!-- Categories below this line, please --> | <!-- Categories below this line, please --> | ||
[[Category: | [[Category:Infobox formatting templates]] | ||
}}}}</includeonly> | }}}}</includeonly> |
Latest revision as of 02:16, 20 August 2023
It contains usage information, categories and other content that is not part of the original template page.
|
This template uses Lua: |
Supporting Templates |
This template is to be used when the person's year of birth is unknown. Using this template rather than simply inserting the date into articles is mostly for ease and formatting.
If the year is known, please use the {{Birth date and age}} template.
Usage
- Unnamed parameters for month and day
- {{Birth date no year
|month of birth |day of birth |additional parameters}}
- Named parameters for month and day
- {{Birth date no year
|month=month of birth |day=day of birth |additional parameters}}
- Unnamed parameters for month and day (Using the shortcut)
- {{Bdy
|month of birth |day of birth |additional parameters}}
- Named parameters for month and day (Using the shortcut)
- {{Bdy
|month=month of birth |day=day of birth |additional parameters}}
Additional parameters
The |df=
(day first) parameters indicate the intended date format to display the date before the month. The appropriate parameter should be set to "y" or "yes", e.g. |df=y
or |df=yes
.
The default output of this template is to display the month before the day. This default may not be appropriate for articles about people from parts of the world where the day precedes the month in a date. In such articles the parameter, |df=
, should be set to display the day before the month.
Examples
Unnamed parameters for month and day:
{{Birth date no year|2|24}}
→ February 24{{Birth date no year|2|24|df=yes}}
→ 24 February
Named parameters for month and day:
{{Birth date no year|month=2|day=24}}
→ February 24{{Birth date no year|month=2|day=24|df=yes}}
→ 24 February
Unnamed parameters for month and day (Using shortcut):
{{Bdy|2|24}}
→ February 24{{Bdy|2|24|df=yes}}
→ 24 February
Named parameters for month and day:
{{Bdy|month=2|day=24}}
→ February 24{{Bdy|month=2|day=24|df=yes}}
→ 24 February
With Missing Parameters:
{{Birth date no year}}
→ Must include a valid month Must include a valid day{{Bdy}}
→ Must include a valid month Must include a valid day
See Also
- {{Birth date and age}}
- {{Birth date}}
TemplateData
This template will display a person's birth month and day. Using this template rather than simply inserting the date into articles is mostly for ease and formatting.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Month of birth | 1 month | The month (number) in which the person was born.
| Number | required |
Day of birth | 2 day | The day (number) in which the person was born.
| Number | required |
Day first | df | When set to 'y' or 'yes', the date of birth is output in a DMY format.
| String | optional |