Jump to content

Module:Unsigned/doc: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
This totally has no need to use lua but ...
 
update documentation
Line 1: Line 1:
{{module rating|beta}}
This module processes the timestamp argument for {{tl|Unsigned}} and {{tl|UnsignedIP}}.
This module implements {{t|unsigned}}. It has a few functions:

*<code>main</code> called by {{t|unsigned}}; not intended for broader use
*<code>getTimestamp</code> 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 {{tq|(UTC)}}.
*<code>getUsername</code> gets the username from a string containing a timestamp. It currently assumes that everything besides a timestamp is part of the username

Revision as of 03:46, 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