• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia

Template:TwitterSnowflake

  • Template
  • Talk
  • Language
  • Watch
  • View source
Template documentation[view] [edit] [history] [purge]
This template uses Lua:
  • Module:TwitterSnowflake (sandbox)
Related pages
  • Template (talk)
  • Template sandbox
  • Template testcases
  • Template doc
  • Template subpages
  • Module
  • Module sandbox
  • Module testcases
  • Module doc
  • Module subpages

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

Contents

  • 1 Usage
  • 2 Examples
  • 3 Notes
  • 4 See also

Usage

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

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

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

Notes

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

  • Snowflake ID
  • Module:TwitterSnowflake
  • Template:Cite tweet
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.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:TwitterSnowflake&oldid=1151589347"
Last edited on 25 April 2023, at 00:13

Languages

    • فارسی
    • ગુજરાતી
    • 한국어
    • हिन्दी
    • Bahasa Indonesia
    • Íslenska
    • עברית
    • Português
    • Simple English
    • ไทย
    • Türkçe
    • Tiếng Việt
    Wikipedia
    • Wikimedia Foundation
    • Powered by MediaWiki
    • This page was last edited on 25 April 2023, at 00:13 (UTC).
    • Content is available under CC BY-SA 4.0 unless otherwise noted.
    • Privacy policy
    • About Wikipedia
    • Disclaimers
    • Contact Wikipedia
    • Code of Conduct
    • Developers
    • Statistics
    • Cookie statement
    • Terms of Use
    • Desktop