Page MenuHomePhabricator

{{int:Conversionname}} cannot be always rendered correctly in Sitenotice
Open, LowPublic

Description

see bug 19840. because -{ }- is not supported in Sitenotice, we use code like {{#switch:{{int:Conversionname}}|zh-hans=s|zh-hant=t}} to do conversion.
the bug described in summary caused that bug.


Version: 1.16.x
Severity: normal

Details

Reference
bz19846

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 10:38 PM
bzimport added a project: MediaWiki-Parser.
bzimport set Reference to bz19846.
bzimport added a subscriber: Unknown Object (MLST).

Yes, that's because the site notice is cached and thus is only parsed when the cache expires. This means that "{{#switch:...}}" is only expanded on a cache miss and all other requests will use the same result.

  • Bug 20734 has been marked as a duplicate of this bug. ***

Created attachment 6581
add variant name to cache key

trying to fix ... i'm new to php :)

Attached:

webmaster wrote:

Piling on: I want to use variables such as PAGENAMEE inside the Sitenotice, so that there may be different links inside the sitenotice for different pages. However, the caching of sitenotice gets in the way.

(In reply to comment #4)

Piling on: I want to use variables such as PAGENAMEE inside the Sitenotice, so
that there may be different links inside the sitenotice for different pages.
However, the caching of sitenotice gets in the way.

bug 8420

sumanah wrote:

Liangent, thank you for your contribution. I'm sorry no one responded to your patch in a timely fashion. I see that it now doesn't apply cleanly to trunk. Are you interested in updating it?