[MediaWiki-l] Re: magic variable {{LOGGED-IN}} or similar?

2022-01-11 Thread John
Why not just do it in Javascript/CSS and use the MediaWiki:Group-.js /CSS pages? On Tue, Jan 11, 2022 at 12:09 PM Bartosz Dziewoński wrote: > There are some extensions that implement similar things: > > https://www.mediawiki.org/wiki/Extension:RightFunctions > https://www.mediawiki.org/wiki/Exte

[MediaWiki-l] Re: Move wiki to subfolder

2022-01-11 Thread Marcus Buss
Thanks a lot, correctly defining wgScriptPath did help, was set to =„“ before. Greetings, Marcus > Am 11.01.2022 um 01:46 schrieb Bartosz Dziewoński : > > You need to update $wgScriptPath and $wgArticlePath (if it's defined) in your > LocalSettings.php to point to the new paths. > > If you've

[MediaWiki-l] Re: magic variable {{LOGGED-IN}} or similar?

2022-01-11 Thread Bartosz Dziewoński
There are some extensions that implement similar things: https://www.mediawiki.org/wiki/Extension:RightFunctions https://www.mediawiki.org/wiki/Extension:UserFunctions I haven't used either of them, but it looks like they both can do this job. -- Bartosz Dziewoński _

[MediaWiki-l] Re: magic variable {{LOGGED-IN}} or similar?

2022-01-11 Thread Amir Sarabadani
There is nothing AFAIK but it would mess with ParserCache so if someone needs to implement it, it means they have to fragment parser cache based on status of logged in or logged out which can be quite expensive in large places (like Wikipedia) HTH On Tue, Jan 11, 2022 at 5:42 PM Patrick Schleizer

[MediaWiki-l] magic variable {{LOGGED-IN}} or similar?

2022-01-11 Thread Patrick Schleizer via MediaWiki-l
Is there a magic variable {{LOGGED-IN}} or a similar mechanism that could be used to detected from within the wiki markup, CSS or Extension:Widgets? Background: Creating menus / content which is different for anonymous visitors and logged in users (mostly wiki administrators). Cheers, Patrick ___