Page MenuHomePhabricator

PAGENAME doesn't work on Mediawiki:Sitenotice.
Closed, DeclinedPublic

Description

Author: wikipedia01

Description:
{{PAGENAME}} and other similar magic words doesn't work on Mediawiki:Sitenotice.
Sometimes works well, but ofen gives other page.


Version: unspecified
Severity: normal
OS: Windows XP
Platform: PC

Details

Reference
bz8420

Event Timeline

bzimport raised the priority of this task from to Lowest.Nov 21 2014, 9:34 PM
bzimport added a project: MediaWiki-Parser.
bzimport set Reference to bz8420.
bzimport added a subscriber: Unknown Object (MLST).

wikipedia01 wrote:

It occurs on JA:WN.

Sitenotice is cached pretty aggressively, and will be more so in the future.
It's probably not safe to assume you can get per-page information into the site
notice text.

Aphaia wrote:

Thank you for your comment, Brion.

So, questions:

  • How about putting them [[MediaWiki:Sidebar]]?
  • Can we ask you developers to localize "toolbox" on the left column to

including such per-page information?

It is not necessary to put it on the sitenotice, and even it is safe, it seems
ideal to put per-page function like "cache the page" into the toolbox to sort
information logically.

robchur wrote:

The sidebar is also subject to aggressive caching, in fact, one could argue it's
even *more* aggressive than the sitenotice.

The toolbox is generated in the skin code with contextual links relevant to the
page being viewed - special pages, article views, old revisions, etc. all have
different links in the toolbox.

It's not clear exactly what you want us to do.

wikipedia01 wrote:

Thak you for your answers.
We'd like to put a "refresh this page" link to the sidebar or sitenotice.

robchur wrote:

(In reply to comment #6)

We'd like to put a "refresh this page" link to the sidebar or sitenotice.

I don't understand what you mean by "refresh this page" in this context; it has
multiple uses when applied to a MediaWiki wiki.

Both the sidebar and sitenotice(s) are cached. This is to save processing time
and help speed up page views. As a result of this caching, magic words such as
{{PAGENAME}} and so forth will not work as usual.

wikipedia01 wrote:

(In reply to comment #7)

I don't understand what you mean by "refresh this page" in this context; it has
multiple uses when applied to a MediaWiki wiki.

I meant,
[{{fullurl:{{FULLPAGENAME}}|action=purge}} refresh this page]

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