Re: magic variable {{LOGGED-IN}} or similar?

Amir Sarabadani <[email protected]>
Newsgroups gmane.org.wikimedia.mediawiki
Message-ID <CA+ttme17aFdD+gVX_Wbm5H2nhPr-rhZw_cFL3M_J2AVdj39Zgw@mail.gmail.com>
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 via MediaWiki-l <
[email protected]> wrote:

> 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
> _______________________________________________
> MediaWiki-l mailing list -- [email protected]
> To unsubscribe send an email to [email protected]
>
> https://lists.wikimedia.org/postorius/lists/mediawiki-l.lists.wikimedia.org/
>


-- 
Amir (he/him)

_______________________________________________
MediaWiki-l mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://lists.wikimedia.org/postorius/lists/mediawiki-l.lists.wikimedia.org/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.