Page MenuHomePhabricator

Script option to put "original table row" into the candidate page
Closed, ResolvedPublicDesign

Description

To allow comparison against the original information when reviewing the new pages, we should have an "original table row" section, like in https://en.wikipedia.org/wiki/Wikipedia:Reliable_sources/Perennial_sources/all/CNET

We can do this as a command line option to the script, so we can generate pages with this debug information first, then remove it and re-run. Of course, this would mean that either:

  1. Manual editing would have to wait until automatic updates are completely done or
  2. We have a separate way to remove this. Should be easy with HTML comments? <!-- RSP_DEBUG_START --> some debug thing <!-- RSP_DEBUG_END -->

Event Timeline

Audiodude triaged this task as Medium priority.

Good idea; makes verification during a transition period much easier. The whole copied table row (section header included) should be within the scope of a div with a class named on it (e.g., rsp-row-copy), and mentioned in styles.css as display:inline-block (or nothing). Then, when we think it is verified, we can just set display:none in styles.css, and they will disappear in all 500 source subpages. Actually removing the wikicode can then take place at our leisure.

Oops, this was already done and is already in the currently generated demo pages!

I'll keep this open to implement your comment @Mathglot, great idea. In fact, I'll take it a step further. Let's add a class .rsp-debug to all things we don't need in the final page that would be helpful for debugging.