Wikipedia:Articles for improvement/Accomplishments/row

class="wikitable sortable"
Week beginningArticleOld revisionNew revision{{abbr|qci|Number of quality-class improvements}}EditsEditors{{abbr|Reg|Registered editors}}{{abbr|IP|IP editors}}Bots{{abbr|Reverts|Edits with a summary that explicitly identifies it as a revert}}{{abbr|P±|Difference in prose, in characters}}{{abbr|P×|Relative expansion of prose}}{{abbr|S±|Difference in size, in bytes}}{{abbr|S×|Relative expansion of size}}
{{#if:{{{week
}} | {{{week|}}} | {{{YYYY}}}/{{{WW}}} – dd Mmm yy{{#time:d M y|1 December {{{YYYY}}} - {{#time:w|1 December {{{YYYY}}} -1 day}} days - {{#time:W|1 December {{{YYYY}}} - 1 week}} weeks + {{#expr:{{{WW}}}-1}} weeks}} }}

|{{{article

| {{icon|{{{oldclass}}}}} {{#if:{{{oldid|1}}}|{{oldid|{{{article|{{delink|{{Wikipedia:Articles for improvement/{{{YYYY|2014}}}/{{{WW|1}}}/1}}}}}}}|{{{oldid|0}}}|{{{olddate|dd Mmm yy}}}}}}}

| {{icon|{{{newclass}}}}} {{#if:{{{newid|1}}}|{{oldid|{{{article|{{delink|{{Wikipedia:Articles for improvement/{{{YYYY|2014}}}/{{{WW|1}}}/1}}}}}}}|{{{newid|1}}}|{{{newdate|dd Mmm yy}}}}}}}

| {{{qci|{{#iferror:{{#expr:{{#switch:{{lc:{{{newclass}}}}}|stub|dab|disambig|redirect=1|start=2|c=3|b=4|ga=5|a=6|fa=7|na}}-{{#switch:{{lc:{{{oldclass}}}}}|stub|dab|disambig|redirect=1|start=2|c=3|b=4|ga=5|a=6|fa=7|na}}}}}} }}}

| {{ntsh|{{{edits|1}}}}} {{#if:{{{edits|1}}}|{{Diff|{{{article|{{delink|{{Wikipedia:Articles for improvement/{{{YYYY|2014}}}/{{{WW|1}}}/1}}}}}}}|{{{newid|1}}}|{{{oldid|0}}}|{{{edits}}} edits|diffonly=yes}}|}}

| {{{editors}}}

| {{#iferror:{{#expr:{{{editors}}}-{{{IPs}}}-{{{bots}}}}}}}

| {{{IPs}}}

| {{{bots}}}

| {{{reverts}}}

|style="text-align:right;"| {{#ifeq:{{{prose_before|x}}}{{{prose_after|x}}}|xx||{{#iferror:{{#ifexpr:{{{prose_after|}}}-{{{prose_before|}}}>0|+}}{{formatnum:{{#expr:{{{prose_after|}}}-{{{prose_before|}}}}}}}}}}}

|style="text-align:right;"| {{#ifeq:{{{prose_before|x}}}{{{prose_after|x}}}|xx||{{#iferror:{{#ifexpr:{{{prose_after|}}}-{{{prose_before|}}}>0|{{formatnum:{{#expr:{{{prose_after|}}}/{{{prose_before|}}} round 1}}}}×|-{{formatnum:{{#expr:{{{prose_before|}}}/{{{prose_after|}}} round 1}}}}× }}}}}}

|style="text-align:right;"| {{#ifeq:{{{size_before|x}}}{{{size_after|x}}}|xx||{{#iferror:{{#ifexpr:{{{size_after|}}}-{{{size_before|}}}>0|+}}{{formatnum:{{#expr:{{{size_after|}}}-{{{size_before|}}}}}}}}}}}

|style="text-align:right;"| {{#ifeq:{{{size_before|x}}}{{{size_after|x}}}|xx||{{#iferror:{{formatnum:{{#expr:{{{size_after|}}}/{{{size_before|}}} round 1}}}}×}}}}

|}

{{documentation|content=Create a row for the WP:Articles for improvement/Accomplishments table using the following code:

{{Wikipedia:Today's articles for improvement/Accomplishments/row

|YYYY =

|WW =

|oldid =

|olddate =

|oldclass =

|newid =

|newdate =

|newclass =

|edits =

|editors =

|IPs =

|bots =

|reverts =

|prose_before =

|prose_after =

|size_before =

|size_after =

}}

Parameters

  • YYYY and WW: Year and week number, respectively, of when the article appeared as that week's TAFI article
  • oldid: Revision ID of the last version before the {{tlf|TAFI}} banner was placed
  • olddate: Date of that version, in the format d Mmm yy
  • oldclass: Quality class of that version (e.g. stub, start, C, etc)
  • newid: Revision ID of the last version before the {{tlf|TAFI}} banner was removed
  • newdate: Date of that version, in the format d Mmm yy
  • newclass: Quality class of that version (stub, start, C, etc)
  • edits: Number of edits between the old version and new version, excluding placement and removal of the {{tlf|TAFI}} banner
  • editors: Total number of unique editors (including IPs and bots) that contributed those edits
  • IPs: Number of unique IP editors that contributed to those edits
  • bots: Number of unique bots that contributed to those edits
  • reverts: Number of those edits with a summary that explicitly identifies it as a revert ("Undid revision ..." or "Reverted ..." or similar)
  • prose_before: Characters of prose in the last version before the {{tlf|TAFI}} banner was placed
  • prose_after: Characters of prose in the last version before the {{tlf|TAFI}} banner was removed
  • size_before: Size in bytes of the last version before the {{tlf|TAFI}} banner was placed
  • size_after: Size in bytes of the last version before the {{tlf|TAFI}} banner was removed

=Deprecated parameters=

  • week: Year/week/date in the format YYYY/WW – d Mmm yy → Use YYYY and WW instead, the start date will be automatically calculated
  • article: Exact title of article; do not wikilink → Use YYYY and WW instead, the article name will be automatically derived
  • qci: Number of quality class improvements (e.g. start→C=1, stub→C=2) → This will be automatically calculated from the oldclass and newclass values

Instructions

For each week, fill out the template to add a row to the table.

  • {{para|YYYY}} is the year
  • {{para|WW}} is the week number
  • The old revision is the last version of the article before {{tl|TAFI}} was added – can be found by browsing in the article's history tab for an edit summary of "Adding Today's articles for improvement tag" or similar, and the clicking on the time-date stamp of the previous edit. This will open up the old version of the article.
  • {{para|oldid}} is the old version's revision ID – the number in the URL that appears after &oldid= when the old version is open
  • {{para|olddate}} is the date of the old version – as listed in the history tab, or if the old version is open, the "last edited" date in the pink box at the top
  • {{para|oldcass}} is the quality class of the old version, assessed in accordance with WP:TAFIA (may be different to other wikiprojects) – should be in the {{tl|Former TAFI}} banner on the article's talk page. If not, the old version needs to be assessed per WP:TAFIA, and the assessment / B-class checklist filled out in the {{tl|Former TAFI}} template.
  • {{para|prose_before}} is the number of characters of prose in the old version of the article – counted using WP:Did you know/DYKcheck (or similar).
  • {{para|size_before}} is the size of the old version, in bytes, as listed in the history tab
  • The new revision is the last version of the article before {{tl|TAFI}} was removed – can be found by browsing in the article's history tab for an edit summary of "Rm {{TAFI}} - Week is over" or similar, and the clicking on the time-date stamp of the previous edit. This will open up the new version of the article (at the end of its week of improvements)
  • {{para|newid}} is the new version's revision ID – the number in the URL that appears after &oldid= when the new version is open
  • {{para|newdate}} is the date of the new version – as listed in the history tab, or if the new version is open, the "last edited" date in the pink box at the top
  • {{para|newcass}} is the quality class of the new version, assessed in accordance with WP:TAFIA (may be different to other wikiprojects) – should be in the {{tl|Former TAFI}} banner on the article's talk page. If not, the new version needs to be assessed per WP:TAFIA, and the assessment / B-class checklist filled out in the {{tl|Former TAFI}} template.
  • {{para|prose_after}} is the number of characters of prose in the new version of the article – counted using WP:Did you know/DYKcheck (or similar).
  • {{para|size_after}} is the size of the new version, in bytes, as listed in the history tab
  • {{para|edits}} is the number of edits that occurred excluding the edits that added and removed the TAFI banner. The recommended method for this and the subsequent parameters is:
  • # Make sure all TAFI edits are visible in the history tab view – click on higher numbers 100, 250, 500 at the end of the line "(newest {{!}} oldest) View (newer 50 {{!}} older 50) (20 {{!}} 50 {{!}} 100 {{!}} 250 {{!}} 500)" above/below the list of edits if necessary.
  • # Copy the relevant rows – everything in between but excluding the edits that added and removed the TAFI banner
  • # Paste, as plain text, into a spreadsheet program such as MS Excel
  • # Look at the total number of rows – this is the number for {{para|edits}}
  • # Use the "Text to Columns" function to strip out everything but the editors' names/IP adresses
  • # Use the "Remove Duplicates" function to find the number of unique editors – this is the number for {{para|editors}}
  • # Count the number of IP adresses – this is the number for {{para|IPs}}
  • # Count the number of bots, which have usernames typically eding in "bot" (ie AnomieBOT) – this is the number for {{para|bots}}
  • At the history tab, scan through for and count the number of edit summaries that explicitly identify the edit as a revert – i.e. includes the words "revert", "rvt" "undid", "restored revision", or similar. The number of these explicit reverts is the number for {{para|reverts}}

Note that the older rows were done as a simple wikitable, without the automation the above template supplies. Note also that each template should start on exactly the next line following the previous, ie

...

}}

{{Wikipedia:Today's articles for improvement/Accomplishments/row

...

otherwise the extra lines will appear as extra spacing in the table cells.

}}