User:Narutolovehinata5/SPP BLP

From Wikipedia, the free encyclopedia
Jump to: navigation, search

Overview[edit]

This report lists semi-protected biographies of living persons with a duration of at least a week from the time of running. It was generated on the toolserver by TB (talk) 19:14, 11 January 2013 (UTC)

Report[edit]


Regenerating[edit]

-- Identify all pages that are semi-protected either indefinitely or for at least 7 days
CREATE VIEW spp AS
SELECT page_id, page_namespace, page_title
FROM enwiki_p.page
INNER JOIN enwiki_p.page_restrictions ON pr_page = page_id
WHERE pr_type = 'edit'
AND   pr_level = 'autoconfirmed'
AND  ( pr_expiry = 'infinity'
OR     str_to_date( pr_expiry, '%Y%m%d%H%i%s' ) > date_add( now(), interval 7 day ) );

-- Semi-protected biographies of living persons
SELECT concat( '*[[', page_title, ']]' )
FROM spp
INNER JOIN enwiki_p.categorylinks ON cl_from = page_id
WHERE cl_to = 'Biography_articles_of_living_people'
AND   page_namespace = 1;