Module:Unsigned/doc: Difference between revisions
Appearance
Content deleted Content added
HouseBlaster (talk | contribs) update documentation |
HouseBlaster (talk | contribs) . |
||
Line 4: | Line 4: | ||
*<code>main</code> called by {{t|unsigned}}; not intended for broader use |
*<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>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 |
*<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 usegetTimestamp
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.