![]() | This is the template sandbox page for Template:OOUI icon (diff). See also the companion subpage for test cases. |
This template allows easy addition of OOUI icons within wikitext. See TemplateData below for instructions on the parameters and a few examples.
OOUI demo page (Permalink, Archived link) has the value needed to set the |icon=
parameter for the corresponding icon. It appears the last word or near last word of the filename on Commons is the "ID" required. A full list of the OOUI icons can be found at the Commons category: c:OOUI icons.
Anything that follows in the filename are separated by hyphens (-). Such as ltr or rtl used in internalisation and localisation; and also in the case of colouring the file icon, where terms such as progressive, error, etc. are employed relating to color themes to computer states, and finally sometimes including the file 'size' to indicated the level of detail (dp) and/or pixels (px).
Usage
editThis template allows easy addition of OOUI icons within wikitext.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Icon | icon 1 | The icon to use.
| String | required |
Direction | dir 3 | The direction of the text. Leave empty to avoid adding in a direction entirely.
| String | suggested |
Flag | flag 2 | The flag indicates which color to use. Leave empty to use the default color (black). Only some colors are available to use.
| String | suggested |
Size | size 4 | The size of the output image. Default 16px. Specify in px.
| String | suggested |