Template:Cross: Difference between revisions
en>Arbitrarily0 (Arbitrarily0 moved page Template:Cross to Template:Xmark: requested move; consensus at Template talk:Xmark) |
(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...") |
||
Line 1: | Line 1: | ||
{{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}} 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:26, 19 June 2023
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 | File:X mark.svg | the default | |
darkred | dkred | drd | dr | File:Dark Red x.svg | |
orange | or | o | File:Orange x.svg | ||
yellow | yel | y | File:Dark yellow x.svg | ||
black | blk | k | File:Black x.svg | ||
grey | gray | gry | gy | File:SemiTransBlack x.svg | is actually semi-transparent |
TemplateData
TemplateData for Cross
A template that inserts a red (by default) X (diagonal cross) inline in the text
Parameter | Description | Type | Status | |
---|---|---|---|---|
Size | 1 | Sets the size of the X mark
| Number | optional |
Color | color colour | Sets the color of the X mark
| String | optional |
See also
- {{t}}
- {{Hammer}}
- {{Strikethrough}}
Inline icon templates by shape and color
Any of the following inline, comment-level templates can be converted into {{Resolved}}-style hatnotes by using {{Resbox}} to put a box around the icon and text.
Lua error: Internal error: The interpreter has terminated with signal "24". Lua error: Internal error: The interpreter has terminated with signal "24". Lua error: Internal error: The interpreter has terminated with signal "24". Lua error: Internal error: The interpreter has terminated with signal "24". Lua error: Internal error: The interpreter has terminated with signal "24". Lua error: Internal error: The interpreter has terminated with signal "24".
Lua error: Internal error: The interpreter has terminated with signal "24". Lua error: Internal error: The interpreter has terminated with signal "24". Lua error: Internal error: The interpreter has terminated with signal "24". Lua error: Internal error: The interpreter has terminated with signal "24". Lua error: Internal error: The interpreter has terminated with signal "24". Lua error: Internal error: The interpreter has terminated with signal "24". Lua error: Internal error: The interpreter has terminated with signal "24". Lua error: Internal error: The interpreter has terminated with signal "24". Lua error: Internal error: The interpreter has terminated with signal "24". Lua error: Internal error: The interpreter has terminated with signal "24". Lua error: Internal error: The interpreter has terminated with signal "24".
Others
Lua error: Internal error: The interpreter has terminated with signal "24". Lua error: Internal error: The interpreter has terminated with signal "24".
Multi-sign templates
The following templates implement several icons:
- {{AIV}} – used by Wikipedia:Administrator intervention against vandalism
- {{AN3}} - used by Wikipedia:Administrators' noticeboard and its subpages
- {{BOTREQ}} - used by Wikipedia:Bot requests
- {{CPC}} - used by Wikipedia:Copyright problems
- {{CUI}} - used by CheckUsers
- {{EFFP}} – used by Wikipedia:Edit filter/False positives
- {{EFR}} – used by Wikipedia:Edit filter/Requested
- {{EP}} – used for servicing requests in edit-protected areas
- {{RFPP}} – used by Wikipedia:Requests for page protection
- {{RFPC}}, {{RFPNPR}}, {{RFPPM}}, {{RFPR}} – used by subpages of Wikipedia:Requests for permissions
- {{UAA}} – used by Wikipedia:Usernames for administrator attention
- {{UND}} – used by Wikipedia:Requests for undeletion
- {{Smiley}} – used for informal communication purposes
- {{Article history}}
Others
- Template:Check mark templates, for templates like these but without text
- Template:Icon, a template that creates an inline icon/image that is used in metapages
- Wikipedia:List of discussion templates, a more linear table of essentially the same set of templates
- Template:Resolved/See also, the smaller family of thread-level hatnote templates, similar to the above but with a box around them; any template above can be converted to one of those with {{Resbox}}
- Template:Table cell templates/doc, the family of table-specific templates that work only in tables
- Category:Image with comment templates
- Category:Resolution templates