Template:Systime: Difference between revisions

From Post-Self
m (Implement 'onlyinclude'.)
m (Re-apply 'includeonly'.)
Line 1: Line 1:
<onlyinclude><span title="{{#invoke: Systime | toTimestamp | year = {{{1|}}} | month = {{{2|}}} | day = {{{3|}}} | hour = {{{4|}}} | min = {{{5|}}} | sec = {{{6|}}} }}" style="text-decoration: underline; text-decoration-style: dotted;">{{#invoke: Systime | toSystime | year = {{{1|}}} | month = {{{2|}}} | day = {{{3|}}} | hour = {{{4|}}} | min = {{{5|}}} | sec = {{{6|}}} }}</span></onlyinclude>
<includeonly><onlyinclude><span title="{{#invoke: Systime | toTimestamp | year = {{{1|}}} | month = {{{2|}}} | day = {{{3|}}} | hour = {{{4|}}} | min = {{{5|}}} | sec = {{{6|}}} }}" style="text-decoration: underline; text-decoration-style: dotted;">{{#invoke: Systime | toSystime | year = {{{1|}}} | month = {{{2|}}} | day = {{{3|}}} | hour = {{{4|}}} | min = {{{5|}}} | sec = {{{6|}}} }}</span></onlyinclude></includeonly>


Renders a Systime timestamp with hovertext displaying the calendar timestamp.
Renders a Systime timestamp with hovertext displaying the calendar timestamp.

Revision as of 18:28, 3 February 2024


Renders a Systime timestamp with hovertext displaying the calendar timestamp.

Usage

The template accepts positional arguments for year, month, day, hour, minute, and second.

{{ Systime | <year> | <month> | <day> | <hour> | <minute> | <second> }}

  • At minimum, the template must be provided with the year.
  • The template requires both the month and the day to display the day of the year.
  • The template will only display fractional days if the hour is defined.
  • The minute and second arguments are entirely optional.

Example

{{Systime|2399|12|31|23|45}}


275+365.99