Template:R from emoji/doc
This is a documentation subpage for Template:R from emoji. It may contain usage information, categories and other content that is not part of the original template page. |
This template is used on approximately 3,300 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
This is a redirect from an emoji (whether or not it is in the Unicode chart emojis). |
This template should not be substituted nor used to tag soft redirects. |
Template:R from emoji is used to categorize emoji redirects and populates Category:Redirects from emoji when used.
Usage
[edit]This template can be used in combination with {{Redirect category shell}} or without. This is in accord with instructions found at Wikipedia:REDCAT.
- Use this template on any redirect from a title that is an emoji, whether or not it is included in the Unicode chart single emoji (i.e. ♥ uses this template).
- For emoji that are a single Unicode character, it should be paired with {{R from Unicode character}}.
- This does not include emoji with skin-tone modifiers, or country flags, which consist of multiple characters. 👩🏿🤝👨🏼, for example, is rendered as one character in most web browsers, but is composed of seven (this can be seen in the percent-encoded title of its article: http://en.wiki.x.io/w/index.php?title=%F0%9F%91%A9%F0%9F%8F%BF%E2%80%8D%F0%9F%A4%9D%E2%80%8D%F0%9F%91%A8%F0%9F%8F%BC).
- For emoji which are a subset of another emoji (such as skin tone variations), use {{R avoided double redirect}} with the value being the base emoji.
When using Template:Redirect category shell
[edit]{{Redirect category shell}} may be used to add as many appropriate redirect categories as needed to a redirect. Add this redirect category to a redirect in the following manner:
#REDIRECT [[(target page name)]]
{{Redirect category shell|
{{R from emoji}}
}}
When used individually
[edit]#REDIRECT [[(target page name)]]
{{R from emoji}}
Optional parameters
[edit]Emoji name
[edit]The name of the emoji should be added using the |1=
parameter. This helps identify the emoji and also sort it by its name.
{{R from emoji|(name)}}
{{R from emoji|1=(name)}}
The |name=
comes from the CLDR and can be found in places such as: https://www.unicode.org/cldr/charts/44/annotations/americas.html
Flags
[edit]If the emoji is a flag, |flag=
should be set.
{{R from emoji|(name)|flag=yes}}
{{R from emoji|1=(name)|flag=yes}}
Examples
[edit]#REDIRECT [[(target page name)]]
{{Redirect category shell|
{{R from emoji|Flag: Wales|flag=yes}}
}}
#REDIRECT [[(target page name)]]
{{Redirect category shell|
{{R from emoji|Person: Light Skin Tone}}
{{R avoided double redirect|🧑}}
}}
TemplateData
[edit]TemplateData for R from emoji
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Name | 1 | The official CLDR emoji name.
| Line | suggested |
Flag | flag | Set to "yes" if the emoji is that of a flag. | Line | optional |
See also
[edit]- {{R from Unicode character}}
- WikiProject Redirect/Style guide
- WP:REMOJI
- Module:Emoji which sometimes consumes or return short names or their keywords.