CINXE.COM

User:Lucas Werkmeister/QuickCategories - Meta

<!DOCTYPE html> <html class="client-nojs vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-sticky-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-1 vector-feature-night-mode-disabled skin-theme-clientpref-day vector-toc-available" lang="en" dir="ltr"> <head> <meta charset="UTF-8"> <title>User:Lucas Werkmeister/QuickCategories - Meta</title> <script>(function(){var className="client-js vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-sticky-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-1 vector-feature-night-mode-disabled skin-theme-clientpref-day vector-toc-available";var cookie=document.cookie.match(/(?:^|; )metawikimwclientpreferences=([^;]+)/);if(cookie){cookie[1].split('%2C').forEach(function(pref){className=className.replace(new RegExp('(^| )'+pref.replace(/-clientpref-\w+$|[^\w-]+/g,'')+'-clientpref-\\w+( |$)'),'$1'+pref+'$2');});}document.documentElement.className=className;}());RLCONF={"wgBreakFrames":false,"wgSeparatorTransformTable":["",""],"wgDigitTransformTable":["",""],"wgDefaultDateFormat": "dmy","wgMonthNames":["","January","February","March","April","May","June","July","August","September","October","November","December"],"wgRequestId":"d65bdb53-e634-4830-9629-898eeee9d17e","wgCanonicalNamespace":"User","wgCanonicalSpecialPageName":false,"wgNamespaceNumber":2,"wgPageName":"User:Lucas_Werkmeister/QuickCategories","wgTitle":"Lucas Werkmeister/QuickCategories","wgCurRevisionId":27825048,"wgRevisionId":27825048,"wgArticleId":10780185,"wgIsArticle":true,"wgIsRedirect":false,"wgAction":"view","wgUserName":null,"wgUserGroups":["*"],"wgCategories":["Tools and scripts"],"wgPageViewLanguage":"en","wgPageContentLanguage":"en","wgPageContentModel":"wikitext","wgRelevantPageName":"User:Lucas_Werkmeister/QuickCategories","wgRelevantArticleId":10780185,"wgIsProbablyEditable":true,"wgRelevantPageIsProbablyEditable":true,"wgRestrictionEdit":[],"wgRestrictionMove":[],"wgRelevantUserName":"Lucas Werkmeister","wgNoticeProject":"meta","wgCiteReferencePreviewsActive":false, "wgMediaViewerOnClick":true,"wgMediaViewerEnabledByDefault":true,"wgVisualEditor":{"pageLanguageCode":"en","pageLanguageDir":"ltr","pageVariantFallbacks":"en"},"wgMFDisplayWikibaseDescriptions":{"search":true,"watchlist":true,"tagline":false,"nearby":true},"wgWMESchemaEditAttemptStepOversample":false,"wgWMEPageLength":20000,"wgCentralAuthMobileDomain":false,"wgEditSubmitButtonLabelPublish":true,"wgULSPosition":"personal","wgULSisCompactLinksEnabled":false,"wgVector2022LanguageInHeader":true,"wgULSisLanguageSelectorEmpty":false,"wgCheckUserClientHintsHeadersJsApi":["brands","architecture","bitness","fullVersionList","mobile","model","platform","platformVersion"]};RLSTATE={"ext.globalCssJs.user.styles":"ready","site.styles":"ready","user.styles":"ready","ext.globalCssJs.user":"ready","user":"ready","user.options":"loading","mediawiki.page.gallery.styles":"ready","ext.pygments":"ready","skins.vector.search.codex.styles":"ready","skins.vector.styles":"ready","skins.vector.icons":"ready", "ext.wikimediamessages.styles":"ready","ext.visualEditor.desktopArticleTarget.noscript":"ready","ext.uls.pt":"ready","ext.wikimediaBadges":"ready"};RLPAGEMODULES=["ext.pygments.view","site","mediawiki.page.ready","mediawiki.toc","skins.vector.js","ext.centralNotice.geoIP","ext.centralNotice.startUp","ext.gadget.AddTopic","ext.gadget.formWizard","ext.gadget.ReferenceTooltips","ext.gadget.WishlistTranslation","ext.urlShortener.toolbar","ext.centralauth.centralautologin","mmv.bootstrap","ext.visualEditor.desktopArticleTarget.init","ext.visualEditor.targetLoader","ext.echo.centralauth","ext.eventLogging","ext.wikimediaEvents","ext.navigationTiming","ext.uls.interface","ext.checkUser.clientHints"];</script> <script>(RLQ=window.RLQ||[]).push(function(){mw.loader.impl(function(){return["user.options@12s5i",function($,jQuery,require,module){mw.user.tokens.set({"patrolToken":"+\\","watchToken":"+\\","csrfToken":"+\\"}); }];});});</script> <link rel="stylesheet" href="/w/load.php?lang=en&amp;modules=ext.pygments%2CwikimediaBadges%7Cext.uls.pt%7Cext.visualEditor.desktopArticleTarget.noscript%7Cext.wikimediamessages.styles%7Cmediawiki.page.gallery.styles%7Cskins.vector.icons%2Cstyles%7Cskins.vector.search.codex.styles&amp;only=styles&amp;skin=vector-2022"> <script async="" src="/w/load.php?lang=en&amp;modules=startup&amp;only=scripts&amp;raw=1&amp;skin=vector-2022"></script> <meta name="ResourceLoaderDynamicStyles" content=""> <link rel="stylesheet" href="/w/load.php?lang=en&amp;modules=site.styles&amp;only=styles&amp;skin=vector-2022"> <meta name="generator" content="MediaWiki 1.44.0-wmf.4"> <meta name="referrer" content="origin"> <meta name="referrer" content="origin-when-cross-origin"> <meta name="robots" content="max-image-preview:standard"> <meta name="format-detection" content="telephone=no"> <meta name="viewport" content="width=1120"> <meta property="og:title" content="User:Lucas Werkmeister/QuickCategories - Meta"> <meta property="og:type" content="website"> <link rel="preconnect" href="//upload.wikimedia.org"> <link rel="alternate" media="only screen and (max-width: 640px)" href="//meta.m.wikimedia.org/wiki/User:Lucas_Werkmeister/QuickCategories"> <link rel="alternate" type="application/x-wiki" title="Edit" href="/w/index.php?title=User:Lucas_Werkmeister/QuickCategories&amp;action=edit"> <link rel="icon" href="/static/favicon/community.ico"> <link rel="search" type="application/opensearchdescription+xml" href="/w/rest.php/v1/search" title="Meta (en)"> <link rel="EditURI" type="application/rsd+xml" href="//meta.wikimedia.org/w/api.php?action=rsd"> <link rel="canonical" href="https://meta.wikimedia.org/wiki/User:Lucas_Werkmeister/QuickCategories"> <link rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/"> <link rel="alternate" type="application/atom+xml" title="Meta Atom feed" href="/w/index.php?title=Special:RecentChanges&amp;feed=atom"> <link rel="dns-prefetch" href="//login.wikimedia.org"> </head> <body class="skin--responsive skin-vector skin-vector-search-vue mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-2 ns-subject mw-editable page-User_Lucas_Werkmeister_QuickCategories rootpage-User_Lucas_Werkmeister skin-vector-2022 action-view"><a class="mw-jump-link" href="#bodyContent">Jump to content</a> <div class="vector-header-container"> <header class="vector-header mw-header"> <div class="vector-header-start"> <nav class="vector-main-menu-landmark" aria-label="Site"> <div id="vector-main-menu-dropdown" class="vector-dropdown vector-main-menu-dropdown vector-button-flush-left vector-button-flush-right" > <input type="checkbox" id="vector-main-menu-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-main-menu-dropdown" class="vector-dropdown-checkbox " aria-label="Main menu" > <label id="vector-main-menu-dropdown-label" for="vector-main-menu-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-menu mw-ui-icon-wikimedia-menu"></span> <span class="vector-dropdown-label-text">Main menu</span> </label> <div class="vector-dropdown-content"> <div id="vector-main-menu-unpinned-container" class="vector-unpinned-container"> <div id="vector-main-menu" class="vector-main-menu vector-pinnable-element"> <div class="vector-pinnable-header vector-main-menu-pinnable-header vector-pinnable-header-unpinned" data-feature-name="main-menu-pinned" data-pinnable-element-id="vector-main-menu" data-pinned-container-id="vector-main-menu-pinned-container" data-unpinned-container-id="vector-main-menu-unpinned-container" > <div class="vector-pinnable-header-label">Main menu</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-main-menu.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-main-menu.unpin">hide</button> </div> <div id="p-navigation" class="vector-menu mw-portlet mw-portlet-navigation" > <div class="vector-menu-heading"> Navigation </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-mainpage-description" class="mw-list-item"><a href="/wiki/Special:MyLanguage/Main_Page" title="Visit the main page [z]" accesskey="z"><span>Main page</span></a></li><li id="n-wikimedia-news-label" class="mw-list-item"><a href="/wiki/Wikimedia_News"><span>Wikimedia News</span></a></li><li id="n-translations-text" class="mw-list-item"><a href="/wiki/Special:LanguageStats"><span>Translations</span></a></li><li id="n-recentchanges" class="mw-list-item"><a href="/wiki/Special:RecentChanges" title="A list of recent changes in the wiki [r]" accesskey="r"><span>Recent changes</span></a></li><li id="n-randompage" class="mw-list-item"><a href="/wiki/Special:Random" title="Load a random page [x]" accesskey="x"><span>Random page</span></a></li><li id="n-help" class="mw-list-item"><a href="/wiki/Special:MyLanguage/Help:Help" title="The place to find out"><span>Help</span></a></li><li id="n-Babel-text" class="mw-list-item"><a href="/wiki/Meta:Babel"><span>Babel</span></a></li> </ul> </div> </div> <div id="p-community" class="vector-menu mw-portlet mw-portlet-community" > <div class="vector-menu-heading"> Community </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-WikimediaResourceCenter-text" class="mw-list-item"><a href="/wiki/Special:MyLanguage/Wikimedia_Resource_Center"><span>Wikimedia Resource Center</span></a></li><li id="n-WikimediaForum-text" class="mw-list-item"><a href="/wiki/Wikimedia_Forum"><span>Wikimedia Forum</span></a></li><li id="n-mailinglists-text" class="mw-list-item"><a href="/wiki/Special:MyLanguage/Mailing_lists/Overview"><span>Mailing lists</span></a></li><li id="n-Requests-text" class="mw-list-item"><a href="/wiki/Special:MyLanguage/Meta:Requests_and_proposals"><span>Requests</span></a></li><li id="n-Babylon-text" class="mw-list-item"><a href="/wiki/Special:MyLanguage/Meta:Babylon"><span>Babylon</span></a></li><li id="n-Reports-text" class="mw-list-item"><a href="/wiki/Special:MyLanguage/Wikimedia_Affiliates_Data_Portal"><span>Reports</span></a></li><li id="n-Research-text" class="mw-list-item"><a href="/wiki/Special:MyLanguage/Research:Index"><span>Research</span></a></li><li id="n-planet" class="mw-list-item"><a href="//en.planet.wikimedia.org/" title="Weblog aggregator of Wikimedia-related posts"><span>Planet Wikimedia</span></a></li> </ul> </div> </div> <div id="p-beyond_the_web" class="vector-menu mw-portlet mw-portlet-beyond_the_web" > <div class="vector-menu-heading"> Beyond the Web </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-Meetup-text" class="mw-list-item"><a href="/wiki/Special:MyLanguage/Meetup"><span>Meet Wikimedians</span></a></li><li id="n-Events-text" class="mw-list-item"><a href="/wiki/Events"><span>Events</span></a></li><li id="n-wikimedia-movement-affiliates-shortlabel" class="mw-list-item"><a href="/wiki/Special:MyLanguage/Wikimedia_movement_affiliates"><span>Movement affiliates</span></a></li> </ul> </div> </div> </div> </div> </div> </div> </nav> <a href="/wiki/Special:MyLanguage/Main_Page" class="mw-logo"> <img class="mw-logo-icon" src="/static/images/icons/metawiki.svg" alt="" aria-hidden="true" height="50" width="50"> <span class="mw-logo-container skin-invert"> <img class="mw-logo-wordmark" alt="Wikimedia Meta-Wiki" src="/static/images/mobile/copyright/metawiki-wordmark.svg" style="width: 7.5em; height: 1.8125em;"> </span> </a> </div> <div class="vector-header-end"> <div id="p-search" role="search" class="vector-search-box-vue vector-search-box-collapses vector-search-box-show-thumbnail vector-search-box-auto-expand-width vector-search-box"> <a href="/wiki/Special:Search" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only search-toggle" title="Search Meta [f]" accesskey="f"><span class="vector-icon mw-ui-icon-search mw-ui-icon-wikimedia-search"></span> <span>Search</span> </a> <div class="vector-typeahead-search-container"> <div class="cdx-typeahead-search cdx-typeahead-search--show-thumbnail cdx-typeahead-search--auto-expand-width"> <form action="/w/index.php" id="searchform" class="cdx-search-input cdx-search-input--has-end-button"> <div id="simpleSearch" class="cdx-search-input__input-wrapper" data-search-loc="header-moved"> <div class="cdx-text-input cdx-text-input--has-start-icon"> <input class="cdx-text-input__input" type="search" name="search" placeholder="Search Meta" aria-label="Search Meta" autocapitalize="sentences" title="Search Meta [f]" accesskey="f" id="searchInput" > <span class="cdx-text-input__icon cdx-text-input__start-icon"></span> </div> <input type="hidden" name="title" value="Special:Search"> </div> <button class="cdx-button cdx-search-input__end-button">Search</button> </form> </div> </div> </div> <nav class="vector-user-links vector-user-links-wide" aria-label="Personal tools"> <div class="vector-user-links-main"> <div id="p-vector-user-menu-preferences" class="vector-menu mw-portlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-uls" class="mw-list-item active user-links-collapsible-item"><a data-mw="interface" href="#" class="uls-trigger cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet"><span class="vector-icon mw-ui-icon-wikimedia-language mw-ui-icon-wikimedia-wikimedia-language"></span> <span>English</span></a> </li> </ul> </div> </div> <div id="p-vector-user-menu-userpage" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <nav class="vector-appearance-landmark" aria-label="Appearance"> <div id="vector-appearance-dropdown" class="vector-dropdown " title="Change the appearance of the page&#039;s font size, width, and color" > <input type="checkbox" id="vector-appearance-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-appearance-dropdown" class="vector-dropdown-checkbox " aria-label="Appearance" > <label id="vector-appearance-dropdown-label" for="vector-appearance-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-appearance mw-ui-icon-wikimedia-appearance"></span> <span class="vector-dropdown-label-text">Appearance</span> </label> <div class="vector-dropdown-content"> <div id="vector-appearance-unpinned-container" class="vector-unpinned-container"> </div> </div> </div> </nav> <div id="p-vector-user-menu-notifications" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <div id="p-vector-user-menu-overflow" class="vector-menu mw-portlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-sitesupport-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="//donate.wikimedia.org/wiki/Special:FundraiserRedirector?utm_source=donate&amp;utm_medium=sidebar&amp;utm_campaign=C13_meta.wikimedia.org&amp;uselang=en" class=""><span>Donate</span></a> </li> <li id="pt-createaccount-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="/w/index.php?title=Special:CreateAccount&amp;returnto=User%3ALucas+Werkmeister%2FQuickCategories" title="You are encouraged to create an account and log in; however, it is not mandatory" class=""><span>Create account</span></a> </li> <li id="pt-login-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="/w/index.php?title=Special:UserLogin&amp;returnto=User%3ALucas+Werkmeister%2FQuickCategories" title="You are encouraged to log in; however, it is not mandatory [o]" accesskey="o" class=""><span>Log in</span></a> </li> </ul> </div> </div> </div> <div id="vector-user-links-dropdown" class="vector-dropdown vector-user-menu vector-button-flush-right vector-user-menu-logged-out user-links-collapsible-item" title="More options" > <input type="checkbox" id="vector-user-links-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-user-links-dropdown" class="vector-dropdown-checkbox " aria-label="Personal tools" > <label id="vector-user-links-dropdown-label" for="vector-user-links-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-ellipsis mw-ui-icon-wikimedia-ellipsis"></span> <span class="vector-dropdown-label-text">Personal tools</span> </label> <div class="vector-dropdown-content"> <div id="p-personal" class="vector-menu mw-portlet mw-portlet-personal user-links-collapsible-item" title="User menu" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-sitesupport" class="user-links-collapsible-item mw-list-item"><a href="//donate.wikimedia.org/wiki/Special:FundraiserRedirector?utm_source=donate&amp;utm_medium=sidebar&amp;utm_campaign=C13_meta.wikimedia.org&amp;uselang=en"><span>Donate</span></a></li><li id="pt-createaccount" class="user-links-collapsible-item mw-list-item"><a href="/w/index.php?title=Special:CreateAccount&amp;returnto=User%3ALucas+Werkmeister%2FQuickCategories" title="You are encouraged to create an account and log in; however, it is not mandatory"><span class="vector-icon mw-ui-icon-userAdd mw-ui-icon-wikimedia-userAdd"></span> <span>Create account</span></a></li><li id="pt-login" class="user-links-collapsible-item mw-list-item"><a href="/w/index.php?title=Special:UserLogin&amp;returnto=User%3ALucas+Werkmeister%2FQuickCategories" title="You are encouraged to log in; however, it is not mandatory [o]" accesskey="o"><span class="vector-icon mw-ui-icon-logIn mw-ui-icon-wikimedia-logIn"></span> <span>Log in</span></a></li> </ul> </div> </div> </div> </div> </nav> </div> </header> </div> <div class="mw-page-container"> <div class="mw-page-container-inner"> <div class="vector-sitenotice-container"> <div id="siteNotice"><!-- CentralNotice --></div> </div> <div class="vector-column-start"> <div class="vector-main-menu-container"> <div id="mw-navigation"> <nav id="mw-panel" class="vector-main-menu-landmark" aria-label="Site"> <div id="vector-main-menu-pinned-container" class="vector-pinned-container"> </div> </nav> </div> </div> <div class="vector-sticky-pinned-container"> <nav id="mw-panel-toc" aria-label="Contents" data-event-name="ui.sidebar-toc" class="mw-table-of-contents-container vector-toc-landmark"> <div id="vector-toc-pinned-container" class="vector-pinned-container"> <div id="vector-toc" class="vector-toc vector-pinnable-element"> <div class="vector-pinnable-header vector-toc-pinnable-header vector-pinnable-header-pinned" data-feature-name="toc-pinned" data-pinnable-element-id="vector-toc" > <h2 class="vector-pinnable-header-label">Contents</h2> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-toc.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-toc.unpin">hide</button> </div> <ul class="vector-toc-contents" id="mw-panel-toc-list"> <li id="toc-mw-content-text" class="vector-toc-list-item vector-toc-level-1"> <a href="#" class="vector-toc-link"> <div class="vector-toc-text">Beginning</div> </a> </li> <li id="toc-Usage" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Usage"> <div class="vector-toc-text"> <span class="vector-toc-numb">1</span> <span>Usage</span> </div> </a> <button aria-controls="toc-Usage-sublist" class="cdx-button cdx-button--weight-quiet cdx-button--icon-only vector-toc-toggle"> <span class="vector-icon mw-ui-icon-wikimedia-expand"></span> <span>Toggle Usage subsection</span> </button> <ul id="toc-Usage-sublist" class="vector-toc-list"> <li id="toc-Submitting_batches" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Submitting_batches"> <div class="vector-toc-text"> <span class="vector-toc-numb">1.1</span> <span>Submitting batches</span> </div> </a> <ul id="toc-Submitting_batches-sublist" class="vector-toc-list"> <li id="toc-Sort_key_support" class="vector-toc-list-item vector-toc-level-3"> <a class="vector-toc-link" href="#Sort_key_support"> <div class="vector-toc-text"> <span class="vector-toc-numb">1.1.1</span> <span>Sort key support</span> </div> </a> <ul id="toc-Sort_key_support-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Redirects" class="vector-toc-list-item vector-toc-level-3"> <a class="vector-toc-link" href="#Redirects"> <div class="vector-toc-text"> <span class="vector-toc-numb">1.1.2</span> <span>Redirects</span> </div> </a> <ul id="toc-Redirects-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-PagePile_support" class="vector-toc-list-item vector-toc-level-3"> <a class="vector-toc-link" href="#PagePile_support"> <div class="vector-toc-text"> <span class="vector-toc-numb">1.1.3</span> <span>PagePile support</span> </div> </a> <ul id="toc-PagePile_support-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-Running_batches" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Running_batches"> <div class="vector-toc-text"> <span class="vector-toc-numb">1.2</span> <span>Running batches</span> </div> </a> <ul id="toc-Running_batches-sublist" class="vector-toc-list"> <li id="toc-Background_runs" class="vector-toc-list-item vector-toc-level-3"> <a class="vector-toc-link" href="#Background_runs"> <div class="vector-toc-text"> <span class="vector-toc-numb">1.2.1</span> <span>Background runs</span> </div> </a> <ul id="toc-Background_runs-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-Generating_batches_using_the_Wikidata_query_service" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Generating_batches_using_the_Wikidata_query_service"> <div class="vector-toc-text"> <span class="vector-toc-numb">1.3</span> <span>Generating batches using the Wikidata query service</span> </div> </a> <ul id="toc-Generating_batches_using_the_Wikidata_query_service-sublist" class="vector-toc-list"> <li id="toc-Categorizing_categories_based_on_Wikidata_information" class="vector-toc-list-item vector-toc-level-3"> <a class="vector-toc-link" href="#Categorizing_categories_based_on_Wikidata_information"> <div class="vector-toc-text"> <span class="vector-toc-numb">1.3.1</span> <span>Categorizing categories based on Wikidata information</span> </div> </a> <ul id="toc-Categorizing_categories_based_on_Wikidata_information-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Copying_category_members_from_another_wiki" class="vector-toc-list-item vector-toc-level-3"> <a class="vector-toc-link" href="#Copying_category_members_from_another_wiki"> <div class="vector-toc-text"> <span class="vector-toc-numb">1.3.2</span> <span>Copying category members from another wiki</span> </div> </a> <ul id="toc-Copying_category_members_from_another_wiki-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> </ul> </li> <li id="toc-Limitations" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Limitations"> <div class="vector-toc-text"> <span class="vector-toc-numb">2</span> <span>Limitations</span> </div> </a> <button aria-controls="toc-Limitations-sublist" class="cdx-button cdx-button--weight-quiet cdx-button--icon-only vector-toc-toggle"> <span class="vector-icon mw-ui-icon-wikimedia-expand"></span> <span>Toggle Limitations subsection</span> </button> <ul id="toc-Limitations-sublist" class="vector-toc-list"> <li id="toc-Wikitext-based" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Wikitext-based"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.1</span> <span>Wikitext-based</span> </div> </a> <ul id="toc-Wikitext-based-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Category_link_text" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Category_link_text"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.2</span> <span>Category link text</span> </div> </a> <ul id="toc-Category_link_text-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Subcategories" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Subcategories"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.3</span> <span>Subcategories</span> </div> </a> <ul id="toc-Subcategories-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Underscore_handling" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Underscore_handling"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.4</span> <span>Underscore handling</span> </div> </a> <ul id="toc-Underscore_handling-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Edit_conflicts" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Edit_conflicts"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.5</span> <span>Edit conflicts</span> </div> </a> <ul id="toc-Edit_conflicts-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Protected_pages" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Protected_pages"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.6</span> <span>Protected pages</span> </div> </a> <ul id="toc-Protected_pages-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> </ul> </div> </div> </nav> </div> </div> <div class="mw-content-container"> <main id="content" class="mw-body"> <header class="mw-body-header vector-page-titlebar"> <nav aria-label="Contents" class="vector-toc-landmark"> <div id="vector-page-titlebar-toc" class="vector-dropdown vector-page-titlebar-toc vector-button-flush-left" > <input type="checkbox" id="vector-page-titlebar-toc-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-page-titlebar-toc" class="vector-dropdown-checkbox " aria-label="Toggle the table of contents" > <label id="vector-page-titlebar-toc-label" for="vector-page-titlebar-toc-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-listBullet mw-ui-icon-wikimedia-listBullet"></span> <span class="vector-dropdown-label-text">Toggle the table of contents</span> </label> <div class="vector-dropdown-content"> <div id="vector-page-titlebar-toc-unpinned-container" class="vector-unpinned-container"> </div> </div> </div> </nav> <h1 id="firstHeading" class="firstHeading mw-first-heading"><span class="mw-page-title-namespace">User</span><span class="mw-page-title-separator">:</span><span class="mw-page-title-main">Lucas Werkmeister/QuickCategories</span></h1> </header> <div class="vector-page-toolbar"> <div class="vector-page-toolbar-container"> <div id="left-navigation"> <nav aria-label="Namespaces"> <div id="p-associated-pages" class="vector-menu vector-menu-tabs mw-portlet mw-portlet-associated-pages" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-nstab-user" class="selected vector-tab-noicon mw-list-item"><a href="/wiki/User:Lucas_Werkmeister/QuickCategories" title="View the user page [c]" accesskey="c"><span>User page</span></a></li><li id="ca-talk" class="vector-tab-noicon mw-list-item"><a href="/wiki/User_talk:Lucas_Werkmeister/QuickCategories" rel="discussion" title="Discussion about the content page [t]" accesskey="t"><span>Discussion</span></a></li> </ul> </div> </div> <div id="vector-variants-dropdown" class="vector-dropdown emptyPortlet" > <input type="checkbox" id="vector-variants-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-variants-dropdown" class="vector-dropdown-checkbox " aria-label="Change language variant" > <label id="vector-variants-dropdown-label" for="vector-variants-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet" aria-hidden="true" ><span class="vector-dropdown-label-text">English</span> </label> <div class="vector-dropdown-content"> <div id="p-variants" class="vector-menu mw-portlet mw-portlet-variants emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> </div> </div> </nav> </div> <div id="right-navigation" class="vector-collapsible"> <nav aria-label="Views"> <div id="p-views" class="vector-menu vector-menu-tabs mw-portlet mw-portlet-views" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-view" class="selected vector-tab-noicon mw-list-item"><a href="/wiki/User:Lucas_Werkmeister/QuickCategories"><span>Read</span></a></li><li id="ca-edit" class="vector-tab-noicon mw-list-item"><a href="/w/index.php?title=User:Lucas_Werkmeister/QuickCategories&amp;action=edit" title="Edit this page [e]" accesskey="e"><span>Edit</span></a></li><li id="ca-history" class="vector-tab-noicon mw-list-item"><a href="/w/index.php?title=User:Lucas_Werkmeister/QuickCategories&amp;action=history" title="Past revisions of this page [h]" accesskey="h"><span>View history</span></a></li> </ul> </div> </div> </nav> <nav class="vector-page-tools-landmark" aria-label="Page tools"> <div id="vector-page-tools-dropdown" class="vector-dropdown vector-page-tools-dropdown" > <input type="checkbox" id="vector-page-tools-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-page-tools-dropdown" class="vector-dropdown-checkbox " aria-label="Tools" > <label id="vector-page-tools-dropdown-label" for="vector-page-tools-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet" aria-hidden="true" ><span class="vector-dropdown-label-text">Tools</span> </label> <div class="vector-dropdown-content"> <div id="vector-page-tools-unpinned-container" class="vector-unpinned-container"> <div id="vector-page-tools" class="vector-page-tools vector-pinnable-element"> <div class="vector-pinnable-header vector-page-tools-pinnable-header vector-pinnable-header-unpinned" data-feature-name="page-tools-pinned" data-pinnable-element-id="vector-page-tools" data-pinned-container-id="vector-page-tools-pinned-container" data-unpinned-container-id="vector-page-tools-unpinned-container" > <div class="vector-pinnable-header-label">Tools</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-page-tools.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-page-tools.unpin">hide</button> </div> <div id="p-cactions" class="vector-menu mw-portlet mw-portlet-cactions emptyPortlet vector-has-collapsible-items" title="More options" > <div class="vector-menu-heading"> Actions </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-more-view" class="selected vector-more-collapsible-item mw-list-item"><a href="/wiki/User:Lucas_Werkmeister/QuickCategories"><span>Read</span></a></li><li id="ca-more-edit" class="vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=User:Lucas_Werkmeister/QuickCategories&amp;action=edit" title="Edit this page [e]" accesskey="e"><span>Edit</span></a></li><li id="ca-more-history" class="vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=User:Lucas_Werkmeister/QuickCategories&amp;action=history"><span>View history</span></a></li> </ul> </div> </div> <div id="p-tb" class="vector-menu mw-portlet mw-portlet-tb" > <div class="vector-menu-heading"> General </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="t-whatlinkshere" class="mw-list-item"><a href="/wiki/Special:WhatLinksHere/User:Lucas_Werkmeister/QuickCategories" title="A list of all wiki pages that link here [j]" accesskey="j"><span>What links here</span></a></li><li id="t-recentchangeslinked" class="mw-list-item"><a href="/wiki/Special:RecentChangesLinked/User:Lucas_Werkmeister/QuickCategories" rel="nofollow" title="Recent changes in pages linked from this page [k]" accesskey="k"><span>Related changes</span></a></li><li id="t-contributions" class="mw-list-item"><a href="/wiki/Special:Contributions/Lucas_Werkmeister" title="A list of contributions by this user"><span>User contributions</span></a></li><li id="t-log" class="mw-list-item"><a href="/wiki/Special:Log/Lucas_Werkmeister"><span>Logs</span></a></li><li id="t-userrights" class="mw-list-item"><a href="/wiki/Special:UserRights/Lucas_Werkmeister"><span>View user groups</span></a></li><li id="t-specialpages" class="mw-list-item"><a href="/wiki/Special:SpecialPages" title="A list of all special pages [q]" accesskey="q"><span>Special pages</span></a></li><li id="t-permalink" class="mw-list-item"><a href="/w/index.php?title=User:Lucas_Werkmeister/QuickCategories&amp;oldid=27825048" title="Permanent link to this revision of this page"><span>Permanent link</span></a></li><li id="t-info" class="mw-list-item"><a href="/w/index.php?title=User:Lucas_Werkmeister/QuickCategories&amp;action=info" title="More information about this page"><span>Page information</span></a></li><li id="t-urlshortener" class="mw-list-item"><a href="/w/index.php?title=Special:UrlShortener&amp;url=https%3A%2F%2Fmeta.wikimedia.org%2Fwiki%2FUser%3ALucas_Werkmeister%2FQuickCategories"><span>Get shortened URL</span></a></li><li id="t-urlshortener-qrcode" class="mw-list-item"><a href="/w/index.php?title=Special:QrCode&amp;url=https%3A%2F%2Fmeta.wikimedia.org%2Fwiki%2FUser%3ALucas_Werkmeister%2FQuickCategories"><span>Download QR code</span></a></li> </ul> </div> </div> <div id="p-coll-print_export" class="vector-menu mw-portlet mw-portlet-coll-print_export" > <div class="vector-menu-heading"> Print/export </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="coll-create_a_book" class="mw-list-item"><a href="/w/index.php?title=Special:Book&amp;bookcmd=book_creator&amp;referer=User%3ALucas+Werkmeister%2FQuickCategories"><span>Create a book</span></a></li><li id="coll-download-as-rl" class="mw-list-item"><a href="/w/index.php?title=Special:DownloadAsPdf&amp;page=User%3ALucas_Werkmeister%2FQuickCategories&amp;action=show-download-screen"><span>Download as PDF</span></a></li><li id="t-print" class="mw-list-item"><a href="/w/index.php?title=User:Lucas_Werkmeister/QuickCategories&amp;printable=yes" title="Printable version of this page [p]" accesskey="p"><span>Printable version</span></a></li> </ul> </div> </div> <div id="p-wikibase-otherprojects" class="vector-menu mw-portlet mw-portlet-wikibase-otherprojects emptyPortlet" > <div class="vector-menu-heading"> In other projects </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> </div> </div> </div> </div> </nav> </div> </div> </div> <div class="vector-column-end"> <div class="vector-sticky-pinned-container"> <nav class="vector-page-tools-landmark" aria-label="Page tools"> <div id="vector-page-tools-pinned-container" class="vector-pinned-container"> </div> </nav> <nav class="vector-appearance-landmark" aria-label="Appearance"> <div id="vector-appearance-pinned-container" class="vector-pinned-container"> <div id="vector-appearance" class="vector-appearance vector-pinnable-element"> <div class="vector-pinnable-header vector-appearance-pinnable-header vector-pinnable-header-pinned" data-feature-name="appearance-pinned" data-pinnable-element-id="vector-appearance" data-pinned-container-id="vector-appearance-pinned-container" data-unpinned-container-id="vector-appearance-unpinned-container" > <div class="vector-pinnable-header-label">Appearance</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-appearance.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-appearance.unpin">hide</button> </div> </div> </div> </nav> </div> </div> <div id="bodyContent" class="vector-body" aria-labelledby="firstHeading" data-mw-ve-target-container> <div class="vector-body-before-content"> <div class="mw-indicators"> </div> <div id="siteSub" class="noprint">From Meta, a Wikimedia project coordination wiki</div> </div> <div id="contentSub"><div id="mw-content-subtitle"><div class="subpages">&lt; <bdi dir="ltr"><a href="/wiki/User:Lucas_Werkmeister" title="User:Lucas Werkmeister">User:Lucas Werkmeister</a></bdi></div></div></div> <div id="mw-content-text" class="mw-body-content"><div class="mw-content-ltr mw-parser-output" lang="en" dir="ltr"><p><b><a href="https://iw.toolforge.org/quickcategories" class="extiw" title="toolforge:quickcategories">QuickCategories</a></b> is a tool to add and remove categories from pages in batches. It’s similar to <a href="/wiki/User:Magnus_Manske" title="User:Magnus Manske">Magnus Manske</a>’s <a href="https://www.wikidata.org/wiki/Special:MyLanguage/Help:QuickStatements" class="extiw" title="d:Special:MyLanguage/Help:QuickStatements">QuickStatements</a> tool for Wikidata, but editing categories instead of statements, and for all Wikimedia wikis, not just Wikidata. </p> <ul class="gallery mw-gallery-traditional"> <li class="gallerycaption">screenshots</li> <li class="gallerybox" style="width: 155px"> <div class="thumb" style="width: 150px; height: 150px;"><span typeof="mw:File"><a href="/wiki/File:QuickCategories_new_batch.png" class="mw-file-description" title="page to create a new batch"><img alt="QuickCategories – Wiki domain: commons.wikimedia.org – Commands: add Category:Figure skating officials to a series of person categories – Submit batch" src="//upload.wikimedia.org/wikipedia/commons/thumb/6/6b/QuickCategories_new_batch.png/120px-QuickCategories_new_batch.png" decoding="async" width="120" height="67" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/6/6b/QuickCategories_new_batch.png/180px-QuickCategories_new_batch.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/6/6b/QuickCategories_new_batch.png/240px-QuickCategories_new_batch.png 2x" data-file-width="1281" data-file-height="720" /></a></span></div> <div class="gallerytext">page to create a new batch</div> </li> <li class="gallerybox" style="width: 155px"> <div class="thumb" style="width: 150px; height: 150px;"><span typeof="mw:File"><a href="/wiki/File:QuickCategories_batch_list.png" class="mw-file-description" title="list of the most recent batches"><img alt="Latest batches: batch ID 10, by Harmonia Amanda, created 4 days ago, last updated 4 days ago; batch ID 9 b, by Harmonia Amanda, created 4 days ago, last updated 4 days ago; etc." src="//upload.wikimedia.org/wikipedia/commons/thumb/f/ff/QuickCategories_batch_list.png/120px-QuickCategories_batch_list.png" decoding="async" width="120" height="68" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/f/ff/QuickCategories_batch_list.png/180px-QuickCategories_batch_list.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/f/ff/QuickCategories_batch_list.png/240px-QuickCategories_batch_list.png 2x" data-file-width="1280" data-file-height="720" /></a></span></div> <div class="gallerytext">list of the most recent batches</div> </li> <li class="gallerybox" style="width: 155px"> <div class="thumb" style="width: 150px; height: 150px;"><span typeof="mw:File"><a href="/wiki/File:QuickCategories_batch_10.png" class="mw-file-description" title="batch #10"><img alt="Batch #10 by Harmonia Amanda – created 4 days ago, last updated 4 days ago; added Category:Figure skating officials to a list of people categories" src="//upload.wikimedia.org/wikipedia/commons/thumb/f/fb/QuickCategories_batch_10.png/120px-QuickCategories_batch_10.png" decoding="async" width="120" height="68" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/f/fb/QuickCategories_batch_10.png/180px-QuickCategories_batch_10.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/f/fb/QuickCategories_batch_10.png/240px-QuickCategories_batch_10.png 2x" data-file-width="1280" data-file-height="720" /></a></span></div> <div class="gallerytext"><a href="https://iw.toolforge.org/quickcategories/batch/10" class="extiw" title="toolforge:quickcategories/batch/10">batch #10</a></div> </li> <li class="gallerybox" style="width: 155px"> <div class="thumb" style="width: 150px; height: 150px;"><span typeof="mw:File"><a href="/wiki/File:QuickCategories_example_edit.png" class="mw-file-description" title="example edit, part of batch#10"><img alt="Difference between revisions of &quot;Category:Ekaterina Rubleva&quot; – Harmonia Amanda (+Category:Figure skating officals; QuickCategories batch #10) (Tag: QuickCategories [1.0]) – Added line: Category:Figure skating official" src="//upload.wikimedia.org/wikipedia/commons/thumb/1/17/QuickCategories_example_edit.png/120px-QuickCategories_example_edit.png" decoding="async" width="120" height="68" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/1/17/QuickCategories_example_edit.png/180px-QuickCategories_example_edit.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/1/17/QuickCategories_example_edit.png/240px-QuickCategories_example_edit.png 2x" data-file-width="1280" data-file-height="720" /></a></span></div> <div class="gallerytext"><a href="https://commons.wikimedia.org/wiki/Special:Diff/335925155/342583478" class="extiw" title="commons:Special:Diff/335925155/342583478">example edit</a>, part of <a href="https://iw.toolforge.org/quickcategories/batch/10" class="extiw" title="toolforge:quickcategories/batch/10">batch#10</a></div> </li> </ul> <meta property="mw:PageProp/toc" /> <div class="mw-heading mw-heading2"><h2 id="Usage">Usage</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=User:Lucas_Werkmeister/QuickCategories&amp;action=edit&amp;section=1" title="Edit section: Usage"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <div class="mw-heading mw-heading3"><h3 id="Submitting_batches">Submitting batches</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=User:Lucas_Werkmeister/QuickCategories&amp;action=edit&amp;section=2" title="Edit section: Submitting batches"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>First, <a href="https://iw.toolforge.org/quickcategories/login" class="extiw" title="toolforge:quickcategories/login">log in</a> via OAuth. Then you can start to create batches on the <a href="https://iw.toolforge.org/quickcategories" class="extiw" title="toolforge:quickcategories">index page</a>. Enter the domain of the wiki you want to work with (en.wikipedia.org, commons.wikimedia.org, etc.) into the first input field, and the batch contents into the second one (the large, multi-line text area). When you’re done, press the “submit batch” button below the second input field. </p><p>A batch consists of a list of commands, which are specified in individual lines of the input: each line corresponds to one command. A command is a list of fields separated by vertical bar (<kbd>|</kbd>) or <kbd>Tab</kbd> characters, where the first field is the page that the command applies to and the remaining fields specify categories to be added (<code><strong>+</strong>Category:<var>Category name</var></code>) or removed (<code><strong>-</strong>Category:<var>Category name</var></code>). The page can be in any namespace, but the categories must always be specified using the English word “Category” (though the tool will use the localized name when actually adding the category, adding e. g. <code>[[Kategorie:<var>Category name</var>]]</code> on German-language wikis). </p><p>Optionally, you can specify a title for a batch, to explain what it’s doing and why. The title will be included in the <a href="/wiki/Help:Edit_summary" title="Help:Edit summary">edit summaries</a> of edits made for this batch, so [[wikilinks]] can be used, but other elements of wikitext syntax are not supported. </p><p>You can (within reason) specify any number of actions (add or remove category) for a page, and any number of commands in a batch. Categories that are already present on a page will not be added again, and categories that are not present cannot be removed either, so it’s possible that no edit will be made when running a command. You can think of it like this: a command describes a state that the page should be brought into, and if it is already in that state, there’s nothing more to do. </p><p>If you often work with the same few wikis, you can enter them on the <a href="https://iw.toolforge.org/quickcategories/preferences" class="extiw" title="toolforge:quickcategories/preferences">preferences page</a> as the “suggested wiki domains for new batches”, and they will replace the default suggestions. If you most frequently work with just one wiki, you can enter that as the “default wiki domain for new batches” and it will be the default value of the first input field on the <a href="https://iw.toolforge.org/quickcategories" class="extiw" title="toolforge:quickcategories">index page</a>. (You can still edit the value of that input field to submit batches for other wikis.) </p> <div class="mw-heading mw-heading4"><h4 id="Sort_key_support">Sort key support</h4><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=User:Lucas_Werkmeister/QuickCategories&amp;action=edit&amp;section=3" title="Edit section: Sort key support"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>You can also modify the <a href="https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Categories#Sort_key" class="extiw" title="mw:Special:MyLanguage/Help:Categories">sort key</a> of a category link, which is separated from the title by a hash (<kbd>#</kbd>) character. (MediaWiki uses the vertical bar for this, but in QuickCategories that already separates multiple fields.) Several flavors are available: </p> <dl><dt><strong>+</strong>Category:<var>Title</var><strong>#</strong><var>sort key</var></dt> <dd>If the page isn’t yet in this category at all, add a category link with that sort key, otherwise do nothing.</dd> <dt><strong>+</strong>Category:<var>Title</var><strong>##</strong><var>sort key</var></dt> <dd>If the page isn’t yet in this category, add a category link with that sort key. If it has a category link for that category without a sort key, add the sort key. If it has a category link with a different sort key, do nothing.</dd> <dt><strong>+</strong>Category:<var>Title</var><strong>###</strong><var>sort key</var></dt> <dd>If the page isn’t yet in this category, add a category link with that sort key. If it has a category link for that category, with or without sort key, set its sort key. This can also be used to remove a sort key by omitting it in the action (e. g. +Category:Some category###|+Category:Something else, i. e. with nothing after the ###).</dd> <dt><strong>-</strong>Category:<var>Title</var><strong>#</strong><var>sort key</var></dt> <dd>If the page has a category link with this sort key, remove it, otherwise do nothing.</dd></dl> <p>The most useful mode is probably <strong>+</strong>Category:<var>Title</var><strong>##</strong><var>sort key</var>, leaving existing sort keys intact, but if you know that your sort key is better than the existing one you can also use <strong>+</strong>Category:<var>Title</var><strong>###</strong><var>sort key</var> to override it. </p> <div class="mw-heading mw-heading4"><h4 id="Redirects">Redirects</h4><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=User:Lucas_Werkmeister/QuickCategories&amp;action=edit&amp;section=4" title="Edit section: Redirects"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Since 2020-02-16, redirects are resolved by default: if a batch contains the line <code>A|+Category:C</code>, and page A is actually a redirect to page B, then the category will be added to page B, not page A. If you want to edit the categories of the redirect itself, you can prefix the title with an exclamation mark: <code>!A|+Category:C</code> will always edit page A. </p><p>Prior to 2020-02-16, the <code>!</code> syntax was not available, and batches would always edit the specified page even if it was a redirect. For compatibility, batches which were created prior to this date but not completely run will continue to behave this way: that is, they will display without the exclamation mark (as that is how they were specified originally), but if they are run now they will behave as if the exclamation mark was there (as that was the default behavior when they were created). </p> <div class="mw-heading mw-heading4"><h4 id="PagePile_support"><a href="https://iw.toolforge.org/pagepile" class="extiw" title="toolforge:pagepile">PagePile</a> support</h4><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=User:Lucas_Werkmeister/QuickCategories&amp;action=edit&amp;section=5" title="Edit section: PagePile support"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Instead of listing all the pages in a batch each with individual commands, you can also <a href="https://iw.toolforge.org/quickcategories/batch/new/pagepile" class="extiw" title="toolforge:quickcategories/batch/new/pagepile">create a new batch from a PagePile</a> (also available as an option in the “use this pagepile in <var>one of these tools</var>” menu on an individual PagePile page). In this case, the list of actions you specify is applied to all the pages from that PagePile; the syntax is the same as for normal batches, just with the first field (the page) missing, e. g. <code>+Category:<var>Category name</var>|-Category:<var>Category name</var></code>. </p><p>Note that the pages are imported from the PagePile at batch creation time, and later changes to the PagePile will have no effect. The tool also doesn’t currently keep track of whether a batch was created from a PagePile, so you may want to mention it in the batch title. </p> <div class="mw-heading mw-heading3"><h3 id="Running_batches">Running batches</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=User:Lucas_Werkmeister/QuickCategories&amp;action=edit&amp;section=6" title="Edit section: Running batches"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>After submitting a batch, you will be redirected to the page for this batch. It has been assigned a unique ID by which you and others can review the contents of this batch, now or at any later time, by loading the same URL where you were redirected. (A link to the batch is also included in the edit summaries of any edits made as part of this batch.) The commands of the batch are listed in pages, with fifty commands per page by default; you can navigate to the previous or next page of commands (of the same batch) with the buttons at the top, or directly adjust the <var>offset</var> and <var>limit</var> parameters in the URL. </p><p>If any of the commands on the current page have not yet been run (the default state if you just submitted this batch), and you are logged in as the same user who submitted this batch, then you can use the “run these commands” button at the bottom of the page to run the commands being shown. (To run only a few commands, set a smaller <var>limit</var> in the URL.) This may take a while (the tool can run a bit over two commands per second – a full page of fifty commands takes some 22 s to run), but afterwards you should see the page in a different state: the commands should now say “done” instead of “not done”. The “done” badge is also a link to the edit if an edit was made, or otherwise to the revision of the page where the tool determined that no edit was necessary. If the batch has more pages, you may now want to proceed to the next page to run those commands as well, and so on. </p><p>You can also check your contributions on the target wiki to see what edits the tool is making (hopefully none other than the ones you specified). </p><p>Single-category additions are marked as minor edits, all other edits are considered normal (unless you have the “Mark all edits minor by default” preference set, in which case all edits by this tool are minor). The tool also sets the “bot” flag on all its edits, so if you’re a <a href="/wiki/Bot" title="Bot">bot</a>, your edits will not be shown in recent changes by default (otherwise, MediaWiki ignores the flag). </p> <div class="mw-heading mw-heading4"><h4 id="Background_runs">Background runs</h4><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=User:Lucas_Werkmeister/QuickCategories&amp;action=edit&amp;section=7" title="Edit section: Background runs"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>If you are autoconfirmed on the target wiki, you can also run batches in the background, using the grey “run whole batch in the background” button next to the “run these commands” button. After the page reloads, you’ll see a line of text near the top of the page indicating when the background run was started, as well as a button to stop it and a link to the full history of background runs of this batch (you can start and stop the same batch running in the background multiple times). If nobody stops a background run explicitly, it will stop automatically as soon as there are no more commands to run (or when certain errors, e. g. “you are blocked from editing”, are encountered). In this case the text also indicates when the background run stopped, and the “stop” button disappears. </p><p>Running batches in the background is slightly slower, but much more convenient for you: you don’t need to run each page of commands in a long batch separately – in fact, you don’t need to do anything while the commands are running, and can even turn off your computer, e. g. while the batch is running in the background overnight. </p><p>In addition to the user who submitted a batch, background runs can also be stopped by <a href="/wiki/Administrator" title="Administrator">administrators</a> on the target wiki, as well as by <a href="/wiki/Stewards" title="Stewards">stewards</a>, to reduce the impact of vandalism via this tool. (However, only the submitting user can start background runs.) </p> <div class="mw-heading mw-heading3"><h3 id="Generating_batches_using_the_Wikidata_query_service">Generating batches using the Wikidata query service</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=User:Lucas_Werkmeister/QuickCategories&amp;action=edit&amp;section=8" title="Edit section: Generating batches using the Wikidata query service"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>You can also use the Wikidata Query Service to generate batches. By default, it outputs data in tabular form, so you can copy its rows and columns (in Firefox, hold down the <kbd>Ctrl</kbd> key while dragging the mouse across the table to select by row/column instead of textually) and paste them into the “new batch” form. To example uses are described below. </p><p>Remember that <q cite="https&#58;//en.wikiquote.org/w/index.php?title=Spider-Man_(2002_film)&amp;oldid=2558292#Ben_Parker">with great power comes great responsibility</q> – make sure that you only edit pages where you’re sure the category is correct! It may be a good idea to start with a shorter list of commands first and see if there are objections before proceeding with the rest. </p> <div class="mw-heading mw-heading4"><h4 id="Categorizing_categories_based_on_Wikidata_information">Categorizing categories based on Wikidata information</h4><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=User:Lucas_Werkmeister/QuickCategories&amp;action=edit&amp;section=9" title="Edit section: Categorizing categories based on Wikidata information"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>If the pages you want to add categories to are themselves categories, you can use the <a href="https://www.mediawiki.org/wiki/Wikidata_Query_Service/Categories" class="extiw" title="mw:Wikidata Query Service/Categories">category graph in the Wikidata Query Service</a> to generate commands for a batch where a category is not yet a subcategory of the desired category. This is especially useful on Wikimedia Commons. You can use the following query as a template: </p> <div class="mw-highlight mw-highlight-lang-sparql mw-content-ltr" dir="ltr"><pre><span></span><span class="k">SELECT</span> <span class="nv">?item</span> <span class="nv">?commonsCategory</span> <span class="nv">?page</span> <span class="nv">?command1</span> <span class="k">WITH</span> <span class="p">{</span> <span class="c"># SELECT ITEMS HERE</span> <span class="c"># should look like: SELECT DISTINCT ?item WHERE { … }</span> <span class="p">}</span> <span class="k">AS</span> <span class="err">%items</span> <span class="k">WITH</span> <span class="p">{</span> <span class="k">SELECT</span> <span class="nv">?item</span> <span class="nv">?commonsCategory</span> <span class="k">WHERE</span> <span class="p">{</span> <span class="nn">hint</span><span class="p">:</span><span class="nt">SubQuery</span> <span class="nn">hint</span><span class="p">:</span><span class="nt">optimizer</span> <span class="s">&quot;None&quot;</span><span class="p">.</span> <span class="c"># we have to disable the optimizer for this subquery because it gets confused by the ?commonsCategoryStatementEn part</span> <span class="err">INCLUDE</span> <span class="err">%items</span><span class="p">.</span> <span class="k">OPTIONAL</span> <span class="p">{</span> <span class="nv">?item</span> <span class="nn">wdt</span><span class="p">:</span><span class="nt">P373</span> <span class="nv">?commonsCategoryStatement</span><span class="p">.</span> <span class="k">BIND</span><span class="p">(</span><span class="nf">STRLANG</span><span class="p">(</span><span class="nf">CONCAT</span><span class="p">(</span><span class="s">&quot;Category:&quot;</span><span class="p">,</span> <span class="nv">?commonsCategoryStatement</span><span class="p">),</span> <span class="s">&quot;en&quot;</span><span class="p">)</span> <span class="k">AS</span> <span class="nv">?commonsCategoryStatementEn</span><span class="p">)</span> <span class="nv">?commonsCategoryFromStatement</span> <span class="nn">schema</span><span class="p">:</span><span class="nt">name</span> <span class="nv">?commonsCategoryStatementEn</span><span class="p">;</span> <span class="nn">schema</span><span class="p">:</span><span class="nt">isPartOf</span> <span class="nl">&lt;https://commons.wikimedia.org/&gt;</span><span class="p">.</span> <span class="p">}</span> <span class="k">OPTIONAL</span> <span class="p">{</span> <span class="nv">?commonsCategoryFromSitelink</span> <span class="nn">schema</span><span class="p">:</span><span class="nt">about</span> <span class="nv">?item</span><span class="p">;</span> <span class="nn">schema</span><span class="p">:</span><span class="nt">isPartOf</span> <span class="nl">&lt;https://commons.wikimedia.org/&gt;</span><span class="p">.</span> <span class="k">FILTER</span><span class="p">(</span><span class="nf">STRSTARTS</span><span class="p">(</span><span class="nf">STR</span><span class="p">(</span><span class="nv">?commonsCategoryFromSitelink</span><span class="p">),</span> <span class="s">&quot;https://commons.wikimedia.org/wiki/Category:&quot;</span><span class="p">))</span> <span class="p">}</span> <span class="k">BIND</span><span class="p">(</span><span class="nf">COALESCE</span><span class="p">(</span><span class="nv">?commonsCategoryFromStatement</span><span class="p">,</span> <span class="nv">?commonsCategoryFromSitelink</span><span class="p">)</span> <span class="k">AS</span> <span class="nv">?commonsCategory</span><span class="p">)</span> <span class="k">FILTER</span><span class="p">(</span><span class="nf">BOUND</span><span class="p">(</span><span class="nv">?commonsCategory</span><span class="p">))</span> <span class="p">}</span> <span class="p">}</span> <span class="k">AS</span> <span class="err">%itemsWithCommonsCategories</span> <span class="k">WHERE</span> <span class="p">{</span> <span class="err">INCLUDE</span> <span class="err">%itemsWithCommonsCategories</span><span class="p">.</span> <span class="k">MINUS</span> <span class="p">{</span> <span class="k">SERVICE</span> <span class="nl">&lt;https://query.wikidata.org/bigdata/namespace/categories/sparql&gt;</span> <span class="p">{</span> <span class="k">SERVICE</span> <span class="nn">gas</span><span class="p">:</span><span class="nt">service</span> <span class="p">{</span> <span class="nn">gas</span><span class="p">:</span><span class="nt">program</span> <span class="nn">gas</span><span class="p">:</span><span class="nt">gasClass</span> <span class="s">&quot;com.bigdata.rdf.graph.analytics.BFS&quot;</span><span class="p">;</span> <span class="nn">gas</span><span class="p">:</span><span class="nt">linkType</span> <span class="nn">mediawiki</span><span class="p">:</span><span class="nt">isInCategory</span><span class="p">;</span> <span class="nn">gas</span><span class="p">:</span><span class="nt">traversalDirection</span> <span class="s">&quot;Reverse&quot;</span><span class="p">;</span> <span class="nn">gas</span><span class="p">:</span><span class="nt">in</span> <span class="nl">&lt;https://commons.wikimedia.org/wiki/Category:CATEGORY_GOES_HERE&gt;</span><span class="p">;</span> <span class="nn">gas</span><span class="p">:</span><span class="nt">out</span> <span class="nv">?commonsCategory</span><span class="p">.</span> <span class="p">}</span> <span class="p">}</span> <span class="p">}</span> <span class="k">BIND</span><span class="p">(</span><span class="nf">REPLACE</span><span class="p">(</span><span class="nn">wikibase</span><span class="p">:</span><span class="nt">decodeUri</span><span class="p">(</span><span class="nf">SUBSTR</span><span class="p">(</span><span class="nf">STR</span><span class="p">(</span><span class="nv">?commonsCategory</span><span class="p">),</span> <span class="nf">STRLEN</span><span class="p">(</span><span class="s">&quot;https://commons.wikimedia.org/wiki/&quot;</span><span class="p">)</span> <span class="o">+</span> <span class="mi">1</span><span class="p">)),</span> <span class="s">&quot;_&quot;</span><span class="p">,</span> <span class="s">&quot; &quot;</span><span class="p">)</span> <span class="k">AS</span> <span class="nv">?page</span><span class="p">)</span> <span class="k">BIND</span><span class="p">(</span><span class="s">&quot;+Category:CATEGORY GOES HERE&quot;</span> <span class="k">AS</span> <span class="nv">?command1</span><span class="p">)</span> <span class="p">}</span> </pre></div><p><span class="plainlinks"><a class="external text" href="https://query.wikidata.org#SELECT%20%3Fitem%20%3FcommonsCategory%20%3Fpage%20%3Fcommand1%0AWITH%20%7B%0A%20%20%23%20SELECT%20ITEMS%20HERE%0A%20%20%23%20should%20look%20like%3A%20SELECT%20DISTINCT%20%3Fitem%20WHERE%20%7B%20%E2%80%A6%20%7D%0A%7D%20AS%20%25items%0AWITH%20%7B%0A%20%20SELECT%20%3Fitem%20%3FcommonsCategory%20WHERE%20%7B%0A%20%20%20%20hint%3ASubQuery%20hint%3Aoptimizer%20%22None%22.%20%23%20we%20have%20to%20disable%20the%20optimizer%20for%20this%20subquery%20because%20it%20gets%20confused%20by%20the%20%3FcommonsCategoryStatementEn%20part%0A%20%20%20%20INCLUDE%20%25items.%0A%20%20%20%20OPTIONAL%20%7B%0A%20%20%20%20%20%20%3Fitem%20wdt%3AP373%20%3FcommonsCategoryStatement.%0A%20%20%20%20%20%20BIND%28STRLANG%28CONCAT%28%22Category%3A%22%2C%20%3FcommonsCategoryStatement%29%2C%20%22en%22%29%20AS%20%3FcommonsCategoryStatementEn%29%0A%20%20%20%20%20%20%3FcommonsCategoryFromStatement%20schema%3Aname%20%3FcommonsCategoryStatementEn%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20schema%3AisPartOf%20%3Chttps%3A%2F%2Fcommons.wikimedia.org%2F%3E.%0A%20%20%20%20%7D%0A%20%20%20%20OPTIONAL%20%7B%0A%20%20%20%20%20%20%3FcommonsCategoryFromSitelink%20schema%3Aabout%20%3Fitem%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20schema%3AisPartOf%20%3Chttps%3A%2F%2Fcommons.wikimedia.org%2F%3E.%0A%20%20%20%20%20%20FILTER%28STRSTARTS%28STR%28%3FcommonsCategoryFromSitelink%29%2C%20%22https%3A%2F%2Fcommons.wikimedia.org%2Fwiki%2FCategory%3A%22%29%29%0A%20%20%20%20%7D%0A%20%20%20%20BIND%28COALESCE%28%3FcommonsCategoryFromStatement%2C%20%3FcommonsCategoryFromSitelink%29%20AS%20%3FcommonsCategory%29%0A%20%20%20%20FILTER%28BOUND%28%3FcommonsCategory%29%29%0A%20%20%7D%0A%7D%20AS%20%25itemsWithCommonsCategories%0AWHERE%20%7B%0A%20%20INCLUDE%20%25itemsWithCommonsCategories.%0A%20%20MINUS%20%7B%0A%20%20%20%20SERVICE%20%3Chttps%3A%2F%2Fquery.wikidata.org%2Fbigdata%2Fnamespace%2Fcategories%2Fsparql%3E%20%7B%0A%20%20%20%20%20%20SERVICE%20gas%3Aservice%20%7B%0A%20%20%20%20%20%20%20%20gas%3Aprogram%20gas%3AgasClass%20%22com.bigdata.rdf.graph.analytics.BFS%22%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20gas%3AlinkType%20mediawiki%3AisInCategory%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20gas%3AtraversalDirection%20%22Reverse%22%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20gas%3Ain%20%3Chttps%3A%2F%2Fcommons.wikimedia.org%2Fwiki%2FCategory%3ACATEGORY_GOES_HERE%3E%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20gas%3Aout%20%3FcommonsCategory.%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%0A%20%20%7D%0A%20%20BIND%28REPLACE%28wikibase%3AdecodeUri%28SUBSTR%28STR%28%3FcommonsCategory%29%2C%20STRLEN%28%22https%3A%2F%2Fcommons.wikimedia.org%2Fwiki%2F%22%29%20%2B%201%29%29%2C%20%22_%22%2C%20%22%20%22%29%20AS%20%3Fpage%29%0A%20%20BIND%28%22%2BCategory%3ACATEGORY%20GOES%20HERE%22%20AS%20%3Fcommand1%29%0A%7D">Cliquez pour essayer&#160;!</a></span> </p><p>In place of <code>SELECT ITEMS HERE</code> near the top, insert a query selecting the items you’re interested in and whose Commons categories you want to edit. You can ask for help with this part on <a href="https://www.wikidata.org/wiki/Wikidata:Request_a_query" class="extiw" title="d:Wikidata:Request a query">Wikidata’s Request a query page</a>, if you want. At the bottom, replace <code>CATEGORY_GOES_HERE</code> and <code>CATEGORY GOES HERE</code> with the title of the category, first in “URL form” (underscores instead of spaces), then in “title form” (spaces instead of underscores). </p><p>When you run the query, the last two columns (<var>?page</var> and <var>?command1</var>) can be copied and used as input for QuickCategories. </p> <div class="mw-heading mw-heading4"><h4 id="Copying_category_members_from_another_wiki">Copying category members from another wiki</h4><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=User:Lucas_Werkmeister/QuickCategories&amp;action=edit&amp;section=10" title="Edit section: Copying category members from another wiki"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>When you’re working in a non-English language edition, you might sometimes create new categories on your wiki that already exist on English Wikipedia. To populate the category, you can add it to the pages in your wiki that are linked, via Wikidata, to the English Wikipedia category there. You can find those via the query service as well, using <a href="https://www.mediawiki.org/wiki/Wikidata_Query_Service/User_Manual/MWAPI" class="extiw" title="mw:Wikidata Query Service/User Manual/MWAPI">MWAPI</a> and the <a href="https://www.mediawiki.org/wiki/API:categorymembers" class="extiw" title="mw:API:categorymembers">categorymembers</a> API module. The following query only selects direct category members (using Basque Wikipedia as the example target wiki): </p> <div class="mw-highlight mw-highlight-lang-sparql mw-content-ltr" dir="ltr"><pre><span></span><span class="k">SELECT</span> <span class="nv">?titleEu</span> <span class="p">(</span><span class="s">&quot;+Category:BASQUE CATEGORY HERE&quot;</span> <span class="k">AS</span> <span class="nv">?command</span><span class="p">)</span> <span class="k">WHERE</span> <span class="p">{</span> <span class="nn">hint</span><span class="p">:</span><span class="nt">Query</span> <span class="nn">hint</span><span class="p">:</span><span class="nt">optimizer</span> <span class="s">&quot;None&quot;</span><span class="p">.</span> <span class="k">SERVICE</span> <span class="nn">wikibase</span><span class="p">:</span><span class="nt">mwapi</span> <span class="p">{</span> <span class="nn">bd</span><span class="p">:</span><span class="nt">serviceParam</span> <span class="nn">wikibase</span><span class="p">:</span><span class="nt">api</span> <span class="s">&quot;Generator&quot;</span><span class="p">;</span> <span class="nn">wikibase</span><span class="p">:</span><span class="nt">endpoint</span> <span class="s">&quot;en.wikipedia.org&quot;</span><span class="p">;</span> <span class="nn">mwapi</span><span class="p">:</span><span class="nt">generator</span> <span class="s">&quot;categorymembers&quot;</span><span class="p">;</span> <span class="nn">mwapi</span><span class="p">:</span><span class="nt">gcmtitle</span> <span class="s">&quot;Category:ENGLISH_CATEGORY_HERE&quot;</span><span class="p">;</span> <span class="nn">mwapi</span><span class="p">:</span><span class="nt">gcmnamespace</span> <span class="mi">0</span><span class="p">;</span> <span class="nn">mwapi</span><span class="p">:</span><span class="nt">gcmprop</span> <span class="s">&quot;title&quot;</span><span class="p">;</span> <span class="nn">mwapi</span><span class="p">:</span><span class="nt">gcmlimit</span> <span class="s">&quot;max&quot;</span><span class="p">.</span> <span class="nv">?titleEn_</span> <span class="nn">wikibase</span><span class="p">:</span><span class="nt">apiOutput</span> <span class="nn">mwapi</span><span class="p">:</span><span class="nt">title</span><span class="p">.</span> <span class="p">}</span> <span class="k">BIND</span><span class="p">(</span><span class="nf">STRLANG</span><span class="p">(</span><span class="nv">?titleEn_</span><span class="p">,</span> <span class="s">&quot;en&quot;</span><span class="p">)</span> <span class="k">AS</span> <span class="nv">?titleEn</span><span class="p">)</span> <span class="nv">?articleEn</span> <span class="nn">schema</span><span class="p">:</span><span class="nt">name</span> <span class="nv">?titleEn</span><span class="p">;</span> <span class="nn">schema</span><span class="p">:</span><span class="nt">isPartOf</span> <span class="nl">&lt;https://en.wikipedia.org/&gt;</span><span class="p">;</span> <span class="nn">schema</span><span class="p">:</span><span class="nt">about</span> <span class="nv">?item</span><span class="p">.</span> <span class="nv">?articleEu</span> <span class="nn">schema</span><span class="p">:</span><span class="nt">about</span> <span class="nv">?item</span><span class="p">;</span> <span class="nn">schema</span><span class="p">:</span><span class="nt">isPartOf</span> <span class="nl">&lt;https://eu.wikipedia.org/&gt;</span><span class="p">;</span> <span class="nn">schema</span><span class="p">:</span><span class="nt">name</span> <span class="nv">?titleEu</span><span class="p">.</span> <span class="p">}</span> </pre></div><p><span class="plainlinks"><a class="external text" href="https://query.wikidata.org#SELECT%20%3FtitleEu%20%28%22%2BCategory%3ABASQUE%20CATEGORY%20HERE%22%20AS%20%3Fcommand%29%20WHERE%20%7B%0A%20%20hint%3AQuery%20hint%3Aoptimizer%20%22None%22.%0A%20%20SERVICE%20wikibase%3Amwapi%20%7B%0A%20%20%20%20%20bd%3AserviceParam%20wikibase%3Aapi%20%22Generator%22%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20wikibase%3Aendpoint%20%22en.wikipedia.org%22%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20mwapi%3Agenerator%20%22categorymembers%22%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20mwapi%3Agcmtitle%20%22Category%3AENGLISH_CATEGORY_HERE%22%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20mwapi%3Agcmnamespace%200%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20mwapi%3Agcmprop%20%22title%22%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20mwapi%3Agcmlimit%20%22max%22.%0A%20%20%20%20%20%3FtitleEn_%20wikibase%3AapiOutput%20mwapi%3Atitle.%0A%20%20%7D%0A%20%20BIND%28STRLANG%28%3FtitleEn_%2C%20%22en%22%29%20AS%20%3FtitleEn%29%0A%20%20%3FarticleEn%20schema%3Aname%20%3FtitleEn%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20schema%3AisPartOf%20%3Chttps%3A%2F%2Fen.wikipedia.org%2F%3E%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20schema%3Aabout%20%3Fitem.%0A%20%20%3FarticleEu%20schema%3Aabout%20%3Fitem%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20schema%3AisPartOf%20%3Chttps%3A%2F%2Feu.wikipedia.org%2F%3E%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20schema%3Aname%20%3FtitleEu.%0A%7D">Cliquez pour essayer&#160;!</a></span> </p><p>The following variant selects members of subcategories as well: </p> <div class="mw-highlight mw-highlight-lang-sparql mw-content-ltr" dir="ltr"><pre><span></span><span class="k">SELECT</span> <span class="nv">?titleEu</span> <span class="p">(</span><span class="s">&quot;+Category:BASQUE CATEGORY HERE&quot;</span> <span class="k">AS</span> <span class="nv">?command</span><span class="p">)</span> <span class="k">WHERE</span> <span class="p">{</span> <span class="nn">hint</span><span class="p">:</span><span class="nt">Query</span> <span class="nn">hint</span><span class="p">:</span><span class="nt">optimizer</span> <span class="s">&quot;None&quot;</span><span class="p">.</span> <span class="k">SERVICE</span> <span class="nl">&lt;https://query.wikidata.org/bigdata/namespace/categories/sparql&gt;</span> <span class="p">{</span> <span class="k">SERVICE</span> <span class="nn">mediawiki</span><span class="p">:</span><span class="nt">categoryTree</span> <span class="p">{</span> <span class="nn">bd</span><span class="p">:</span><span class="nt">serviceParam</span> <span class="nn">mediawiki</span><span class="p">:</span><span class="nt">start</span> <span class="nl">&lt;https://en.wikipedia.org/wiki/Category:ENGLISH_CATEGORY_URL_HERE&gt;</span><span class="p">;</span> <span class="nn">mediawiki</span><span class="p">:</span><span class="nt">direction</span> <span class="s">&quot;Reverse&quot;</span><span class="p">;</span> <span class="nn">mediawiki</span><span class="p">:</span><span class="nt">depth</span> <span class="mi">5</span> <span class="p">.</span> <span class="c"># change this if needed</span> <span class="p">}</span> <span class="p">}</span> <span class="nv">?out</span> <span class="nn">schema</span><span class="p">:</span><span class="nt">name</span> <span class="nv">?categoryEn</span><span class="p">.</span> <span class="k">SERVICE</span> <span class="nn">wikibase</span><span class="p">:</span><span class="nt">mwapi</span> <span class="p">{</span> <span class="nn">bd</span><span class="p">:</span><span class="nt">serviceParam</span> <span class="nn">wikibase</span><span class="p">:</span><span class="nt">api</span> <span class="s">&quot;Generator&quot;</span><span class="p">;</span> <span class="nn">wikibase</span><span class="p">:</span><span class="nt">endpoint</span> <span class="s">&quot;en.wikipedia.org&quot;</span><span class="p">;</span> <span class="nn">mwapi</span><span class="p">:</span><span class="nt">generator</span> <span class="s">&quot;categorymembers&quot;</span><span class="p">;</span> <span class="nn">mwapi</span><span class="p">:</span><span class="nt">gcmtitle</span> <span class="nv">?categoryEn</span><span class="p">;</span> <span class="nn">mwapi</span><span class="p">:</span><span class="nt">gcmnamespace</span> <span class="mi">0</span><span class="p">;</span> <span class="nn">mwapi</span><span class="p">:</span><span class="nt">gcmprop</span> <span class="s">&quot;title&quot;</span><span class="p">;</span> <span class="nn">mwapi</span><span class="p">:</span><span class="nt">gcmlimit</span> <span class="s">&quot;max&quot;</span><span class="p">.</span> <span class="nv">?titleEn_</span> <span class="nn">wikibase</span><span class="p">:</span><span class="nt">apiOutput</span> <span class="nn">mwapi</span><span class="p">:</span><span class="nt">title</span><span class="p">.</span> <span class="p">}</span> <span class="k">BIND</span><span class="p">(</span><span class="nf">STRLANG</span><span class="p">(</span><span class="nv">?titleEn_</span><span class="p">,</span> <span class="s">&quot;en&quot;</span><span class="p">)</span> <span class="k">AS</span> <span class="nv">?titleEn</span><span class="p">)</span> <span class="nv">?articleEn</span> <span class="nn">schema</span><span class="p">:</span><span class="nt">name</span> <span class="nv">?titleEn</span><span class="p">;</span> <span class="nn">schema</span><span class="p">:</span><span class="nt">isPartOf</span> <span class="nl">&lt;https://en.wikipedia.org/&gt;</span><span class="p">;</span> <span class="nn">schema</span><span class="p">:</span><span class="nt">about</span> <span class="nv">?item</span><span class="p">.</span> <span class="nv">?articleEu</span> <span class="nn">schema</span><span class="p">:</span><span class="nt">about</span> <span class="nv">?item</span><span class="p">;</span> <span class="nn">schema</span><span class="p">:</span><span class="nt">isPartOf</span> <span class="nl">&lt;https://eu.wikipedia.org/&gt;</span><span class="p">;</span> <span class="nn">schema</span><span class="p">:</span><span class="nt">name</span> <span class="nv">?titleEu</span><span class="p">.</span> <span class="p">}</span> <span class="k">LIMIT</span> <span class="mi">100</span> </pre></div><p><span class="plainlinks"><a class="external text" href="https://query.wikidata.org#SELECT%20%3FtitleEu%20%28%22%2BCategory%3ABASQUE%20CATEGORY%20HERE%22%20AS%20%3Fcommand%29%20WHERE%20%7B%0A%20%20hint%3AQuery%20hint%3Aoptimizer%20%22None%22.%0A%20%20SERVICE%20%3Chttps%3A%2F%2Fquery.wikidata.org%2Fbigdata%2Fnamespace%2Fcategories%2Fsparql%3E%20%7B%0A%20%20%20%20SERVICE%20mediawiki%3AcategoryTree%20%7B%0A%20%20%20%20%20%20bd%3AserviceParam%20mediawiki%3Astart%20%3Chttps%3A%2F%2Fen.wikipedia.org%2Fwiki%2FCategory%3AENGLISH_CATEGORY_URL_HERE%3E%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20mediawiki%3Adirection%20%22Reverse%22%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20mediawiki%3Adepth%205%20.%20%23%20change%20this%20if%20needed%0A%20%20%20%20%7D%0A%20%20%7D%0A%20%20%3Fout%20schema%3Aname%20%3FcategoryEn.%0A%20%20SERVICE%20wikibase%3Amwapi%20%7B%0A%20%20%20%20%20bd%3AserviceParam%20wikibase%3Aapi%20%22Generator%22%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20wikibase%3Aendpoint%20%22en.wikipedia.org%22%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20mwapi%3Agenerator%20%22categorymembers%22%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20mwapi%3Agcmtitle%20%3FcategoryEn%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20mwapi%3Agcmnamespace%200%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20mwapi%3Agcmprop%20%22title%22%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20mwapi%3Agcmlimit%20%22max%22.%0A%20%20%20%20%20%3FtitleEn_%20wikibase%3AapiOutput%20mwapi%3Atitle.%0A%20%20%7D%0A%20%20BIND%28STRLANG%28%3FtitleEn_%2C%20%22en%22%29%20AS%20%3FtitleEn%29%0A%20%20%3FarticleEn%20schema%3Aname%20%3FtitleEn%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20schema%3AisPartOf%20%3Chttps%3A%2F%2Fen.wikipedia.org%2F%3E%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20schema%3Aabout%20%3Fitem.%0A%20%20%3FarticleEu%20schema%3Aabout%20%3Fitem%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20schema%3AisPartOf%20%3Chttps%3A%2F%2Feu.wikipedia.org%2F%3E%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20schema%3Aname%20%3FtitleEu.%0A%7D%0ALIMIT%20100">Cliquez pour essayer&#160;!</a></span> </p><p>In both cases, replace <code>BASQUE CATEGORY HERE</code> with the category you want to add on the target wiki, and <code>ENGLISH_CATEGORY_HERE</code> or <code>ENGLISH_CATEGORY_URL_HERE</code> with the English Wikipedia category whose members you are interested in. </p> <div class="mw-heading mw-heading2"><h2 id="Limitations">Limitations</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=User:Lucas_Werkmeister/QuickCategories&amp;action=edit&amp;section=11" title="Edit section: Limitations"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Most of these limitations could, to some degree, be addressed if the need arises; please contact me on the talk page in that case. </p> <div class="mw-heading mw-heading3"><h3 id="Wikitext-based">Wikitext-based</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=User:Lucas_Werkmeister/QuickCategories&amp;action=edit&amp;section=12" title="Edit section: Wikitext-based"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>The tool analyzes and edits the Wikitext of the page, which means it doesn’t know anything about what templates do to the categories. If a template adds a category (e. g. based on information from Wikidata), the tool will not know that the category is already there and will add it explicitly to the article. It is also not possible to remove categories added via templates. </p> <div class="mw-heading mw-heading3"><h3 id="Category_link_text">Category link text</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=User:Lucas_Werkmeister/QuickCategories&amp;action=edit&amp;section=13" title="Edit section: Category link text"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>While the tool will recognize category links under any supported namespace name (e. g. [[Category:…]], [[Категория:…]] or [[К:…]] on Russian Wikipedia) when checking whether a category is already present (and doesn’t need to be added again), it will always use the translated category namespace name to add new categories ([[Категория:…]] in this case). </p><p>The tool will also not recognize any other namespace names when parsing submitted batches: they must always use Category:… syntax. </p> <div class="mw-heading mw-heading3"><h3 id="Subcategories">Subcategories</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=User:Lucas_Werkmeister/QuickCategories&amp;action=edit&amp;section=14" title="Edit section: Subcategories"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>The tool is not aware of sub- or parent categories: when tasked to add [[Category:People]] to a page that already has the subcategory [[Category:Living people]], it will add the category, even though it may be considered redundant. </p> <div class="mw-heading mw-heading3"><h3 id="Underscore_handling">Underscore handling</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=User:Lucas_Werkmeister/QuickCategories&amp;action=edit&amp;section=15" title="Edit section: Underscore handling"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>The tool will replace underscores with spaces when saving a submitted batch, so that, no matter whether you specified <code>+Category:<var>Category<strong> </strong>name</var></code> or <code>+Category:<var>Category<strong>_</strong>name</var></code>, [[Category:<var>Category<strong> </strong>name</var>]] will be added to the page. If you know of any categories that should really be added using underscores, similar to <a href="https://en.wikipedia.org/wiki/Category:Articles_with_underscores_in_the_title" class="extiw" title="w:Category:Articles with underscores in the title">w:Category:Articles with underscores in the title</a>, feel free to let me know, but even then I think it will almost certainly better to fix those category links using a separate bot, rather than change this tool and force all its users to replace underscores with spaces before submitting batches. </p><p>(Note: up to and including batch #10, the tool would use whatever combination of spaces and underscores was specified by the user, so you’ll see a few underscores in those early batches.) </p> <div class="mw-heading mw-heading3"><h3 id="Edit_conflicts">Edit conflicts</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=User:Lucas_Werkmeister/QuickCategories&amp;action=edit&amp;section=16" title="Edit section: Edit conflicts"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>MediaWiki suppresses conflicts between edits by the same user, so I recommend not editing any pages in a batch manually (or with another tool) while the batch is running. It’s okay if anyone else edits them (either this tool or the other editor will get an edit conflict, and if the tool gets an edit conflict, it will automatically retry later), it’s just you who need to back off for a bit. </p> <div class="mw-heading mw-heading3"><h3 id="Protected_pages">Protected pages</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=User:Lucas_Werkmeister/QuickCategories&amp;action=edit&amp;section=17" title="Edit section: Protected pages"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>The OAuth consumer used by the tool does not have the “edit protected pages” grant, so protected pages will be skipped even if you normally have the right to edit them. </p> <!-- NewPP limit report Parsed by mw‐web.eqiad.main‐587f7d4878‐2qf4c Cached time: 20241120211501 Cache expiry: 2592000 Reduced expiry: false Complications: [show‐toc] CPU time usage: 0.069 seconds Real time usage: 0.095 seconds Preprocessor visited node count: 322/1000000 Post‐expand include size: 27523/2097152 bytes Template argument size: 14676/2097152 bytes Highest expansion depth: 10/100 Expensive parser function count: 3/500 Unstrip recursion depth: 0/20 Unstrip post‐expand size: 19753/5000000 bytes Number of Wikibase entities loaded: 0/400 --> <!-- Transclusion expansion time report (%,ms,calls,template) 100.00% 34.289 1 -total 50.71% 17.388 3 Template:Sparql 47.43% 16.264 2 Template:Date 17.63% 6.046 3 Template:Plain_link 10.48% 3.595 2 Template:Uselang 9.89% 3.390 2 Template:I18n_month --> <!-- Saved in parser cache with key metawiki:pcache:idhash:10780185-0!canonical and timestamp 20241120211501 and revision id 27825048. Rendering was triggered because: page-view --> </div><!--esi <esi:include src="/esitest-fa8a495983347898/content" /> --><noscript><img src="https://login.wikimedia.org/wiki/Special:CentralAutoLogin/start?type=1x1" alt="" width="1" height="1" style="border: none; position: absolute;"></noscript> <div class="printfooter" data-nosnippet="">Retrieved from "<a dir="ltr" href="https://meta.wikimedia.org/w/index.php?title=User:Lucas_Werkmeister/QuickCategories&amp;oldid=27825048">https://meta.wikimedia.org/w/index.php?title=User:Lucas_Werkmeister/QuickCategories&amp;oldid=27825048</a>"</div></div> <div id="catlinks" class="catlinks" data-mw="interface"><div id="mw-normal-catlinks" class="mw-normal-catlinks"><a href="/wiki/Special:Categories" title="Special:Categories">Category</a>: <ul><li><a href="/wiki/Category:Tools_and_scripts" title="Category:Tools and scripts">Tools and scripts</a></li></ul></div></div> </div> </main> </div> <div class="mw-footer-container"> <footer id="footer" class="mw-footer" > <ul id="footer-info"> <li id="footer-info-lastmod"> This page was last edited on 20 November 2024, at 21:07.</li> <li id="footer-info-copyright">Text is available under the <a rel="nofollow" class="external text" href="https://creativecommons.org/licenses/by-sa/4.0/deed.en">Creative Commons Attribution-ShareAlike License</a>; additional terms may apply. See <a class="external text" href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Terms_of_Use">Terms of Use</a> for details.</li> </ul> <ul id="footer-places"> <li id="footer-places-privacy"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Privacy_policy">Privacy policy</a></li> <li id="footer-places-about"><a href="/wiki/Meta:About">About Meta</a></li> <li id="footer-places-disclaimers"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:General_disclaimer">Disclaimers</a></li> <li id="footer-places-wm-codeofconduct"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Universal_Code_of_Conduct">Code of Conduct</a></li> <li id="footer-places-developers"><a href="https://developer.wikimedia.org">Developers</a></li> <li id="footer-places-statslink"><a href="https://stats.wikimedia.org/#/meta.wikimedia.org">Statistics</a></li> <li id="footer-places-cookiestatement"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Cookie_statement">Cookie statement</a></li> <li id="footer-places-mobileview"><a href="//meta.m.wikimedia.org/w/index.php?title=User:Lucas_Werkmeister/QuickCategories&amp;mobileaction=toggle_view_mobile" class="noprint stopMobileRedirectToggle">Mobile view</a></li> </ul> <ul id="footer-icons" class="noprint"> <li id="footer-copyrightico"><a href="https://wikimediafoundation.org/" class="cdx-button cdx-button--fake-button cdx-button--size-large cdx-button--fake-button--enabled"><img src="/static/images/footer/wikimedia-button.svg" width="84" height="29" alt="Wikimedia Foundation" loading="lazy"></a></li> <li id="footer-poweredbyico"><a href="https://www.mediawiki.org/" class="cdx-button cdx-button--fake-button cdx-button--size-large cdx-button--fake-button--enabled"><img src="/w/resources/assets/poweredby_mediawiki.svg" alt="Powered by MediaWiki" width="88" height="31" loading="lazy"></a></li> </ul> </footer> </div> </div> </div> <div class="vector-settings" id="p-dock-bottom"> <ul></ul> </div><script>(RLQ=window.RLQ||[]).push(function(){mw.config.set({"wgHostname":"mw-web.codfw.main-f69cdc8f6-rlhbk","wgBackendResponseTime":146,"wgPageParseReport":{"limitreport":{"cputime":"0.069","walltime":"0.095","ppvisitednodes":{"value":322,"limit":1000000},"postexpandincludesize":{"value":27523,"limit":2097152},"templateargumentsize":{"value":14676,"limit":2097152},"expansiondepth":{"value":10,"limit":100},"expensivefunctioncount":{"value":3,"limit":500},"unstrip-depth":{"value":0,"limit":20},"unstrip-size":{"value":19753,"limit":5000000},"entityaccesscount":{"value":0,"limit":400},"timingprofile":["100.00% 34.289 1 -total"," 50.71% 17.388 3 Template:Sparql"," 47.43% 16.264 2 Template:Date"," 17.63% 6.046 3 Template:Plain_link"," 10.48% 3.595 2 Template:Uselang"," 9.89% 3.390 2 Template:I18n_month"]},"cachereport":{"origin":"mw-web.eqiad.main-587f7d4878-2qf4c","timestamp":"20241120211501","ttl":2592000,"transientcontent":false}}});});</script> </body> </html>

Pages: 1 2 3 4 5 6 7 8 9 10