Template talk:Redirect
This is the talk page for discussing improvements to the Redirect template. |
|
Archives: 1Auto-archiving period: 3 months ![]() |
![]() | This template does not require a rating on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | |||||||
|
|
|
This page has archives. Sections older than 90 days may be auto-archived by Lowercase sigmabot III if there are more than 10. |
Different hatnotes depending on what the user searched for
editI've created a redirect for The Present Tense, which is the name of a song by Radiohead, pointing to A Moon Shaped Pool, the album it appears on. I think it might be a good idea to display a hatnote saying "for the grammatical tense, see Present tense", but I only want that to appear if the user arrived at A Moon Shaped Pool by searching for The Present Tense. Does that make sense? If so, is there a way to do it? Popcornduff (talk) 12:58, 16 December 2018 (UTC)
This makes sense. And it ties with the topic by Popcornfud. Hatnotes should only appear in the article if the user was redirected from a specific search term.--TZubiri (talk) 19:57, 30 June 2021 (UTC)
- TZubiri, wow, my original comment was 3 years ago. I recall there was some suggestion of this idea somewhere else at some point but it didn't get much discussion there either. A while ago I typed up some more thoughts on my userspace here but I didn't do anything with the idea. Disambiguation hatnotes still bother me. Popcornfud (talk) 21:22, 30 June 2021 (UTC)
That's great thanks! I added the essay and the example to Wikipedia_talk:WikiProject_Redirect#Displaying_hatnote_redirects_only_when_redirected. where I am compiling examples of the problem and previous discussions on the subject. If you find or can think of any more resources, feel free to add them there! I'll do my best to get this fixed, it might take a while though!--TZubiri (talk) 21:44, 30 June 2021 (UTC)
- TZubiri, thanks. I'm not technical at all and I don't know anything about how you get this kind of thing changed on Wikipedia. Good luck! Popcornfud (talk) 22:02, 30 June 2021 (UTC)
Documentation and example
editHi all. I have two requests: for the usage in an example, and for improving the documentation. Can someone let me know which template would be appropriate for National World War I Museum and Memorial? Is that article's requirement too complicated for this template? Part of the reason for asking is that the documentation for this template is incomprehensible, even while testing it in preview. The example lists several numerical arguments like "1=" but the explanations are perfectly obtuse, recursive, and meaningless. Could someone please elaborate there, even with a few more words? Thank you. — Smuckola(talk) 22:53, 15 August 2021 (UTC)
- The template should never be as complex as the current version of the hatnote at that article would require. The hatnote is simply way too long. First and foremost, Liberty Memorial should probably be a disambiguation page. Other memorials can be covered by linking to List of World War I monuments and memorials. A link to those two should be all that is included. I'll start working on that later today. Oiyarbepsy (talk) 23:58, 15 August 2021 (UTC)
- @Smuckola: the right template for that article would be {{Redirect2}} (and for even more complicated scenarios, either {{redirect-multi}} or {{redirect-several}} can be used). – Uanfala (talk) 12:06, 18 August 2021 (UTC)
"See Wiktionary" template
editI've added a mention of {{See Wiktionary}} with its "redirect" parameter, as this creates a hatnote like
- ""Foo" redirects here. For a definition of the term "Foo", see the Wiktionary entry Foo.",
which looks like the output from this template, and will be of use to some editors who come to this template's documentation page hoping to make such a redirect. (In my case I wanted to replace the Wiktionary redirect at SMIDSY after retargetting it to Beryl (company): see discussion at Wikipedia_talk:WikiProject_Redirect#Hatnote_for_a_Wiktionary_redirect?) PamD 07:36, 19 July 2022 (UTC)
Unneeded linking
editWhen using this template, I don't think that given redirects should actually be "linked" to. This causes many issues such as if the redirect is tagged as misspelling (such as OB1, Pages that link to "OB1"), when it really isn't linking to that page. ~ Eejit43 (talk) 18:26, 28 December 2022 (UTC)
- @Eejit43: misspellings and miscapitalizations should not be seen in hatnotes. Preference should always be given to targeting the correct spelling.
- Problem solved. – wbm1058 (talk) 04:54, 30 December 2022 (UTC)
- Easy enough, thanks! ~ Eejit43 (talk) 13:03, 30 December 2022 (UTC)
linking of the original redirected term for use with section redirects
editCf. Wikipedia:Village_pump_(idea_lab)#Redirect_hatnote_link. --Joy (talk) 11:43, 3 July 2023 (UTC)
Selfref parameter
editUnlike {{for}}, {{redirect}} has no support for a self reference parameter. I believe that would be a useful feature in some cases like [1] (this example happens to use redirect2). Nickps (talk) 11:39, 6 April 2024 (UTC)
Template-protected edit request on 10 April 2024
editThis edit request has been answered. Set the |answered= parameter to no to reactivate your request. |
Since no one objected above, I'm now asking that a selfref parameter be added to this template, analogous to the one {{for}} has. Nickps (talk) 19:28, 10 April 2024 (UTC)
- Not done:
|selfref=
is already implemented. See the testcases for it in action. SWinxy (talk) 21:20, 10 April 2024 (UTC)- I guess I should have done better due diligence. Thanks for updating the docs. Nickps (talk) 22:43, 10 April 2024 (UTC)
Template inject blank paragraph
editIn certain cases this template would inject <p class="mw-empty-elt">
in content, which have no text in it. How to fix that? See this screenshot. -- Great Brightstar (talk) 19:32, 4 June 2024 (UTC)
- The reason of this problem is found out. {{Stack begin}} have something missing that affect mobile frontend. -- Great Brightstar (talk) 15:19, 6 June 2024 (UTC)
Grammar: change "..redirects here. For.." to "..redirects here; for.."
editThe form:
- X redirects here. For other uses, see X (dis)
is problematic as it splits two concepts that belong in the same sentence. The period (.) is best used when separating concepts or breaking up run-on sentences, not to split short statements into terse expressions. The semicolon (;) serves the purpose of indicating a grammatical stop with a logical continuation, and would be a good solution:
- X redirects here; for other uses, see X (dis)
Most will agree that the semicolon is more accurate. But I do agree with some people that they are ugly, and in particular in contexts like this where the text is prominent, short, and reproduced over hundreds thousands millions of articles. So maybe a semicolon is not the way to go. -Stevertigo 22:06, 18 April 2009 (UTC)
PS: An emdash would be good sustitute for the semicolon, as its used the same way, but most current typewriters don't have them, and the usage of two dashes (--) is ugly. I forgot the coding for that though: %emdash; $m-dash: <&m-dash>.. Erm:
- X redirects here --for other uses, see X (dis) -SV
- Support the use of semicolon instead of a full stop. fgnievinski (talk) 00:13, 25 March 2025 (UTC)
Template-protected edit request on 27 August 2025
editThis edit request has been answered. Set the |answered= parameter to no to reactivate your request. |
If appropriate, please change the ending of the heads-up "i
" box saying Using this template does not create a redirect. The following pages may have what you are looking for:
from:
* R template index contains a large list of templates that are used in order to tag and
categorize redirects.
To:
* R template index contains a large list of templates that are used in order to tag and
categorize redirects.
To make a simple redirect page that redirects to another page, use #REDIRECT [[page]].
Thank you :3 109.166.138.138 (talk) 21:07, 27 August 2025 (UTC)
- Oh no wait I meant to add this to Template:Redirect/doc!!! Please note that 109.166.138.138 (talk) 21:09, 27 August 2025 (UTC)
- nevermind 109.166.138.138 (talk) 21:10, 27 August 2025 (UTC)