Jump to content

Module:Unsigned/doc

From Wikipedia, the free encyclopedia
This is the current revision of this page, as edited by HouseBlaster (talk | contribs) at 03:50, 25 May 2025 (dependencies). The present address (URL) is a permanent link to this version.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

This module implements {{unsigned}}. It has a few functions:

  • main called by {{unsigned}}; not intended for broader use
  • getTimestamp find a timestamp from a string. If only a date is found, it returns the date. If only a time is found, it returns the empty string. If a time and a date are both found, it appends (UTC).
  • getUsername gets the username from a string containing a timestamp. It currently assumes that everything besides a timestamp is part of the username.