User:ScottMHoward/LDRbot

LDRbot (meaning List-Defined References bot) is, in fact, not a bot at all. LDRbot generates coding on an external server that is manually processed by Scott M. Howard within Wikipedia. The LDRbot program is not a Wikipedia-authorized bot. Its only function is to retrieve wikitext from Wikipedia and externally convert the coding as defined below. No edits are made to Wikipedia automatically.

If you wish to report a bug or have any comments, suggestions or complaints about LDRbot, please begin a discussion on the author's talk page.

Tasks performed
LDRbot accomplishes the following tasks (all tasks are optional):
 * Converts an article's referencing system to List-Defined References (LDR)
 * Creates names for unnamed references
 * Uses an available URL in the style [domain][-#]
 * Uses the style ref[#] if no URL is available
 * Converts all reference calls to the system (optional)
 * Combines back-to-back references to a single tag
 * Codes all references to include name="" (with quotes)
 * Removes all line-breaks within single references
 * Consolidates all commented-out references to a single section of the
 * Applies 30em to all templates


 * Converts all dates found within an article that include a day, month, and year to any of the 5 date formats accepted by WP:DATEFORMAT:
 * MMMM D, YYYY; "September 8, 1982" (choice)
 * D MMMM YYYY; "8 September 1982" (choice)
 * MMM D, YYYY; "Sep 8, 1982" (choice)
 * D MMM YYYY; "8 Sep 1982" (choice)
 * YYYY-MM-DD; "1982-09-08" (choice)
 * Ignores dates within the (option)


 * Converts the following &amp;amp; codes to their respective characters:
 * &amp;ndash; to –
 * &amp;mdash; to <tt>&mdash;</tt>


 * Converts all award template redirects to and
 * Converts all <tt>&lt;br&gt;</tt> tags to <tt>&lt;br /&gt;</tt>

Current known bugs

 * Should not work with references which have a <tt>group</tt> parameter defined. (untested)
 * Should not work with articles which have more than one (untested)
 * Will combine further than the template's 5-reference limit.
 * Date conversion does not ignore filenames or other items which must have a static-formatted dates.
 * Date conversion is not limited to dates within references; <tt>url</tt> and <tt>title</tt>, for example, are modified as well.
 * Date conversion ignores short dates; will not convert "September 8" to "Sep 8" or "Sep 8" to "8 Sep", etc.

Rev. 1

 * Creation: Implements LDR, Converts references to (optional), performs minor <tt>&amp;amp;</tt> conversions.

Rev. 2

 * Added: Now converts award template redirects to and
 * Modified: →
 * Modified: <tt>&amp;amp;</tt> code conversion is now optional
 * Bugfix: Now combines ... into

Rev. 3

 * Bugfix: Now ignores <tt>&amp;nbsp;</tt> when converting <tt>&amp;amp;</tt> codes
 * Bugfix: Now ignores all references not found in the current that are commented out

Rev. 4

 * Bugfix: Now ignores <tt>&amp;#124;</tt> ('&#124;'), <tt>&amp;#93;</tt> ('&#93;') and <tt>&amp;sect</tt> ('&sect;') when converting &amp;amp; codes.

Rev. 5

 * Remove: No longer converts most <tt>&amp;amp;</tt> codes--too problematic. Only converts <tt>&amp;ndash;</tt> and <tt>&amp;mdash;</tt> to <tt>–</tt> and <tt>&mdash;</tt>, respectively.

Rev. 6

 * Added: Now converts all <tt>&lt;br&gt;</tt> tags to <tt>&lt;br /&gt;</tt>.

Rev. 7

 * Added: Now converts all dates which include a month, day, and year within an article to any of the five formats found at WP:DATEFORMAT with an option to ignore dates within the.