Page MenuHomePhabricator

Redirect does not work while in template with parameter
Closed, ResolvedPublic

Description

Wanted to make "Template:Redir" like this:

#REDIRECT [[{{{1}}}]] [[Category:Redirects - {{{2|All}}}]]

to be called eg. on page "Kg":

{{Redir|Kilogram|Abbreviation}}

to categorize redirects and allowing writing of redirect in much shorter and
more intuitive form.

The page Kg is rendered with ordered list though such as:

  1. #REDIRECT [[Kilogram]]

Categories: Redirects - Abbreviation

The general problem: redirect itself is sometime rendered as ordered list before
recaching, which confuses people, who try to rewrite it again. That produces
unnecessary mess in RC list.

Question: Why redirect is not rendered properly while being used as described above?
Suggestion for general problem: Changing of syntax. eg. %REDIRECT [[...]]% or
REDIRECT [[...]] or whatever else what can't be mixed with other current syntax.


Version: unspecified
Severity: normal

Details

Reference
bz4763

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:04 PM
bzimport set Reference to bz4763.
bzimport added a subscriber: Unknown Object (MLST).

Redirects are static. Please don't abuse templates like this; it's not meant to
work, it doesn't work, it's a waste of time. If it did work it would be fragile
and cause things to break when they're tweaked or the software changes.

WONTFIX.

gangleri wrote:

REOPENing and marking as duplicate of
Bug 1575: #REDIRECT with transcluded string does not redirect
having also another duplicate
Bug 1685: Template name as redirect

gangleri wrote:

*** This bug has been marked as a duplicate of 1575 ***

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