Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
You must create an account or log in to edit.

Template:Keppel date: Difference between revisions

Template page
Content deleted Content added
No edit summary
Tag: 2017 source edit
No edit summary
Tag: 2017 source edit
Line 4: Line 4:
|day={{{day|}}}
|day={{{day|}}}
|time={{{time|}}}
|time={{{time|}}}
|year_only={{{year_only|}}}
|month_day_only={{{month_day_only|}}}
|1={{{1|}}}
|1={{{1|}}}
}}</includeonly><noinclude>
}}</includeonly><noinclude>
Line 35: Line 37:
"example": "1741122967",
"example": "1741122967",
"type": "number"
"type": "number"
},
"year_only": {
"label": "Year only",
"description": "If only the year should be shown",
"type": "boolean",
"default": "false"
},
"month_day_only": {
"label": "Month and day only",
"description": "If only the month and day should be shown",
"type": "boolean",
"default": "false"
}
}
},
},
Line 41: Line 55:
}
}
</templatedata>
</templatedata>

==Examples==
<pre>{{Keppel date}}</pre>
{{Keppel date}}

<pre>{{Keppel date|year_only=yes}}</pre>
{{Keppel date|year_only=yes}}

<pre>{{Keppel date|month_day_only=yes}}</pre>
{{Keppel date|month_day_only=yes}}

<pre>{{Keppel date|year=2024|month=10|day=02}}</pre>
{{Keppel date|year=2024|month=10|day=02}}

<pre>{{Keppel date|time=120412050}}</pre>
{{Keppel date|time=120412050}}
</noinclude>
</noinclude>

Revision as of 21:19, March 4, 2025

Converts the current (or provided) date to a Keppel date

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Yearyear

Year (in conjunction with month and day) to convert

Example
2025
Numberoptional
Monthmonth

Month (in conjunction with year and day) to convert

Example
03
Numberoptional
Dayday

Day (in conjunction with year and month) to convert

Example
04
Numberoptional
Timetime 1

Unix time to convert

Example
1741122967
Numberoptional
Year onlyyear_only

If only the year should be shown

Default
false
Booleanoptional
Month and day onlymonth_day_only

If only the month and day should be shown

Default
false
Booleanoptional

Examples

{{Keppel date}}

Liliyogh 23, 1134 LE

{{Keppel date|year_only=yes}}


{{Keppel date|month_day_only=yes}}

Liliyogh 23

{{Keppel date|year=2024|month=10|day=02}}

Ludervinn 17, 1132 LE

{{Keppel date|time=120412050}}

Glausonn 11, 1081 LE

Contents