Template talk:R from misspelling

From Wikipedia, the free encyclopedia
Jump to: navigation, search

Contents

[edit] Removal of "See also"

I have removed the:

==See also== * [[Wikipedia:List of common misspellings]]

from Template:R_from_misspelling because it makes Special:Whatlinkshere/Wikipedia:List_of_common_misspellings basically unusable, and doesn't really add any value to those redirects when it appears in them. Noel (talk) 22:37, 7 Dec 2004 (UTC)

Thanks. The way MediaWiki read this type of link changed, so it became indeed useless. -- User:Docu

[edit] Trip to WP:TFD

  • This template was listed on templates for deletion, but there was no consensus to delete. See the log. (archive entry) Courtland 00:51, 3 September 2005 (UTC)
    • Reading the log, it would appear to be more precise to say that there was consensus to keep. The one dissent, that it was a job for categories not templates, was rebutted with the claim that this template offers needed functionality not supported by categories. -- ToET 03:40, 4 September 2009 (UTC)

[edit] Automated correction

While fixing a list of links to redirects that use this template, I noticed a problem that prevents automating the process. It's not always possible to get the best replacement for a misspelling.

For example, the misspelling redirect Castillian language uses this template and redirects to Spanish language, but there's no way for a script to figure out that the replacement should usually be Castilian language.

A possible solution would be to make this template take an optional parameter that indicates the correct spelling. Thus at Castillian language, {{R from misspelling}} would become {{R from misspelling|Castilian language}}. We could leave unchanged the redirects for which the correct spelling and redirect target are identical.

Any comments? Wmahan. 00:41, 9 July 2006 (UTC)

Could the corrected spelling parameter be displayed on the redirect page? If so, it makes sense to me. -- Steven Fisher 05:31, 9 July 2006 (UTC)
Unfortunately I don't think that's possible, since MediaWiki doesn't display anything but a message and the link on redirect pages. Wmahan. 06:04, 9 July 2006 (UTC)

This is a horrible idea!

  1. By definition, the target page is the correct spelling.
  2. So, in the case where it really is a {{R with possibilities}} instead, you have to think. You should not run a bot where you have to examine each link to decide whether the article is talking in context about the spanish language or the castilian variant (or castillian, {{R from alternate spelling}}, not a misspelling, as it corresponds to the spanish spelling).
  3. Likewise, X-box is {{R from alternate spelling}}, there are millions of references to that spelling! Including from Amazon in the first Google page! And Schneier on Security!
  4. Half the listings have the wrong template, some should be {{R from abbreviation}} (Ph.D → Doctor of Philosophy), {{R from alternate name}}, {{R from alternate spelling}} (Encyclopedia of Islam → Encyclopaedia of Islam, a perfectly legitimate pair of spellings), etc.
  5. In summary, these redirects were intended to be looked at by humans, not automatically corrected by a bot.
--William Allen Simpson 05:52, 15 July 2006 (UTC)
C'mon, tell me what you really think! :) I replied at your talk page. In summary, perhaps "automated correction" was a poor choice of words. I agree that all changes should be reviewed by humans, and I think my proposal could help. Wmahan. 06:42, 15 July 2006 (UTC)

[edit] This template is going away

Just a note that it appears this template will no longer be used for technical reasons, though the corresponding category can probably remain. See here. Wmahan. 04:58, 1 September 2006 (UTC)

I've read the IRC logs and stuff, but is there a solid technical reason to do so? Not because I particularly like this template or anything, it doesn't provide much extra value above a category, but the page you linked to makes a big scare about problems without specifying what most of the problems are. At some websites that would be called FUD. Also, considering that it works like desired now, wouldn't it be better if the current behaviour of the software is made official? Shinobu (talk) 12:55, 3 June 2008 (UTC)

[edit] Redirects displayed in different color?

Right now, we only have broken red links and working blue links. It would be helpful to have additional colors, maybe purple (as halfway between red and blue) to indicate a legitimate redirect, and a bright orange for an unwanted redirect from misspelling that should be corrected asap. -- Matthead  Discuß   10:42, 28 June 2008 (UTC)

I think a bot that simply listed existing links to redirects that are to correct misspellings would be better. Changing the color is only going to confuse readers, who outnumber editors by at least a thousand to one. And most editors aren't going to know what the new color means without some sort of mass education program - effort that would be better spent actually fixing the errors themselves, since even if an editor does know what a purple link or an orange link means, he/she may well not be interested in fixing it (or have time to do so). With a list, editors at Wikipedia:WikiProject Redirect, and other interested editors, could simply fix bad links. -- John Broughton (♫♫) 16:31, 7 August 2008 (UTC)

[edit] See also

Template:R from incorrect name

I don't have time now to create /doc and then ask for a {{editprotected}} change to the page to use {{documentation}}, but if I did I'd add the above to it. Mark Hurd (talk) 11:00, 20 April 2009 (UTC)

[edit] Hidden parameter, and need for conditional text

The template has a parameter (detectable only by viewing the markup, or blindly inserting one), for when the correct spelling is not given by the target. A case of this is

(1) Dsquare

which should Rdr to Dean and Dan Caten but state the correct spelling, probably as Dsquared (the way the NYT spells it, 20:1), or else Dsquared2: e.g. {{R from misspelling|Dsquared}}.
But the text of the accompanying tl assumes (irrespective of the parameter) that what is misspelled is the article's title, not the title of, e.g., an {{R from other name}}, {{R with possibilities}}, or {{R from related word}} Rdr page.
In the case of

(2) Dsquared2

the tag is indeed {{tl:R from other name}}, which says

It is not necessary to replace these redirected links with a piped link.

(and may, BTW, thereby invite assuming all alternative names are equally good; of this i'll say no more). For

(3) Dsquared

i am adding the same tag; for Dsquare (1 above), {{R from misspelling|Dsquared}}.
But the accompanying {{R from misspelling}} tl says

Pages using this link should be updated to link directly to the redirect target, without using a piped link that hides the correct details.

even if the parameter is used; in this case the message implies the misspelling (via mis-hearing) "Dsquare" should be replaced by [[Dean and Dan Caten]], rather than just correcting the spelling (and thus keeping valid the singular verb likely to follow it, and more subtle aspects of the enclosing article, which may be much trickier to correct than grammar is).
That's bad, so i suggest that the accompanying template

  1. be supplemented by a typical template /Doc page, which would draw attention to the parameter and demonstrate its usage, and
  2. make the rendered text read, when the parameter is used, along these lines:
    Pages using this link should be updated to correct the spelling, thereby continuing to link indirectly to the redirect target, and changing any piping of the link only by correcting the spelling.

I'd rather have support at least as strong as a concurring opinion and a week of assent by silence, before making these changes.
--Jerzyt 07:36, 14 July 2009 (UTC)

I agree that a /doc should be implemented immediately to document the parameter. I disagree with your suggested change in usage.
--William Allen Simpson (talk) 22:32, 14 July 2009 (UTC)
  • Why? If you like the current text, what am i misunderstanding?
    --Jerzyt 09:02, 15 July 2009 (UTC)
  • I strongly agree with your proposed change and came here to suggest such a thing, not realizing that it had already been proposed. Note that the optional argument of this template is documented at Category:Redirects from misspellings. Once this is done, robotic repair of double redirects should be changed to log those cases tagged with {{R from misspelling}} (but lacking the argument) as it redirects them. Automatically fill the argument with the old target would be a bad idea, as the redirect might have been pointing elsewhere than the correct spelling when the retaretging robot arrived. -- ToET 04:35, 4 September 2009 (UTC)

[edit] move docs to /doc

{{editprotected}}

Documentation should be located at template:R from misspelling/doc - please move it there and transclude it using {{doc}}. Chris Cunningham (not at work) - talk 17:59, 17 October 2009 (UTC)

Done. — RockMFR 21:36, 17 October 2009 (UTC)

[edit] Redirects from other pronounciations

Would it be correct to use this template in situations such as more popular phonetic spellings redirecting to uncommon proper spellings? Or mayne create a new template such as Template:R from pronounciation or Template:R from phonetic spelling?? -- œ 01:51, 27 January 2010 (UTC)

[edit] Double messages concerning space

I've not used this template before (not having observed the existence of redirect templates); therefore, I'm earnestly trying to understand its documentation. However, I'm a bit confused on whether or not to employ a space directly before the template.

WP:TMR has the following to say about inserting spaces:

One or several of these templates may be placed on a redirect page. Here's a hypothetical presentation of the redirect page WySiWyG:
#REDIRECT [[WYSIWYG]]{{R from alternative spelling}}
{{R from abbreviation}}{{R from alternative capitalization}}
As demonstrated in the example, please separate templates using either a carriage return or nothing at all. Inserting one or more spaces between the templates produces an unnecessary and unsightly bordered gap.

On the other hand, the documentation of this template does suggest the use of a space; its examples are

#REDIRECT [[Antonie van Leeuwenhoek]] {{R from misspelling}}, and
#REDIRECT [[Baptists]] {{R from misspelling|Baptist}}

I'm not sure about the "unsightly bordered gap". I found nothing in either documentation indicating that the template should be substed, and I thus haven't substed; the categories but not the documentation text seems to appear on the redirect page, whence no "borders" seem relevant.

Could someone clarify this, or hint at relevant pages where I may read explanations? In particular, should I or shouldn't I put a space before the template? JoergenB (talk) 20:56, 22 July 2010 (UTC)

I believe the community norm is to leave one space directly after the redirect link and before the template, as in your "Antonie van Leeuwenhoek" example, but it doesn't really matter as, space or no space, it still functions the same, it's whatever your preference. The only one that matters is the spaces between any additional redirect templates. Re the "unsightly bordered gap", it can only be seen in diff view: here is what the page looks like when there are spaces between any additional templates.. notice the two bordered gaps, and this is what the page should look like without the spaces between the templates. Also, no they should not be subst'd. Hope that was helpful. -- œ 16:57, 16 September 2011 (UTC)
OK, thanks; a space before the first one, but no spaces between the messages; I should have been able to deduce that from the examples...
However, I do not understand how and why you make the current version look different when viewed as a history diff or directly (e.g., after using the link provided by the Redirected from... message). This is the most arcane gimmic I've seen from the wikiwizards yet, I think.
I usually try to keep down the number of items in the article histories (even if my tendency not to discover misprints in time works in the opposite direction). I sometimes create redirect pages, together with redirect templates, in one single edit, and they often remain remain like that; thus, only the first version exists in the history. In those cases, there is no diff possible. Is it better if I make such redirects in two steps, in order to enable viewing of the template texts? JoergenB (talk) 12:39, 17 September 2011 (UTC)

[edit] Unprintworthy category may not be desired

I noticed this template also adds Category:Unprintworthy redirects. There could be instances where a common, notable misspelling would in fact be printworthy, and this category be undesired. It would be beneficial if someone could modify the code to add a parameter that would allow disabling addition of the "Unprintworthy redirects" category. Thanks. -- œ 16:28, 16 September 2011 (UTC)

YesY Done. See updated documentation for usage. 28bytes (talk) 21:06, 30 September 2011 (UTC)

[edit] Another Unprintworthy catch

As found on this category page, there are several redirect templates placed in the Unprintworthy category by the {{R from misspelling}} redirect template. Since the Printworthy and Unprintworthy categories are reserved for Main namespace redirects, please modify this template as follows:

  • Alter this...
<includeonly>
[[Category:Redirects from misspellings]]
{{#ifeq: {{{unprintworthy}}}|no||[[Category:Unprintworthy redirects]]}}
</includeonly>
  • to this...
<includeonly>
[[Category:Redirects from misspellings]]
{{Main other|[[Category:{{#ifeq:{{{1}}}|printworthy||Un}}printworthy redirects]]}}
</includeonly>

Please note that this has the added advantage of adding the redirect to the Printworthy category if the parameter is used. I shall be glad to update the documentation when this is modified. Thank you very much! This modification will ensure that only Main article misspellings will go into the Printworthy and Unprintworthy categories. – PIE ( CLIMAX )  21:59, 31 January 2012 (UTC)

Yes check.svg Done, but differently. Unnamed parameter 1 is already used for the correct spelling, so we cannot also use it for "printworthy". I've instead added support for |printworthy=yes. So the current situation is:
Please update the documentation appropriately. Anomie 15:13, 9 February 2012 (UTC)
You betcha! And thank you, Anomie, that was an excellent catch! – PIE ( CLIMAX )  18:31, 9 February 2012 (UTC)

[edit] Clarification needed?

To be specific: In it's present state...

  • this template can be used to add redirects from any namespace to the Unprintworthy category, and
  • if a misspelling is considered printworthy, first an editor must subdue the Unprintworthy by the use of the Unprintworthy=no parameter, and then the editor must separately add the {{R printworthy}} Rcat.

When this modification is performed...

  • this template will not add redirects from any namespace other than the Main namespace to the Unprintworthy category, and
  • if a Main namespace misspelling is considered printworthy, the Unprintworthy will be subdued by adding the printworthy parameter like this: {{R from misspelling|printworthy}}. This will add the redirect to the Printworthy category without having to add the {{R printworthy}} template separately. – PIE ( CLIMAX )  17:28, 7 February 2012 (UTC)

PS. Again, I will be happy to update the documentation page after this modification is performed.

[edit] Requested edit

Please edit this template to remove Category:Unprintworthy redirects--it is frequently the case that misspellings are useful for print. In fact, these are one of the few types of redirects that really have to be manually sorted as printworthy or unprintworthy. —Justin (koavf)TCM☯ 00:37, 2 February 2012 (UTC)

Why does it have to be removed? You can make a misspelling printworthy just by using the parameter, thusly:
#REDIRECT [[(Target)]] {{R from misspelling|(correct spelling)|unprintworthy=no}}
I was wrong, Koavf. Using the unprintworthy=no parameter just disables the inclusion of the redirect in the Unprintworthy redirects category. It does not automatically place the redirect into the Printworthy redirects category. The modification I've proposed in the previous section will make it so if you add {{R from misspelling|printworthy}} to the redirect, then it will be categorized into the Printworthy redirects category. Leaving off the |printworthy and just adding {{R from misspelling}} to the redirect will still automatically add the redirect to the Unprintworthy category. – PIE ( CLIMAX )  11:39, 4 February 2012 (UTC)
Yes check.svg Done See above. Anomie 15:13, 9 February 2012 (UTC)
Personal tools
Namespaces

Variants
Actions
Navigation
Interaction
Toolbox