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 ::::
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@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@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@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
On Wed, Nov 7, 2012 at 2:47 PM, Jan Steinman Jan@bytesmiths.com wrote:
I find that I cannot put {{CURRENTYEAR}} in the #REDIRECT link, such as: #REDIRECT [[Budget, {{CURRENTYEAR}}]]
Why not? Such links work elsewhere!
This does not work with redirects. They're not parsed in the same way pages normally are (it just looks for #REDIRECT + a link).
-Chad
On 07/11/12 21:00, Chad wrote:
On Wed, Nov 7, 2012 at 2:47 PM, Jan Steinman Jan@bytesmiths.com wrote:
I find that I cannot put {{CURRENTYEAR}} in the #REDIRECT link, such as: #REDIRECT [[Budget, {{CURRENTYEAR}}]]
Why not? Such links work elsewhere!
This does not work with redirects. They're not parsed in the same way pages normally are (it just looks for #REDIRECT + a link).
-Chad
We could expand parser functions if there are {{ }} there. Seems worth to open a bug.
On Wed, Nov 7, 2012 at 5:17 PM, Platonides Platonides@gmail.com wrote:
On 07/11/12 21:00, Chad wrote:
On Wed, Nov 7, 2012 at 2:47 PM, Jan Steinman Jan@bytesmiths.com wrote:
I find that I cannot put {{CURRENTYEAR}} in the #REDIRECT link, such as: #REDIRECT [[Budget, {{CURRENTYEAR}}]]
Why not? Such links work elsewhere!
This does not work with redirects. They're not parsed in the same way pages normally are (it just looks for #REDIRECT + a link).
-Chad
We could expand parser functions if there are {{ }} there. Seems worth to open a bug.
It's been WONTFIX'd since '05. I guess we can reopen it :)
https://bugzilla.wikimedia.org/show_bug.cgi?id=1575
-Chad
That won't work, but in the middle you can use a Soft redirect template like on mediawiki.org
http://www.mediawiki.org/wiki/Template:Soft_redirect Jamie Thingelstad jamie@thingelstad.com mobile: 612-810-3699 find me on AIM Twitter Facebook LinkedIn
On Nov 7, 2012, at 1:47 PM, Jan Steinman wrote:
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@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org