Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
Fork of
English WikiQuote: new articles the past 35 days
by
Djm-leighpark
This query is marked as a draft
This query has been published
by
Djm-leighpark
.
New articles. on English WikiQuote from the last few weeks. This is optimised for download as a wikitable and is even better when changed to a sortable wikitable by changing class="wikitable" to class="wikitable sortable". The default sort order is date of creation descending. One key use is identifying new articles not associated with a wikidata item. the flags column helps idetifify any already under Prod or VfD so time doesn't have to be wasted looking at those if that is not your purpose. The latest version leverages the current date through the NOW() function and is set to examines new articles from the previous 2 weeks. On eqWQ for an interval of 14 days the on a hot run it its performant at circa 2 s elapsed, however tests indicate a likely step peformance dropoff and possible exponential increases thereafter if that interval is increased, and database load may be also be one of several variable factors of influence. Two lower dates must be the same and could be replaced by a 'YYYYMMDD000000' value if necessary. The effect of changing the upper date is undefined. Articles marked as #SheSaid are also noted. The length shown should now reflect the length at the time the snapshot was taken correcting a bug present prior to Sun, 04 Dec 2022 11:59:55 UTC The 'ọ' flag notes marked for #SheSaid in the 2022 campaign, 'C', 'D', 'P' ,'V' flags indicated associated page is in the Copyvio, speedy Delete, Proposed deletion, or Votes for deletion process that might lead to deletion. (Introduced 26 December 2022 20:51 UTC) The 'N' flag indicates in the Category "Articles with no corresponding English Wikipedia article" (Fixed 'Db' template on 20230101
Toggle Highlighting
SQL
SELECT CONCAT('[[',REPLACE(page_title,'_',' '),']]') AS "New articles in a period", actor_name AS "Creator", CONCAT( MID(rev_timestamp,1,4),'-',MID(rev_timestamp,5,2),'-',MID(rev_timestamp,7,2),' ', MID(rev_timestamp,9,2),':',MID(rev_timestamp,11,2),':',MID(rev_timestamp,13,2)) AS "Date created", /* IF(comment_text RLIKE '.*#[Ss]he[Ss]aid.*','#SheSaid',NULL) AS "#SheSaid", NotYetWorking */ IF(ISNULL(pp_value),pp_value,CONCAT('[[:d:',pp_value,']]')) AS "Wikidata item" FROM revision JOIN page ON rev_page=page_id JOIN actor_revision ON rev_actor=actor_id LEFT JOIN page_props ON pp_page = page_id AND pp_propname = 'wikibase_item' /* LEFT JOIN comment_revision ON rev_comment_id=comment_id NotYetWorking */ WHERE rev_id in (SELECT rev_id FROM revision WHERE rev_page in (SELECT rev_page FROM revision LEFT JOIN page ON rev_page=page_id WHERE /* For specific dates used e.g. rev_timestamp BETWEEN '20221101000000' AND '20221201000000' */ rev_timestamp BETWEEN CONCAT(DATE_FORMAT(NOW()-INTERVAL 14 DAY,'%Y%m%d'),'000000') AND CONCAT(DATE_FORMAT(NOW()+INTERVAL 1 DAY,'%Y%m%d'),'000000') AND page_namespace = 0 AND page_is_redirect = 0 ) GROUP BY rev_page HAVING MIN(rev_timestamp) >= CONCAT(DATE_FORMAT(NEW()-INTERVAL 14 day,'%Y%m%d'),'000000') /* Must match lower interval above1 */ ) ORDER BY rev_timestamp ASC;
By running queries you agree to the
Cloud Services Terms of Use
and you irrevocably agree to release your SQL under
CC0 License
.
Submit Query
Stop Query
All SQL code is licensed under
CC0 License
.
Checking query status...