Template:R from misspelling/doc: Difference between revisions

From HIBIKIFORUM
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 11: Line 11:


{{{{fcb|#4169e1|Rcat shell}}|
{{{{fcb|#4169e1|Rcat shell}}|
{{((}}{{fcb|#4169e1|R from misspelling}}{{))}}
{{((}}{{fcb|#2e8b57|R from misspelling}}{{))}}
{{((}}{{fcb|#4169e1|R from move}}{{))}}
{{((}}{{fcb|#2e8b57|R from move}}{{))}}
}} }}
}} }}
: Template {{tl|Rcat shell}} is an alias for the ''Redirect category shell'' template, which may be used to add as many appropriate rcats as needed, usually from one to seven, along with their parameters, to a redirect.  For more information see the documentation on its template page.  This rcat may also tag a redirect individually:
: Template {{tl|Rcat shell}} is an alias for the ''Redirect category shell'' template, which may be used to add as many appropriate rcats as needed, usually from one to seven, along with their parameters, to a redairect.  For more information see the documentation on its template page.  This rcat may also tag a redirect individually:
{{Pre|
{{Pre|
{{fcb|#2e8b57|#REDIRECT}} {{!((}}{{fcb|#2e8b57|Antonie van Leeuwenhoek}}]]
{{fcb|#2e8b57|#REDIRECT}} {{!((}}{{fcb|#2e8b57|Antonie van Leeuwenhoek}}]]
Line 24: Line 24:
{{Pre|
{{Pre|
{{{{fcb|#4169e1|Rcat shell}}|
{{{{fcb|#4169e1|Rcat shell}}|
{{((}}{{fcb|#4169e1|R from misspelling}}|{{fcb|#2e8b57|1}}={{font color|#933|(correct spelling)}}{{))}}
{{((}}{{fcb|#2e8b57|R from misspelling}}|{{fcb|#ce33ff|1}}={{font color|#933|(correct spelling)}}{{))}}
}} }}
}} }}
: ''or'' the {{para|1}} may be omitted:
: ''or'' the {{para|1}} may be omitted:
{{Pre|
{{Pre|
{{{{fcb|#4169e1|Rcat shell}}|
{{{{fcb|#4169e1|Rcat shell}}|
{{((}}{{fcb|#4169e1|R from misspelling}}|{{font color|#933|(correct spelling)}}{{))}}
{{((}}{{fcb|#2e8b57|R from misspelling}}|{{font color|#933|(correct spelling)}}{{))}}
}} }}
}} }}
: with the {{para|of}} parameter:
: with the {{para|of}} parameter:
{{Pre|
{{Pre|
{{{{fcb|#4169e1|Rcat shell}}|
{{{{fcb|#4169e1|Rcat shell}}|
{{((}}{{fcb|#4169e1|R from misspelling}}|{{fcb|#2e8b57|of}}={{font color|#933|(correct spelling)}}{{))}}
{{((}}{{fcb|#2e8b57|R from misspelling}}|{{fcb|#ce33ff|of}}={{font color|#933|(correct spelling)}}{{))}}
}} }}
}} }}
: and when used individually:
: and when used individually:
Line 40: Line 40:
{{{{fcb|#4169e1|R from misspelling}}|{{font color|#933|(correct spelling)}}}}
{{{{fcb|#4169e1|R from misspelling}}|{{font color|#933|(correct spelling)}}}}
   or
   or
{{{{fcb|#4169e1|R from misspelling}}|{{fcb|#2e8b57|of}}={{font color|#933|(correct spelling)}}}}
{{{{fcb|#4169e1|R from misspelling}}|{{fcb|#ce33ff|of}}={{font color|#933|(correct spelling)}}}}
}}
}}
: '''Example:''' the misspelled redirect '''<big>Babtist</big>''' employs:
: '''Example:''' the misspelled redirect '''<big>Babtist</big>''' employs:
Line 47: Line 47:


{{{{fcb|#4169e1|Rcat shell}}|
{{{{fcb|#4169e1|Rcat shell}}|
{{((}}{{fcb|#4169e1|R from misspelling}}{{))}}
{{((}}{{fcb|#2e8b57|R from misspelling}}{{))}}
{{((}}{{fcb|#4169e1|R from move}}{{))}}
{{((}}{{fcb|#2e8b57|R from move}}{{))}}
}} }}
}} }}


* This rcat populates {{Cat|Redirects from misspellings}} by default.   
* This rcat populates {{Cat|Redirects from misspellings}} by default.   
* This rcat may be used to tag redirects from [[wikipedia:homoglyph]]s and [[wikipedia:homograph]]s when they have been created in error or specifically made available as search terms.
* This rcat may be used to tag redirects from [[wikipedia:homoglyph|homoglyph]]s and [[wikipedia:homograph|homograph]]s when they have been created in error or specifically made available as search terms.


== TemplateData ==
== TemplateData ==
Line 58: Line 58:
{
{
"params": {
"params": {
"2": {
"description": "Set this to \"printworthy\", without quotes, to mark the redirect as being worth printing in a paper Wikipedia. Generally this is not needed for misspellings.",
"type": "string"
},
"of": {
"of": {
"aliases": [
"aliases": [
Line 70: Line 66:
"type": "line",
"type": "line",
"suggested": true
"suggested": true
},
"Category": {
"label": "Category override",
"description": "This may be set to override the default categorization, if and only if in the article namespace.",
"type": "line",
"default": "This defaults to \"[[Category:Unprintworthy redirects]]\" (without quotes). Other categories may be given in the same way."
}
}
},
},
Line 87: Line 77:
<!-- Categories below this line, please -->
<!-- Categories below this line, please -->
[[Category:Templates]]
[[Category:Rcat templates]]
[[Category:Rcat Templates]]
}}}}</includeonly>
}}}}</includeonly>

Latest revision as of 02:27, 20 August 2023

Light bulb.png }}
It contains usage information, categories and other content that is not part of the original template page.


Usage

Use this rcat template in any namespace, except for typos in template space.

  • Use this redirect category (rcat) template on a redirect in the following manner:
Example: the mainspace article redirect Antony van Leeuwenhook may be tagged:
#REDIRECT [[Antonie van Leeuwenhoek]]

{{Rcat shell|
{{R from misspelling}}
{{R from move}}
}}
Template {{Rcat shell}} is an alias for the Redirect category shell template, which may be used to add as many appropriate rcats as needed, usually from one to seven, along with their parameters, to a redairect. For more information see the documentation on its template page. This rcat may also tag a redirect individually:
#REDIRECT [[Antonie van Leeuwenhoek]]

{{R from misspelling}}
  • This template takes a parameter, either unnamed (|1=) or named (|of=) that may be used to provide the correct spelling when it is not the same as the target page's title – for example when an alternate name for the article has been misspelled. Supply the correct name as the first parameter in any of the following ways:
{{Rcat shell|
{{R from misspelling|1=(correct spelling)}}
}}
or the |1= may be omitted:
{{Rcat shell|
{{R from misspelling|(correct spelling)}}
}}
with the |of= parameter:
{{Rcat shell|
{{R from misspelling|of=(correct spelling)}}
}}
and when used individually:
{{R from misspelling|(correct spelling)}}
  or
{{R from misspelling|of=(correct spelling)}}
Example: the misspelled redirect Babtist employs:
#REDIRECT [[Baptists]]

{{Rcat shell|
{{R from misspelling}}
{{R from move}}
}}

TemplateData

Template to be used on redirects in any namespace which are redirects from misspellings of the proper title.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Misspelling ofof 1

May be used to provide the correct spelling when it is not the same as the target page's title – for example when an alternate name for the article has been misspelled.

Linesuggested