• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia

Template:OOUI icon/sandbox

  • Template
  • Talk
  • Language
  • Watch
  • Edit
< Template:OOUI icon

This is the template sandbox page for Template:OOUI icon (diff).
See also the companion subpage for test cases.
Template documentation[view] [edit] [history] [purge]

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

edit

This template allows easy addition of OOUI icons within wikitext.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Iconicon 1

The icon to use.

Example
heart
Stringrequired
Directiondir 3

The direction of the text. Leave empty to avoid adding in a direction entirely.

Suggested values
ltr rtl
Stringsuggested
Flagflag 2

The flag indicates which color to use. Leave empty to use the default color (black). Only some colors are available to use.

Suggested values
invert progressive destructive warning yellow constructive
Stringsuggested
Sizesize 4

The size of the output image. Default 16px. Specify in px.

Default
16px
Example
20px
Stringsuggested
The above documentation is transcluded from Template:OOUI icon/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:OOUI_icon/sandbox&oldid=1065062526"
Last edited on 11 January 2022, at 16:30

Languages

      This page is not available in other languages.

      Wikipedia
      • Wikimedia Foundation
      • Powered by MediaWiki
      • This page was last edited on 11 January 2022, at 16:30 (UTC).
      • Content is available under CC BY-SA 4.0 unless otherwise noted.
      • Privacy policy
      • About Wikipedia
      • Disclaimers
      • Contact Wikipedia
      • Code of Conduct
      • Developers
      • Statistics
      • Cookie statement
      • Terms of Use
      • Desktop