Jump to content
Wikipedia The Free Encyclopedia

Template:TwitterSnowflake/sandbox

From Wikipedia, the free encyclopedia
This is the template sandbox page for Template:TwitterSnowflake (diff).
See also the companion subpage for test cases.
Template documentation[view] [edit] [history] [purge]
This template uses Lua:
Related pages

This is a template that wraps and simplifies Module:TwitterSnowflake.

Usage

[edit ]

The template accepts a single positional parameter and returns a timestamp based on the ID passed. The timestamp is by default in the format of "January 1, 2021", but if |format=dmy is passed, it's instead presented as "1 January 2021".

Examples

[edit ]

{{TwitterSnowflake|1345021162959503360}} returns January 1, 2021.

{{TwitterSnowflake|1345021162959503360|format=dmy}} returns 1 January 2021.

Notes

[edit ]

When no date is provided, the date "November 4, 2010" is returned. This also occurs if a number lower than that of a valid snowflake is provided.

See also

[edit ]
The above documentation is transcluded from Template:TwitterSnowflake/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this template.

AltStyle によって変換されたページ (->オリジナル) /