Last modified: 2014-09-05 14:37:55 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 13595 - Redirect-specific page content above target page content
Redirect-specific page content above target page content
Status: RESOLVED DUPLICATE of bug 2012
Product: MediaWiki
Classification: Unclassified
Redirects (Other open bugs)
unspecified
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-04-02 18:26 UTC by Church of emacs
Modified: 2014-09-05 14:37 UTC (History)
5 users (show)

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


Attachments

Description Church of emacs 2008-04-02 18:26:11 UTC
Hi. At dewp we hat a discussion of the use of a Misspelling template. There were basically two equally bad alternatives:
* Inform the user through [[de:Template:Falschschreibung]] (this is what's done atm; translated it says something like "An article named {{FULLPAGENAME}} does not exist. Perhaps you were looking for {{{corrected lemma}}}?"), which has the disadvantage that the user has to do one more click to get to the requested article
* Redirect a misspelled lemma to the article the user most likely wants to read (disadvantage: the user does not realize that his spelling was wrong, he thinks it is just an alternative spelling, not a wrong one)

So I thought about a way to solve this problem: transclude content of a redirect.

Example:
Template:Misspelling shows the user that he accidentally spelled a lemma wrong.
[[Misstake]] contains the following:
#Redirect [[Mistake]]
#Transclude {{Misspelling|Misstake}}

If the user enters "Misstake" he gets the correct article but is warned that his spelling was wrong. If the user enters "Mistake", the normal article is displayed (no spelling warning).
(of course, the syntax is just a proposal, that isn't really important to me)

This feature would solve the misspelling conflict and presumably enhance also some other templates. For example [[en:Template:Redirect]] in "Portable Document Format" should only be displayed if the user is redirected from PDF to Portable Document Format, not if he goes directly to Portable Document Format.
Comment 1 Roan Kattouw 2008-04-02 18:31:05 UTC
Why don't you just do:

Perhaps you were looking for [[Mistake]]? [[Mistake]] contains the following:

{{Mistake}}
Comment 2 Church of emacs 2008-04-02 18:55:35 UTC
Interesting and smart solution of this problem; that didn't cross my mind! :-)

However the title would still be wrong and the talk page and history, too.
Comment 3 Brion Vibber 2008-04-02 19:48:04 UTC
Changed summary... There's really nothing transclusion-specific here; the basic requirement is to allow some content on the redirect page to show through above the content of the target page.

This would probably typically be a template, but wouldn't necessarily have to me.
Comment 4 Chad H. 2009-09-20 08:31:13 UTC
*** Bug 14323 has been marked as a duplicate of this bug. ***
Comment 5 John Mark Vandenberg 2014-05-10 05:33:21 UTC
I mentioned this concept at bug 5451 comment 21.
Comment 6 Bartosz Dziewoński 2014-09-05 14:37:55 UTC

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

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


Navigation
Links