Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
Fork of
Transclusion count of latest edited pages (nicely formatted)
by
Jack who built the house
This query is marked as a draft
This query has been published
by
Jack who built the house
.
Toggle Highlighting
SQL
set @interval = 24; -- in hours use ruwiki_p; select date_format(rc_timestamp, '%Y‑%m‑%d %H:%i:%s') as Edit_date, case when rc_namespace = 10 then concat('Шаблон:', replace(rc_title, "_", " ")) when rc_namespace = 828 then concat('Модуль:', replace(rc_title, "_", " ")) when rc_namespace = 4 then concat('Википедия:', replace(rc_title, "_", " ")) when rc_namespace = 104 then concat('Проект:', replace(rc_title, "_", " ")) when rc_namespace = 100 then concat('Портал:', replace(rc_title, "_", " ")) when rc_namespace = 2 then concat('Участник:', replace(rc_title, "_", " ")) when rc_namespace = 0 then replace(rc_title, "_", " ") else concat('{{ns:', rc_namespace, '}}:', replace(rc_title, "_", " ")) end as Page_name, rc_user_text as User_name, if(rc_bot, "Yes", "No") as Is_bot, rc_comment as Edit_summary, ( select count(*) from templatelinks where templatelinks.tl_title = recentchanges.rc_title and templatelinks.tl_namespace = recentchanges.rc_namespace ) as Transclusion_count from recentchanges where (rc_type = 0 or rc_type = 1) -- edit or new and rc_timestamp > now() - interval @interval hour having Transclusion_count > 2000 order by Transclusion_count desc
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...