Template:Attention/documentation

From The Languages of David J. Peterson
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

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 (see #Visibility).

Parameters:

|1=
The language code (see Wiktionary:Languages).
|2=
A comment explaining why this entry needs attention.
|sort=
A sortkey for the tagged entry.
|id=
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):

Visibility

Users can make the {{attention}} tag visible by adding CSS 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 value of |2= 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;
}