[09:40:29] is there any way to let MW uses localized namespace name in URL? when I am accessing 模板:xxx it is redirecting me to Template:xxx [10:06:53] xtex: did you set the $wgLanguageCode in LocalSettings.php? https://www.mediawiki.org/wiki/Manual:$wgLanguageCode [10:07:46] hm, although, on second thought – if you didn’t do that, then I wouldn’t expect MediaWiki to even recognize 模板:xxx as a template page 🤔 [10:08:00] not sure under what circumstances MediaWiki would recognize the localized namespace but still redirect to the English version [10:15:40] Lucas_WMDE: I set wgLanguageCode. I also tested several other wikis whose wgLanguageCode is zh and they also redirects. [10:16:13] huh, indeed, https://zh.wikipedia.org/wiki/模板:xxx too [10:16:44] I guess it might be a thing specific to Chinese (and maybe other languages with variants)? in that case I don’t think I can help you, sorry [12:09:48] Lucas_WMDE: Thanks. [12:10:15] I already found the reason: `wgLanguageCode = zh` will lead to English namespace and `wgLanguageCode = zh-hans` leads to Chinese namespace [12:13:11] how to set localized namespace name for custom namespaces? [13:01:16] xtex: my guess would be that you should just define them using localized names in $wgExtraNamespaces [13:01:27] and if you also want English names to work, put those in $wgNamespaceAliases [13:02:23] That would sound right to me [13:03:03] Lucas_WMDE, Reedy: thanks. it works! [13:36:34] how to show a section only to login users? I remembered there was a magic word but I can't find it now. [13:38:42] hm, I don’t remember any such magic word [14:49:19] Lucas_WMDE: there's an extension [14:49:36] Although it might not work properly cause it might be the one that doesn't split parser cache [14:50:06] * RhinosF1 is looking but train wifi [14:51:55] I see https://www.mediawiki.org/wiki/Extension:WikiTextLoggedInOut [14:53:19] apparently the parser cache behavior was even fixed in https://gerrit.wikimedia.org/r/c/mediawiki/extensions/WikiTextLoggedInOut/+/889298, nice [14:55:45] Lucas_WMDE: wasn't that extension I was thinking of but nice to know that bug has already been fixed [14:56:05] I searched through my github history cause it was a github extension not a gerrit one [14:56:24] xtex: https://www.mediawiki.org/wiki/Extension:WikiTextLoggedInOut should work