Шаблон:attention/док
Uses Lua: |
Examples
уредиAdds entry to Category:Requests for attention concerning French:
{{attention|fr|is this example sentence missing a word?}}
Usage
уреди{{attention}}
places an entry in [[Category:Requests for attention concerning Language]]
.
This template is normally invisible. However, you can make it visible by turning on the Catch My Attention gadget in your gadget preferences (for logged-in users) or Wiktionary:Preferences for users without an account (for logged-out users).
Parameters:
|1=
(required)- The language code (see Wiktionary:Languages).
|2=
(optional)- A comment explaining why this entry needs attention.
|sort=
(optional)- A sortkey for the tagged entry.
|id=
(optional)- A value that refers unambiguously to the calling template, to be used when
{{attention}}
is called by another template.
Categories
уредиCategories populated using the template {{attention}}
(see Category:Requests for attention by language for more):
- Category:Requests for attention concerning Ancient Greek
- Category:Requests for attention concerning Chinese
- Category:Requests for attention concerning English
- Category:Requests for attention concerning Spanish
- ... etc.
Visibility
уредиAs noted above, the easiest way to make the {{attention}}
tag visible is by turning on the Catch My Attention gadget.
However, users can finely customise the appearance of {{attention}}
by adding CSS rules to Special:MyPage/common.css. (Turn off the Catch My Attention gadget before using these rules.)
The following code will cause browsers to display "Text goes here" where {{attention}}
is.
.attentionseeking:before {
content: "Text goes here";
}
When the tag is visible, the comment in parameter |2=
, if any, can also be viewed by hovering over the tag with your mouse.
It is easily customizable; the following code will cause browsers to display a bold, red "!!" where {{attention}}
is.
.attentionseeking:before {
content: "!!";
color: red;
font-size: larger;
font-weight: bolder;
}
{{attention}}
tags for certain languages can be specifically targeted:
[lang|=he].attentionseeking:before {
content: "!! Hebrew request for attention !!";
color: red;
font-size: larger;
font-weight: bolder;
}