Jump to content

Module:Unsigned/doc: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
.
dependencies
 
Line 1: Line 1:
{{module rating|beta}}
{{module rating|beta}}
{{Lua|Module:Arguments|Module:IPAddress}}
This module implements {{t|unsigned}}. It has a few functions:
This module implements {{t|unsigned}}. It has a few functions:



Latest revision as of 03:50, 25 May 2025

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.