Template:attention/documentation

From Wiktionary, the free dictionary
Jump to navigation Jump to search
Documentation for Template:attention. [edit]
This page contains usage information, categories, interwiki links and other content describing the template.

Examples

[edit]

Adds entry to Category:Requests for attention concerning French:

{{attention|fr|is this example sentence missing a word?}}

Usage

[edit]

{{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

[edit]

Categories populated using the template {{attention}} (see Category:Requests for attention by language for more):

Visibility

[edit]

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;
}