Last modified: 2009-03-19 18:07:49 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T19690, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 17690 - Noinclude redirects
Noinclude redirects
Status: RESOLVED DUPLICATE of bug 14323
Product: MediaWiki
Classification: Unclassified
Templates (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
http://en.wikipedia.org/w/index.php?t...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-02-27 01:54 UTC by seahen123
Modified: 2009-03-19 18:07 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description seahen123 2009-02-27 01:54:29 UTC
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>
Comment 1 Roan Kattouw 2009-02-27 12:37:19 UTC
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.
Comment 2 seahen123 2009-02-27 14:36:11 UTC
Then what if, instead of status as a redirect, it was the target that varied?

#REDIRECT <noinclude>[[Emoticon]]</noinclude><includeonly>[[Template:Smiley]]</includeonly>
Comment 3 Roan Kattouw 2009-02-27 14:54:45 UTC
(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
Comment 4 Chad H. 2009-02-27 15:05:27 UTC
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.
Comment 5 Chad H. 2009-03-19 18:07:49 UTC

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

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links