Template:Xmark/doc: Difference between revisions

From Shadowrun Wiki
Jump to navigation Jump to search
(Created page with "{{Documentation subpage}} This template inserts a green tick (check mark) inline in the text. It is often used as the opposite of {{tlx|Cross}}. ==Usage== This template inserts an inline green tick or check (''✓'') image, indicating agreement (or other affirmatives: acceptance, completion, etc.). {{strong|It is not for use in articles.}} The tick image defaults to 20px in size. To change the size, call with a pixel value as an argument, such as: : {{tnull|tick|'...")
 
No edit summary
 
Line 1: Line 1:
{{Documentation subpage}}
{{Documentation subpage}}
This template inserts a green tick (check mark) inline in the text. It is often used as the opposite of {{tlx|Cross}}.
 
This template inserts a red ''X'' inline in the text. It is often used as the opposite of {{tlx|Tick}}.


==Usage==
==Usage==
This template inserts an inline green tick or check (''✓'') image, indicating agreement (or other affirmatives: acceptance, completion, etc.). {{strong|It is not for use in articles.}}
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 tick image defaults to 20px in size. To change the size, call with a pixel value as an argument, such as:
The cross image defaults to 20px in size. To change the size, call with a pixel value as an argument, such as:
: {{tnull|tick|'''30'''}}
: {{tnull|cross|'''30'''}}


The {{para|color}} or {{para|colour}} parameter can be used to change the color of the ''✓'':
The {{para|color}} or {{para|colour}} parameter can be used to change the color of the ''X'':


{| class="wikitable"
{| class="wikitable"
Line 14: Line 15:
! colspan=4 | color codes !! output !! notes
! colspan=4 | color codes !! output !! notes
|-
|-
| green     ||       || grn || gn  || [[File:Yes check.svg|20px]] || the default
|red     ||       || rd || r    || [[File:X mark.svg|20px]] || the default
|-
| red        ||        || rd  || r  || [[File:Red check.svg|20px]] ||
|-
| blue      ||        || blu  || u  || [[File:Blue check.svg|20px]] ||
|-
|-
| purple    ||       || pur  || pu  || [[File:Purple check.svg|20px]] ||  
|darkred  || dkred || drd || dr  || [[File:Dark Red x.svg|20px]] ||
|-
|-
| brown      ||       || brn || bn  || [[File:Brown check.svg|20px]] ||  
|orange  ||       || or || o    || [[File:Orange x.svg|20px]] ||
|-
|yellow  ||      || yel || y    || [[File:Yellow x.svg|20px]] ||
|-
|-
| black     ||       || blk || k   || [[File:Black check.svg|20px]] ||  
|black   ||       || blk || k   || [[File:Black x.svg|20px]] ||
|-
|-
| grey       || gray   || gry || gy || [[File:Grey check.svg|20px]] ||
|grey     || gray || gry || gy || [[File:Grey x.svg|20px]] ||
|}
|}


Line 33: Line 32:
<templatedata>
<templatedata>
{
{
"description": "A template that inserts a green (by default) tick (check mark) inline in the text",
"description": "A template that inserts a red (by default) X (diagonal cross) inline in the text",
"params": {
"params": {
"1": {
"1": {
"label": "Size",
"label": "Size",
"description": "Sets the size of the tick mark",
"description": "Sets the size of the X mark",
"type": "number",
"type": "number",
"default": "20",
"default": "20",
Line 45: Line 44:
"aliases": [ "colour" ],
"aliases": [ "colour" ],
"label": "Color",
"label": "Color",
"description": "Sets the color of the tick mark",
"description": "Sets the color of the X mark",
"type": "string",
"type": "string",
"default": "green",
"default": "red",
"required": false
"required": false
}
}
Line 55: Line 54:
</templatedata>
</templatedata>


== See also ==
==See also==
*{{tl|t}}
*{{tl|Hammer}}
*{{tl|Strikethrough}}
{{Check mark templates}}
{{Check mark templates}}
{{Done/See also}}
{{Done/See also}}


<includeonly>{{Sandbox other||
<includeonly>{{Sandbox other||
[[Category:Checkmark insertion templates]]
<!-- ADD CATEGORIES BELOW THIS LINE -->
[[Category:Single-image insertion templates]]
[[Category:Specific image insertion templates]]
}}</includeonly>
}}</includeonly>

Latest revision as of 20:42, 26 March 2024

[[Category:Template documentation pages{{#translation:}}]]

This template inserts a red X inline in the text. It is often used as the opposite of {{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:

{{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 File:Grey x.svg

TemplateData

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

Check marks Cross marks
{{Aye }} and {{Y }} Green tickY {{Nay }} and {{N }} Red XN
{{Ya }} Template:Ya {{Na }} Template:Na
{{Checked box }}
{{Ticked box }}
Template:Checked box {{Unchecked box }}
{{Unticked box }}
Template:Unchecked box
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").

Template:Done/See also