Jump to content

User talk:MMABot/v3.0 Discussion.

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

MMABot v3.0 Task Proposals and Notes

This section, and its subsections, will discuss possible tasks for MMABot v3.0 and notes regarding the overall function of this version of the bot. MMABot v3.0 tasks will be performed separately from v2.0 (and v1.0) tasks. MMABot v3.0 is focused on standardizing results in MMA event articles.

Justification for v3.0

A discussion within the MMA WikiProject resulted in a consensus to use a standard table for displaying results in MMA event articles. MMABot counted 590 MMA event articles through Category:Years in mixed martial arts. There already exists a number of different formats for displaying event results and standardizing the formats across all nearly 600 articles is difficult to accomplish manually, even by a team of editors. This version of the bot will serve to simplify the tasks of this standardization where it is able to do so.

Notes

This section serves as a temporary holding place for notes as I try to determine if v3.0 is really possible. Comments from others are welcome.

  • Section Headers: Of the 579 event articles examined by MMABot 83% (480) of them have a Results header (==Results== or == Results ==). About 3% (22) of the event articles have a third level results header (===Results===). This can help identify where the event results begin and where MMABot should start its work.
  • {{MMAevent}} Template and Wikitables: Seven articles already make use of the MMAevent template. Seven more articles use the same format, but don't use the template (these can be converted to use the templates by MMABot). Six articles use wikitables with the same headers as 2012 in Super Fight League which should easily convertable. Nine articles use wikitables with the same headers as The Ultimate Fighter: Team Carwin vs. Team Nelson Finale which would be easily convertable. This leaves about 550 articles with potentially text based, but still somewhat structured, results (or some other format I didn't notice).
  • A list of articles categorized based on the above groupings can be found at User:MMABot/Event article list.

Handling of flags in results

I honestly do not know how MMABot should handle this case, so feedback is highly desired. I see two options:

  1. Do not include flags following edits: When MMABot edits an article to adjust or reformat event results, it will not include flags in the final results. This would comply with Wikipedia_talk:WikiProject_Mixed_martial_arts/Archive_8#RFC_on_WP:MMA.27s_use_of_Flag_Icons_in_relation_to_MOS:FLAGthe most recent RfC at the MMA WikiProject and some interpretations of MOS:FLAG.
  2. Include flags where they exist: When MMABot edits an article to adjust or reformat event results, it will include any existing flags in the final results. This would leave the bot relatively neutral in a controversial situation.

Personally, unless there is an clear reason to choose option 1, I'll probably do development with option 2 in mind. It will allow MMABot the versatility to include flags should that be allowed in the future. Should flags not be desired, I should be able to adjust MMABot to simply not perform the task of moving flags over. Again, other opinions are welcome. --TreyGeek (talk) 01:55, 16 January 2013 (UTC)

  •  Done I created a separate function that removes flagicons from the results. Should there be a desire to keep the existing flagicons, I can easily cause this function to exit early without touching flagicons. --TreyGeek (talk) 03:06, 26 January 2013 (UTC)

Event articles already using the new templates

When MMABot encounters an MMA event article that already makes use of the {{MMAevent}} templates it will check that bouts in the table are using the bout template (soon to be coming). If not, it will convert the table rows to use the bout templates. --TreyGeek (talk) 01:55, 16 January 2013 (UTC)

 Done If an article is using the {{MMAevent}} template but not the bout template, the table rows containing the bouts are converted to use the bout template. --TreyGeek (talk) 03:28, 8 February 2013 (UTC)

Event articles with correct table format, but not the template

When MMABot encounters an MMA event article that has the correct table format but isn't using the {{MMAevent}} templates, it remove the formatting and insert the template in its place. It will also convert the table rows to use the bout templates. --TreyGeek (talk) 01:55, 16 January 2013 (UTC)

 Done This task is completed. --TreyGeek (talk) 20:41, 9 February 2013 (UTC)

Event articles with tables, but not correct format

When MMABot encounters an MMA event article that puts the results in a table format, but in the incorrect format, it will attempt to reformat the table using the {{MMAevent}} and bout templates. --TreyGeek (talk) 01:55, 16 January 2013 (UTC)

 Doing... Or at least trying. I figure this is a good place to start without jumping in the deep end (dealing with textual results). --TreyGeek (talk) 02:09, 17 January 2013 (UTC)
 Partly done Sorta. This works for what I refer to as "SFL style" event tables and with the results table being the first table in the article. I will need to do some adjustments to handle multiple result tables in an article and having wikitables that are not results tables. --TreyGeek (talk) 02:07, 22 January 2013 (UTC)
 Done for "SFL style" event tables. It handles multiple results tables in a single article, such as omnibus articles. --TreyGeek (talk) 03:06, 26 January 2013 (UTC)
 Not done Handle the "TUF style" style results tables. --TreyGeek (talk) 03:06, 26 January 2013 (UTC)
 Done for "TUF style" events tables. --TreyGeek (talk) 02:56, 6 February 2013 (UTC)

Event articles in textual form

When MMABot encounters an MMA event article that puts the results in a textual format (most often the case, it will attempt to reformat the results using the {{MMAevent}} and bout templates. --TreyGeek (talk) 01:55, 16 January 2013 (UTC)

 Doing... The initial implementation is done and works with the first article I've tried it on in the sandbox. Will need to do more tests on textual articles because there will be corner cases that need to be worked out. --TreyGeek (talk) 03:37, 28 January 2013 (UTC)
 Done I've tested the bot on a number of different articles with textual formats. It is either parsing and converting the events just fine or throwing me a warning it can't handle one part or another of the results and aborting the edit run. --TreyGeek (talk) 04:32, 2 February 2013 (UTC)

List of skipped articles

If MMABot skips an article because it cannot perform the correct operations on it (for whatever reason) it should, at minimum, notify the operator with a console message. It may also edit an article in it's user space (ie MMABot/Events_skipped) or in the MMA WikiProject space with a list of those articles it skips. More details and implementation of this task will be left for last. --TreyGeek (talk) 19:14, 16 January 2013 (UTC)

 Not done I'm electing to make this a manual process on my own. MMABot will skip certain articles and notify me in the console it runs in. Based upon MMA WikiProject participants I'll compile a list of articles it skips (and possibly a reason why) in a special section on this talk page. After the edit run is completed, I'll manually edit those articles to fix them. Others are welcome to monitor this talk page and manually fix those articles as well. --TreyGeek (talk) 02:56, 6 February 2013 (UTC)

Put bouts in 'correct' order

After constructing the results table with the new templates, MMABot will attempt to put the bouts in the 'correct' order. Specifically, the main event will be at the top of the table and the opening bout will be at the bottom. In general, it will either already be in this order or the table will be in reversed order (main event at the bottom, in which MMABot will flip the order of the table). In the event MMABot cannot tell which order the table is in (likely to happen on single card events), then it will display a message to the operator who will either manually verify/edit the article or who will place the article on a list for others to verify/edit later. --TreyGeek (talk) 02:45, 18 January 2013 (UTC)

 Doing... This works for events with a 'two' card layout (main and preliminary). I won't mark this completed until more testing is done. --TreyGeek (talk) 02:07, 22 January 2013 (UTC)
ClockC Works on three card layouts where one card is clearly marked "main". Will continue to watch the behavior as I do more testing for the tasks above. --TreyGeek (talk) 03:37, 28 January 2013 (UTC)
 Done Seems to work in all the testing thus far. It will put the bouts in the correct order if it can tell the order. Otherwise, it leave me a console message telling me it can't and leaves the card order alone and each card with its headers. A manual review of these article will need to be conducted afterwards. --TreyGeek (talk) 03:28, 8 February 2013 (UTC)

Strip coloring templates from tables

Some existing results tables include {{yes2}}, {{no2}}, {{draw}}, and {{nocontest}} templates to color in cells of the table. This is unneeded and/or unwanted in the new style tables. MMABot should strip these templates from the results. --03:06, 26 January 2013 (UTC)

 Done Just as with flagicons, this is handled in its own function that can be easily aborted without changes. I don't think it would be desirable to do so since so few tables utilize these templates. --TreyGeek (talk) 03:06, 26 January 2013 (UTC)

MMABot will check in the results table each wikilink (usually for fighters) to verify an article exists. If an article does not exist (IOW, it's a red-link), MMABot will remove the wikilink. --TreyGeek (talk) 05:50, 28 January 2013 (UTC)

 Done Just as with the ancillary functions above, this is handled in its own function that can be easily aborted. This task would generally comply with MMABot v2.0, task 7 in delinking red-linked fighters and events in individual fighter record tables. --TreyGeek (talk) 05:50, 28 January 2013 (UTC)

Methods to lower-case

Method details, text inside parenthesis, as per MOS:CAPS and WP:MMA will be converted to lower-case. This task would comply with MMABot v1.0, task 2. --TreyGeek (talk) 04:32, 2 February 2013 (UTC)

 Done With certain exceptions that I am aware of (such as proper nouns and athletic commission abbreviation) the text in between parentheses will be converted to lower case. --TreyGeek (talk) 04:32, 2 February 2013 (UTC)