Jump to content

User:Narutolovehinata5/SPP Stub

From Wikipedia, the free encyclopedia

Overview

[edit]

This report lists semi-protected stubs with a duration of at least a week from the time of running. It was generated on the toolserver by TB (talk) 19:18, 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.templatelinks ON tl_from = page_id
WHERE tl_namespace = 10
AND   tl_title = 'Stub'
AND   page_namespace = 0;