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
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#invoke:Keppel date|main
<includeonly>{{#invoke:Keppel date|main
|year={{{year|}}}
|year={{{year|}}}
|month={{{month|}}}
|month={{{month|}}}
|day={{{day|}}}
|day={{{day|}}}
|hour={{{hour|}}}
|minute={{{minute|}}}
|second={{{second|}}}
|time={{{time|}}}
|time={{{time|}}}
|year_only={{{year_only|}}}
|month_day_only={{{month_day_only|}}}
|show_ochtday={{{show_ochtday|}}}
|show_time={{{show_time|}}}
|show_sun_sign={{{show_sun_sign|}}}
|1={{{1|}}}
|1={{{1|}}}
}}<noinclude>
}}</includeonly><noinclude>
<templatedata>
<templatedata>
{
{
"params": {
"params": {
"year": {},
"year": {
"month": {},
"label": "Year",
"description": "Date and time to convert",
"day": {},
"time": {}
"example": "2025",
"type": "number"
},
"month": {
"label": "Month",
"description": "Date and time to convert",
"example": "3",
"type": "number"
},
"day": {
"label": "Day",
"description": "Date and time to convert",
"example": "20",
"type": "number"
},
"time": {
"aliases": [
"1"
],
"label": "Time",
"description": "Unix time to convert",
"example": "1741122967",
"type": "number"
},
"year_only": {
"label": "Year only",
"description": "If only the year should be shown",
"type": "string",
"default": "no",
"suggestedvalues": [
"yes",
"no"
]
},
"month_day_only": {
"label": "Month and day only",
"description": "If only the month and day should be shown",
"type": "string",
"suggestedvalues": [
"yes",
"no"
],
"default": "no"
},
"hour": {
"label": "Hour",
"description": "Date and time to convert",
"example": "23",
"type": "number",
"default": "0"
},
"minute": {
"label": "Minute",
"description": "Date and time to convert",
"example": "59",
"default": "0",
"type": "number"
},
"second": {
"label": "Second",
"description": "Date and time to convert",
"example": "59",
"type": "number",
"default": "0"
},
"show_time": {
"label": "Show time",
"description": "If the time should be shown",
"type": "string",
"suggestedvalues": [
"yes",
"no"
],
"default": "no"
},
"show_ochtday": {
"label": "Show ochtday",
"description": "If the ochtday should be shown",
"type": "string",
"suggestedvalues": [
"yes",
"no"
],
"default": "no"
},
"show_sun_sign": {
"label": "Show sun sign",
"description": "If the sun sign should be shown",
"type": "string",
"suggestedvalues": [
"yes",
"no"
],
"default": "no"
}
},
},
"description": "Converts the current (or provided) date to a Keppel date",
"description": "Converts the current (or provided) date to a Keppel date",
"format": "inline"
"format": "inline",
"paramOrder": [
"year",
"month",
"day",
"hour",
"minute",
"second",
"time",
"year_only",
"month_day_only",
"show_ochtday",
"show_time",
"show_sun_sign"
]
}
}
</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>

Latest revision as of 08:45, September 17, 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

Date and time to convert

Example
2025
Numberoptional
Monthmonth

Date and time to convert

Example
3
Numberoptional
Dayday

Date and time to convert

Example
20
Numberoptional
Hourhour

Date and time to convert

Default
0
Example
23
Numberoptional
Minuteminute

Date and time to convert

Default
0
Example
59
Numberoptional
Secondsecond

Date and time to convert

Default
0
Example
59
Numberoptional
Timetime 1

Unix time to convert

Example
1741122967
Numberoptional
Year onlyyear_only

If only the year should be shown

Suggested values
yes no
Default
no
Stringoptional
Month and day onlymonth_day_only

If only the month and day should be shown

Suggested values
yes no
Default
no
Stringoptional
Show ochtdayshow_ochtday

If the ochtday should be shown

Suggested values
yes no
Default
no
Stringoptional
Show timeshow_time

If the time should be shown

Suggested values
yes no
Default
no
Stringoptional
Show sun signshow_sun_sign

If the sun sign should be shown

Suggested values
yes no
Default
no
Stringoptional

Examples

{{Keppel date}}

Liliyogh 22, 1134 LE

{{Keppel date|year_only=yes}}


{{Keppel date|month_day_only=yes}}

Liliyogh 22

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

Ludervinn 17, 1132 LE

{{Keppel date|time=120412050}}

Glausonn 11, 1081 LE

Contents