Log In
T99157
Please fix the content model of these Commons modules
Closed, ResolvedPublic
Assigned To
Krenair
Authored By
SamB
May 14 2015, 11:25 PM
Tags
Wikimedia-Site-requests (Backlog)
Commons (Incoming)
Referenced Files
None
Subscribers
Aklapper
Bawolff
SamB
Tokens
Description
Could someone please clean up the content models of the 16 Commons modules matching listed by the query at http://quarry.wmflabs.org/query/3611​,
use commonswiki_p;SELECT page_title from page where page_namespace = 828 and page_title not like '%/doc' and page_content_model = 'wikitext'
If anyone cares, the page titles are:
(But obviously don't take my word for it!)
Kudos to @Bawolff for writing the initial query (which I modified to show only the one field) and introducing me to the "Quarry" tool.
SamB created this task.
May 14 2015, 11:25 PM
SamB raised the priority of this task from to Needs Triage.
SamB updated the task description. (Show Details)
SamB added projects: Wikimedia-Site-requests, Commons.
SamB added subscribers: SamB, Bawolff.
Restricted Application added a subscriber: Aklapper. · View Herald Transcript
May 14 2015, 11:25 PM
Krenair claimed this task.
May 15 2015, 12:12 AM
Krenair closed this task as Resolved.
May 15 2015, 12:21 AM
$user = User::newFromName( 'Krenair' );$summary = "[[phabricator:T99157|scribunto content model]]";$titles = array( "Category_handler", "Category_handler/blacklist", "Category_handler/config", "Category_handler/data", "Category_handler/shared", "Chart", "Documentation/config", "Effective_protection_level", "List", "Lua_banner", "Message_box", "Message_box/configuration", "Namespace_detect/config", "Namespace_detect/data", "No_globals", "Plotter/DefaultColors" );foreach ( $titles as $title ) { $page = WikiPage::factory( Title::newFromText( 'Module:' . $title ) ); $sc = new ScribuntoContent( $page​->​getContent​()->​getNativeData​() ); $page->doEditContent( $sc, $summary, 0, false, $user, $sc->getDefaultFormat() );}
Seems to have done the trick. Silly imports.
SamB awarded a token.
May 15 2015, 1:43 AM
Log In to Comment
Content licensed under Creative Commons Attribution-ShareAlike 3.0 (CC-BY-SA) unless otherwise noted; code licensed under GNU General Public License (GPL) or other open source licenses. By using this site, you agree to the Terms of Use, Privacy Policy, and Code of Conduct. · Wikimedia Foundation · Privacy Policy · Code of Conduct · Terms of Use · Disclaimer · CC-BY-SA · GPL