Template:Fa

From Isekai Wiki
Revision as of 16:39, 12 June 2020 by 落雨枫 (talk | contribs) (Created page with "<onlyinclude><i class="fa fa-fw fa-{{{icon|}}}{{{i|}}} {{#if: {{{size|}}} |fa-{{{size}}}|}} {{#switch: {{{spin|}}} | true = fa-spin | spin = fa-spin | pulse = fa-pulse }} {{#s...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Font Awesome

Basic useage


{{fa|icon=star}}


Or

{{fa|i=star}}

Size

{{fa|icon=camera-retro|size=lg}}


{{fa|icon=camera-retro|size=2x}}


{{fa|icon=camera-retro|size=3x}}


{{fa|icon=camera-retro|size=4x}}


{{fa|icon=camera-retro|size=5x}}

Spinning

{{fa|icon=spinner|size=3x|spin=true}}


{{fa|icon=spinner|size=3x|spin=pulse}}

Border

{{fa|icon=quote-left|size=3x|border=true}}

Floating

{{fa|icon=quote-left|size=3x|border=true|float=left}}


{{fa|icon=quote-right|size=3x|border=true|float=right}}

add FontAwesome icon in page

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Iconicon i

Icon name of FontAwesome (without fa-),You can find it on http://fontawesome.com.cn

Example
flag
Linerequired
Sizesize

Available: lg, 2x, 3x, 4x, 5x

Page nameoptional
Spinning?spin

Avaliable: spin, pulse

Lineoptional
Border?border

Should display broder

Default
0
Booleanoptional
Floating?float

avaliable: left, right

Lineoptional