Difference between revisions of "Template:Cross"
(Template to display the red cross image) |
|||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly>[[File:Icon RedXCross.png|link=]]</includeonly><noinclude> | + | <includeonly>[[File:Icon RedXCross.png|{{{size|20px}}}|link={{{link|}}}|{{#if:{{{alt|}}}|alt={{{alt}}}{{!}}}}{{#if:{{{valign|}}}|{{{valign}}}}}]]</includeonly><noinclude> |
+ | {{doc}} | ||
[[Category:Templates]] | [[Category:Templates]] | ||
− | |||
</noinclude> | </noinclude> |
Latest revision as of 16:51, 25 July 2024
This template can be used to easily display a red cross. Example:
Parameters
- size - default: 20px - standard image size parameter. You have to include unit (e.g. "20" isn't a valid value).
- link - default: (empty) - leave it empty not to link any article. Otherwise put a name of the article on the wiki to link it.
- alt - default: undefined, causing name of the image to be used as the alt tag. If you would like to use a custom alt tag, define it here. This is important for the screen readers.
- valign - vertical align. It will use a default behaviour, otherwise you can define one of: baseline, sub, super, top, text-top, middle, bottom, text-bottom.
TemplateData
This template can be used to easily display a green tick.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Size | size | Size of the image
| String | optional |
Link | link | Name of the linked article
| Page | optional |
Alternative text | alt | HTML alt attribute on the image
| String | optional |
Vertical Align | valign | One of: baseline, sub, super, top, text-top, middle, bottom, text-bottom.
| String | optional |