Template:Icon

From Gentoo Wiki
Jump to:navigation Jump to:search
[edit

Documentation

Note
This page is a template. It contains some standardized, often used text, which can be transcluded inside other pages. As this template is widely used in our wiki, it may be protected in which case only staff members can change it. Use the discussion page to propose enhancements or fixes, or to voice your opinion.

This template is used to display Font Awesome icons with optional styling.

Parameters

No description.

Template parameters

ParameterDescriptionTypeStatus
11

The icon class without "fa-", optionally with additional classes separated by spaces

Stringrequired

Usage

{{Icon|}}

See the template's testcases:

snowflake-o and battery-full
Wiki code {{Icon|snowflake-o}} <- a snowflake {{Icon|battery-full}} <- a full battery

Main version <- a snowflake

<- a full battery

Sandbox version <- a snowflake

<- a full battery

snowflake-o and battery-full; fixed-width
Wiki code {{Icon|snowflake-o fa-fw}} <- a snowflake {{Icon|battery-full fa-fw}} <- a full battery

Main version <- a snowflake

<- a full battery

Sandbox version <- a snowflake

<- a full battery

check-square and square as fixed-width list icons
Wiki code # {{Icon|check-square fa-li fa-fw}} Do this thing # {{Icon|square fa-li fa-fw}} Then that thing

Main version # Do this thing
  1. Then that thing
Sandbox version # Do this thing
  1. Then that thing
shield upright, rotated and flipped
Wiki code {{Icon|shield}}{{Icon|shield fa-rotate-90}}{{Icon|shield fa-flip-horizontal}}

Main version
Sandbox version
Note
The above documentation is transcluded from Template:Icon/doc. (edit | history)
Editors can experiment in this template's sandbox (edit) and testcases (edit) pages.
Please add categories and interwikis to the /doc subpage. (See the subpages of this template.)