Page MenuHomePhabricator

Dabao_qian
User

Projects

User does not belong to any projects.

Today

  • No visible events.

Tomorrow

  • No visible events.

Thursday

  • No visible events.

User Details

User Since
Jul 19 2017, 8:52 AM (447 w, 6 d)
Availability
Available
LDAP User
Unknown
MediaWiki User
Dabao qian [ Global Accounts ]

Recent Activity

Sep 11 2025

Dabao_qian added a comment to T401506: MediaWiki:Group-temp.js/.css do not load.

A quick and dirty way is using {{#invoke:String|match|<currect user name>|^%d+-%d+-?%d*%d+$|nomatch=}} to match the format of temporary account. But I haven't found a way to get the current user name yet.

{{#ifeq:{{#invoke:String|match|{{REVISIONUSER}}|^~2|nomatch=}}|~2|temp|other}} would do the job. Matching against /^~2/ should be pretty sufficient under the WMF-wiki setup because $wgAutoCreateTempUser['matchPattern'] is defined as ~2$1 in CommonSettings.php#4369.

Sep 11 2025, 1:40 AM · Product Safety and Integrity, MediaWiki-Platform-Team (Radar), Temporary accounts, Patch-For-Review, MediaWiki-ResourceLoader

Sep 10 2025

Dabao_qian added a comment to T401506: MediaWiki:Group-temp.js/.css do not load.

This change would raise server load concerns; hence stalled.

Another example is MediaWiki:Blockedtext, the "Appeal on talk page" section should only display to registered users and temporary users but not anonymous users because anonymous users doesn't have their own's talk page and Special:Mytalk of an anonymous user will redirects to login page.

In your case, I think you should use a Lua module instead to parse $7 for user type. You don’t really need to rely on JS and CSS to achieve that, AFAICT. See e.g. the Util class in https://ja.wikipedia.org/wiki/Module:IP.

Sep 10 2025, 8:03 PM · Product Safety and Integrity, MediaWiki-Platform-Team (Radar), Temporary accounts, Patch-For-Review, MediaWiki-ResourceLoader
Dabao_qian added a comment to T401506: MediaWiki:Group-temp.js/.css do not load.

@Dragoniez thanks for your effort on this task! We discussed this internally and think it is better to implement the logout confirmation step for all users as outlined in T378806: Add confirmation step to exit session flow for temp accounts. Our team will take on this work (or if you want to - more than happy to support!).

I will mark this task as stalled for now until we have clarity about other use cases which require loading JS and CSS scripts for temp accounts specifically.

Sep 10 2025, 7:20 PM · Product Safety and Integrity, MediaWiki-Platform-Team (Radar), Temporary accounts, Patch-For-Review, MediaWiki-ResourceLoader
Dabao_qian updated the task description for T404242: Add new site CSS/JS for tempuser.
Sep 10 2025, 6:34 PM · OKR-Work, Trust and Safety Product Team, Temporary accounts
Dabao_qian updated the task description for T404242: Add new site CSS/JS for tempuser.
Sep 10 2025, 6:33 PM · OKR-Work, Trust and Safety Product Team, Temporary accounts
Dabao_qian created T404242: Add new site CSS/JS for tempuser.
Sep 10 2025, 6:30 PM · OKR-Work, Trust and Safety Product Team, Temporary accounts

Aug 7 2025

Dabao_qian updated the task description for T401437: class mw-parser-output missing lang attribute on Extension:Popups.
Aug 7 2025, 8:02 PM · Page-Previews (Tracking), Cite, Chinese-Sites
Dabao_qian updated the task description for T401437: class mw-parser-output missing lang attribute on Extension:Popups.
Aug 7 2025, 8:01 PM · Page-Previews (Tracking), Cite, Chinese-Sites
Dabao_qian created T401437: class mw-parser-output missing lang attribute on Extension:Popups.
Aug 7 2025, 7:53 PM · Page-Previews (Tracking), Cite, Chinese-Sites

Jun 7 2025

Dabao_qian created T396275: "Wikidata item" link was not localized.
Jun 7 2025, 4:42 PM · Wikidata Integration in Wikimedia projects, Wikimedia-Interwiki-links, Wikidata

Aug 7 2024

Dabao_qian created T371995: Request sysop and editinterface permission on zh.wikipedia.beta.wmflabs.org.
Aug 7 2024, 6:06 PM · Beta-Cluster-Infrastructure

Jul 19 2017

Dabao_qian added a comment to T170656: MediaWiki:Comma-separator should be separated into two messages for CJK localization.

I think that Cantonese Wikipedia, Wuu Wikipedia and Gan Wikipedia should also make the change.

Jul 19 2017, 9:00 AM · MediaWiki-Internationalization, Chinese-Sites, I18n