Jump to content

Template:Xmark/doc

From Wikiversity

This template inserts a red X inline in the text. It is often used as the opposite of {{Tick}}.

This template inserts an inline red diagonal cross (X) image, indicating negation (or some other negatory message: rejection, failure, etc.). It is not for use in articles.

The cross image defaults to 20px in size. To change the size, call with a pixel value as an argument, such as:

{{cross|30}}

The |color= or |colour= parameter can be used to change the color of the X:

color codes output notes
red rd r the default
darkred dkred drd dr
orange or o
yellow yel y
black blk k
grey gray gry gy is actually semi-transparent

TemplateData

[edit source]
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools.

TemplateData for Xmark

A template that inserts a red (by default) X (diagonal cross) inline in the text

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Size1

Sets the size of the X mark

Default
20
Numberoptional
Colorcolor colour

Sets the color of the X mark

Default
red
Stringoptional

See also

[edit source]
Check marks and Cross marks
Check marks Cross marks
{{Check mark}} Green tickY {{X mark big}} Red XN
{{Tick}} = {{Tick|20}} checkY {{Cross}} = {{Cross|20}} ☒N
{{Y}}, {{aye}} Green tickY {{N}}, {{nay}} Red XN
{{Check mark-n}} YesY {{X mark-n}} NoN
{{Y&}} {{N&}}
File:☑.svg File:☒.svg
Other marks
{{n.b.}} Nota bene* {{hmmm}} ????
{{bang}}
Most of the templates above are fully sortable in a class="sortable" table (each check mark is assigned an undisplayed "Y" and each cross mark an undisplayed "N").
More check mark, cross mark and related templates
Check marks and Cross marks
Check marks Cross marks
{{Check mark}} Green tickY {{X mark big}} Red XN
{{Tick}} = {{Tick|20}} checkY {{Cross}} = {{Cross|20}} ☒N
{{Y}}, {{aye}} Green tickY {{N}}, {{nay}} Red XN
{{Check mark-n}} YesY {{X mark-n}} NoN
{{Y&}} {{N&}}
File:☑.svg File:☒.svg
Other marks
{{n.b.}} Nota bene* {{hmmm}} ????
{{bang}}
Most of the templates above are fully sortable in a class="sortable" table (each check mark is assigned an undisplayed "Y" and each cross mark an undisplayed "N").