User:Monkbot/task 17: remove replace deprecated last-author-amp params

The new version of the Module:Citation/CS1 suite deprecates last-author-amp and lastauthoramp because these two parameters style all name lists (author, contributor, editor, interviewer, and translator) even when there is no author name-list. Because of this change, name-list-format will also be deprecated in favor of a new parameter, name-list-style, which will accept a variety of keywords.

description
last-author-amp and lastauthoramp accept a limited set of keywords that control the rendering of all name-lists in a cs1|2 citation template. The keywords that concern this task are:

These deprecated parameters with any of these keywords as assigned values will be converted to amp.

name-list-format accepts only the single keyword. These parameters will be converted to vanc.

last-author-amp, lastauthoramp, and name-list-format are styling parameters that, in the ideal world, should be included in every cs1|2 template where it makes sense to have them. When it does not make sense to have these parameters, task 17 will delete them:
 * last-author-amp, lastauthoramp will be deleted when:
 * the parameter does not have an assigned value
 * the no name-list in a cs1|2 template has more than one name
 * name-list-format will be deleted when
 * the parameter does not have an assigned value
 * the cs1|2 template does not an author name-list and does not have an editor name list
 * the cs1|2 template uses either of vauthors or veditors (with assigned value)

Templates that contain an &lt;html comment> are skipped.

ancillary tasks
Task 17 deletes all empty parameters from templates that are repaired. url-status with or without assigned value is deleted as pointless when archive-url and archive-date are empty or missing. Also deletes y which is pointlessly and incorrectly added by no-longer-maintained user-script WP:REFILL.

This task does not do awb general fixes.

edit summaries
Task 17 writes an edit summary message that tallies the number of replacements, the number of deletions, and an indication of the parameter's usage in the article. The message has several forms: The edit summaries for name-list-format are similar except that the lead-in text reads: When task 17 makes both fixes, the name-list-format summary is concatenated onto the end of the last-author-amp summary.
 * replace deprecated: |last-author-amp= (&lt;replace count>× replaced; usage: &lt;replace count> of &lt;eligible count>);
 * delete deprecated: |last-author-amp= (&lt;delete count>× deleted; usage: &lt;replace count> of &lt;eligible count>);
 * replace / delete deprecated: |last-author-amp= (&lt;replace count>× replaced; &lt;delete count>× deleted; usage: &lt;replace count> of &lt;eligible count>);
 * to-be-deprecated: |name-list-format=

Definitions:
 * &lt;replace count> – the number of parameters that have been replaced with the new parameter name
 * &lt;delete count> – the number of parameters that have been deleted
 * &lt;eligible count> – the number of cs1|2 templates that are eligible to use the parameter (count before any replacements/deletions)

When task 17 deletes empty parameters, it appends 'empty parameters removed;' to the end of the edit summary.

The edit summary has a link to this page.