Is it possible to do a redirect such as the following?
#REDIRECT [[{{CURRENTMONTHNAME}} {{CURRENTDAY}} {{CURRENTYEAR}}]]
For example I'm trying redirect the page Today to "May 26 2005" in this case. All I'm getting is
Today 1. REDIRECT May 26 2005
It may be entirely not possible to use variables in redirects, but I thought I would check. I can't find anything about this specific case in the Meta.
Thanks!
Apparently not. What would be a better choice (at this time) would be to create a template or two with the appropriate link. Eg:
Template:Today_page [[{{CURRENTMONTHNAME}} {{CURRENTDAY}} {{CURRENTYEAR}}]]
Template:Today_page2 [[{{CURRENTMONTHNAME}} {{CURRENTDAY}} {{CURRENTYEAR}}|{{{1}}}]]
On 5/26/05, Heiser, Damien Damien_Heiser@cable.comcast.com wrote:
Is it possible to do a redirect such as the following?
#REDIRECT [[{{CURRENTMONTHNAME}} {{CURRENTDAY}} {{CURRENTYEAR}}]]
For example I'm trying redirect the page Today to "May 26 2005" in this case. All I'm getting is
Today
- REDIRECT May 26 2005
It may be entirely not possible to use variables in redirects, but I thought I would check. I can't find anything about this specific case in the Meta.
Thanks! _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
On 26/05/05, Heiser, Damien Damien_Heiser@cable.comcast.com wrote:
Is it possible to do a redirect such as the following?
#REDIRECT [[{{CURRENTMONTHNAME}} {{CURRENTDAY}} {{CURRENTYEAR}}]]
No. Occasionally someone opens a bug report to the effect that a redirect statement with a template in it doesn't work, and it gets marked WONTFIX with a comment that redirects should always refer to a specific page. The reasoning presumably being that the software should be able to store and retrieve from the database the exact target of the redirect without having to parse any syntax.
Of course, your example adds an extra dimension of awkwardness, since who knows how such a redirect would interact with the internal parser-cache if it did work...
mediawiki-l@lists.wikimedia.org