Page MenuHomePhabricator

Noinclude redirects
Closed, ResolvedPublic

Description

Author: seahen123

Description:
Some English Wikipedians want {{:-)}} to produce a smiley icon, while others want the page at -) to remain a redirect to [[Emoticon]]. If redirects worked properly with noinclude, includeonly and onlyinclude, the page could serve both masters.

I've tried in a personal sandbox enclosing the redirect in a noinclude tag, but then it does not function. I've tried putting the smiley in an onlyinclude tag, but then the redirect still overrides it. The following page should ideally produce a redirect when clicked and a smiley when transcluded:

<noinclude>#REDIRECT [[Emoticon]]</noinclude>
<includeonly>:-)</includeonly>


Version: unspecified
Severity: normal
URL: http://en.wikipedia.org/w/index.php?title=-)&redirect=no

Details

Reference
bz17690

Event Timeline

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

Recommend WONTFIX. Whether a page is a redirect (and where to) is stored in and read from the database, not from the page itself. Having a page that is a redirect under certain circumstances and not a redirect under other circumstances ranges from crazy to impossible, depending on who you ask.

seahen123 wrote:

Then what if, instead of status as a redirect, it was the target that varied?

#REDIRECT <noinclude>[[Emoticon]]</noinclude><includeonly>[[Template:Smiley]]</includeonly>

(In reply to comment #2)

Then what if, instead of status as a redirect, it was the target that varied?

#REDIRECT
<noinclude>[[Emoticon]]</noinclude><includeonly>[[Template:Smiley]]</includeonly>

IMO that's not much better

Not to mention, that requires parsing of redirects to begin with, which we avoid. Not sure if the overhead from parsing is really worth it. I'm not seeing a use-case here. Agree with Roan's suggestion to WONTFIX this.

  • This bug has been marked as a duplicate of bug 14323 ***