Last modified: 2014-11-18 18:07:33 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 2012 - Allow text added to a redirect page to be included on the target page
Allow text added to a redirect page to be included on the target page
Status: REOPENED
Product: MediaWiki
Classification: Unclassified
Redirects (Other open bugs)
unspecified
All All
: Low enhancement with 14 votes (vote)
: ---
Assigned To: Nobody - You can work on this!
:
: 7091 7178 8888 10990 13595 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-04-29 00:46 UTC by Edward Z. Yang
Modified: 2014-11-18 18:07 UTC (History)
9 users (show)

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


Attachments

Description Edward Z. Yang 2005-04-29 00:46:03 UTC
A while ago, there was a topic on Wikitech-l that discussed "Redirect to
Anchor". Noting that this is technically impossible, but also concerned without
redirects such as:

Blood Agar --> Agar Plate

where the relevant information is tucked away very far down in the article, the
following feature is requested:

Current behavior of Redirects totally masks any text that comes after the
#REDIRECT [[]] declaration. Feature would modify behavior, where now this extra
text (provided there is text at all), is placed at the top of the article people
are redirected to, perhaps, in some way, reformatted to be prominent.

The earlier example cited could be rectified in this manner:

----
#REDIRECT [[Agar plate]]

'''Blood agar''' is a special type of agar plate. See [[Agar
plate#Types_of_agar_plates]]
----

The following text would be inserted at the top of the article, so:

----
:<i>'''Blood agar''' is a special type of agar plate. See [[Agar
plate#Types_of_agar_plates]]</i>

An '''agar plate''' is a sterile [[Petri dish]] that... (continue main content) 
----

IMHO, I think this is an elegant way of solving the "Irrelevant Redirect"
problem. I also do not think that it would be very difficult to implement
(although I'm no programmer for Mediawiki, so I can't really make any statements
on this).
Comment 1 Paolo Liberatore 2006-08-30 14:45:53 UTC
Since it is currently possible to add text after the redirect, and people are
already using this possibility for adding metadata (typically, categories)
which do not refer to the target page, I suggest a change of this proposal: use
the text *before* the redirect for that; such text currently makes the redirect non-functional.
Comment 2 Aryeh Gregor (not reading bugmail, please e-mail directly) 2006-08-30 15:10:57 UTC
*** Bug 7091 has been marked as a duplicate of this bug. ***
Comment 3 Aryeh Gregor (not reading bugmail, please e-mail directly) 2006-08-30 15:12:09 UTC
(In reply to comment #1)
> Since it is currently possible to add text after the redirect, and people are
> already using this possibility for adding metadata (typically, categories)
> which do not refer to the target page, I suggest a change of this proposal: use
> the text *before* the redirect for that; such text currently makes the
redirect non-functional.

How is the parser supposed to know it's a redirect?  Should the string
"#REDIRECT" followed by a wikilink be banned in the first line (unless you want
it to become a redirect)?  Probably that wouldn't break much, granted . . .
Comment 4 Giorgio Gonnella 2006-08-30 17:01:43 UTC
I guess the string "#REDIRECT" followed by a wikilink is already banned from the first line 
unless you want it to become a redirect, isnt'it? 

I think the best would be to insert the additional text in some tags like the example of Edward 
Z. Yang up here, so the parser could know what to additionaly show in the target page, e.g.: 

:<description>'''Blood agar''' is a special type of agar plate. See [[Agar
plate#Types_of_agar_plates]]</description>
Comment 5 Aryeh Gregor (not reading bugmail, please e-mail directly) 2006-08-31 00:46:56 UTC
*** Bug 7178 has been marked as a duplicate of this bug. ***
Comment 6 Aryeh Gregor (not reading bugmail, please e-mail directly) 2006-08-31 00:48:07 UTC
Connel MacKenzie suggested the perfect syntax at bug 7178: just [[Page|what to
display]].  Quite intuitive, once you're used to wikimarkup, and fully
reverse-compatible.
Comment 7 Lorenzo Paulatto 2006-08-31 09:51:14 UTC
It is a good syntax if, and only if, you can still put any text in it; included
wikilinks or even templates.
Comment 8 Edward Z. Yang 2008-02-10 00:39:10 UTC
I'm closing this as WONTFIX, because we now can redirect to sections of pages using #REDIRECT [[Pagename#Section]]. If someone still wants the feature, feel free to reopen.
Comment 9 Paolo Liberatore 2008-02-11 12:12:47 UTC
I'm reopening this bug because the possibility of redirecting to section only solves one part of the problem, that of having the relevant text down in the article. At least in the way I interpreted this bug, the text would also explain why the redirect points there. This could be "Blood agar is a special type of agar plate", but could also be something less obvious like "pivot_root is a Linux command sometimes used in the initrd initialization script". In this second case, the redirect name is not the title of a section, and the reader would otherwise be forced to first search for the point where "pivot_root" is mentioned, and then re-construct what "pivot_root" is from the surrouding text.
Comment 10 Chad H. 2009-09-20 08:30:50 UTC
*** Bug 10990 has been marked as a duplicate of this bug. ***
Comment 11 Chad H. 2009-09-20 08:31:29 UTC
*** Bug 8888 has been marked as a duplicate of this bug. ***
Comment 12 Bartosz Dziewoński 2014-09-05 14:37:55 UTC
*** Bug 13595 has been marked as a duplicate of this bug. ***

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


Navigation
Links