In T401506#11169918, @Dragoniez wrote:In T401506#11169730, @Dabao_qian wrote: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.
- Feed Queries
- All Stories
- Search
- Feed Search
- Transactions
- Transaction Logs
Feed Search
Sep 11 2025
Sep 11 2025
Sep 10 2025
Sep 10 2025
In T401506#11169627, @Dragoniez wrote:This change would raise server load concerns; hence stalled.
In T401506#11169563, @Dabao_qian wrote: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.
In T401506#11085151, @Niharika wrote:@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.
Aug 7 2025
Aug 7 2025
Dabao_qian updated the task description for T401437: class mw-parser-output missing lang attribute on Extension:Popups.
Dabao_qian updated the task description for T401437: class mw-parser-output missing lang attribute on Extension:Popups.
Jun 7 2025
Jun 7 2025
Aug 7 2024
Aug 7 2024
Jul 19 2017
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.
Content licensed under Creative Commons Attribution-ShareAlike (CC BY-SA) 4.0 unless otherwise noted; code licensed under GNU General Public License (GPL) 2.0 or later and other open source licenses. By using this site, you agree to the Terms of Use, Privacy Policy, and Code of Conduct. · Wikimedia Foundation · Privacy Policy · Code of Conduct · Terms of Use · Disclaimer · CC-BY-SA · GPL · Credits