The answer to why it doesn't it work is here:
http://meta.wikimedia.org/wiki/Help:Redirect#Restrictions
The answer to why shouldn't it work isn't there, but perhaps someone has a
good reason. I learned this a little while ago when I wanted to do my own
fun things with redirects.
-----Original Message-----
From: mediawiki-l-bounces(a)lists.wikimedia.org
[mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Jan Steinman
Sent: Wednesday, November 07, 2012 11:48 AM
To: mediawiki-l(a)lists.wikimedia.org
Subject: [MediaWiki-l] What can go in a #REDIRECT? (not system variables!)
I'm using MediaWiki 1.16.2. (Yea, I know. But it's running so well, and
every time I've upgraded, it's cost me a couple days of mop-up.)
I have a number of pages in the format "Something, YYYY" or "YYYY
something," such as "Budget, 2012" or "2012 harvest".
I have a number of #REDIRECT pages like "Current budget" that point to (for
example) "Budget, 2012". Presently, I manually update them at year-end.
I find that I cannot put {{CURRENTYEAR}} in the #REDIRECT link, such as:
#REDIRECT [[Budget, {{CURRENTYEAR}}]]
Why not? Such links work elsewhere!
When I do so, the redirect no longer works, and someone clicking on "Current
budget" (for example) ends up on the redirect page, rather than the page
being pointed to by the #REDIRECT.
Is this a bug I should report? Is there some work-around? Does it work
properly in newer versions? (Could be what I need to upgrade... :-)
Any other hints to get it to do what I want?
Thanks!
----------------
:::: Ladybug, ladybug, Look to your stern! Your house is on fire, Your
children will burn! So jump ye and sing, for The very first time The four
lines above Have been put into rhyme. -- Walt Kelly
:::: Jan Steinman, EcoReality Co-op ::::
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l