Meno25 created this task.
Meno25 added projects: Pywikibot, Pywikibot-Scripts.
Restricted Application added subscribers: pywikibot-bugs-list, alaa, Aklapper.

TASK DESCRIPTION
  **Background information:**
  
  - standardizePageFooter 
<https://github.com/wikimedia/pywikibot/blob/master/pywikibot/cosmetic_changes.py#L329>
 moves the main category (the category that matches the article title) to the 
top of all the categories.
  - But in the process, it also changes the sort key of the main category to be 
a space (' ') like on English Wikipedia (enwiki).
  - On Arabic Wikipedia, per local policy, we use an asterisk '*' and not a 
space ' ' as sort key for the main category in articles.
  
  **Example of current behavior:**
  
    python pwb.py cosmetic_changes -page:"روستوك" -lang:ar
  
  **Output:**
  
  - This is the edit <https://ar.wikipedia.org/w/index.php?diff=67368581> on 
wiki.
  
    Retrieving 1 pages from wikipedia:ar.
    
    
    >>> روستوك <<<
    @@ -183 +183 @@
    - [[تصنيف:روستوك|*]]
    + [[تصنيف:روستوك| ]]
    
    Edit summary: بوت: تغييرات تجميلية
    Do you want to accept these changes? ([y]es, [N]o, [a]ll, [q]uit): y
    Page [[روستوك]] saved
  
  **Request:**
  
  - Please make the bot use an asterisk '*' and not a space ' ' as sort key for 
the main category on Arabic Wikipedia (arwiki).
  - So, for the previous edit, the bot should have done nothing, because the 
main category in the article already uses an asterisk '*' as sort key. Thank 
you.
  
  **Software version:**
  
    Pywikibot: [https] r-pywikibot-core (725f89c, g18942, 2024/07/19, 16:32:18, 
master)
    Release version: 9.3.0.dev1
    packaging version: 24.1
    mwparserfromhell version: 0.6.6
    wikitextparser version: 0.56.0
    requests version: 2.32.3
        certificate test: ok
    Python: 3.12.4 (tags/v3.12.4:8e8a4ba, Jun  6 2024, 19:30:16) [MSC v.1940 64 
bit (AMD64)]

TASK DETAIL
  https://phabricator.wikimedia.org/T370536

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Meno25
Cc: Aklapper, alaa, pywikibot-bugs-list, Meno25, mevo, PotsdamLamb, Jyoo1011, 
JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Aram, Viztor, Wenyi, Tbscho, 
MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, 
jayvdb, Masti, Alchimista
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to