Template:Cross: Difference between revisions

From Black Cat Studios
Jump to navigationJump to search
(Created page with "{{Documentation subpage}} This template inserts a red ''X'' inline in the text. It is often used as the opposite of {{tlx|Tick}}. ==Usage== 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: : {{tnull|cross|'''30'''}} The {{para|color...")
(Redirected page to Template:Xmark)
Tag: New redirect
Line 1: Line 1:
{{Documentation subpage}}
#REDIRECT [[Template:Xmark]]


This template inserts a red ''X'' inline in the text. It is often used as the opposite of {{tlx|Tick}}.
{{Redirect category shell|
 
{{R from move}}
==Usage==
}}
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:
: {{tnull|cross|'''30'''}}
 
The {{para|color}} or {{para|colour}} parameter can be used to change the color of the ''X'':
 
{| class="wikitable"
|-
! colspan=4 | color codes !! output !! notes
|-
|red      ||      || rd  || r    || [[File:X mark.svg|20px]] || the default
|-
|darkred  || dkred || drd || dr  || [[File:Dark Red x.svg|20px]] ||
|-
|orange  ||      || or  || o    || [[File:Orange x.svg|20px]] ||
|-
|yellow  ||      || yel || y    || [[File:Dark yellow x.svg|20px]] ||
|-
|black    ||      || blk || k    || [[File:Black x.svg|20px]] ||
|-
|grey    || gray  || gry || gy || [[File:SemiTransBlack x.svg|20px]] || is actually semi-transparent
|}
 
== TemplateData ==
{{TemplateData header}}
<templatedata>
{
"description": "A template that inserts a red (by default) X (diagonal cross) inline in the text",
"params": {
"1": {
"label": "Size",
"description": "Sets the size of the X mark",
"type": "number",
"default": "20",
"required": false
},
"color": {
"aliases": [ "colour" ],
"label": "Color",
"description": "Sets the color of the X mark",
"type": "string",
"default": "red",
"required": false
}
},
"format": "inline"
}
</templatedata>
 
==See also==
*{{tl|t}}
*{{tl|Hammer}}
*{{tl|Strikethrough}}
{{Check mark templates}}
{{Done/See also}}
 
<includeonly>{{Sandbox other||
<!-- ADD CATEGORIES BELOW THIS LINE -->
[[Category:Single-image insertion templates]]
[[Category:Wikipedia-specific image insertion templates]]
}}</includeonly>

Revision as of 03:52, 19 June 2023

Redirect to: