模板:Fa

来自Mooncell - 玩家共同构筑的FGO中文Wiki
跳到导航 跳到搜索
Template-info-png.png 模板文档  [查看] [编辑] [历史] [刷新]

显示 Font Awesome 图标。

参数

{{fa|图标名}}

默认使用 fas 样式(即 Solid 样式)。

在图标名后的任何位置加入s、r、l、b参数,将对应使用 fas、far、fal、fa 样式(即 Solid、Regular、Light、Brands 样式)。


在图标名后的任何位置加入没有参数名的参数,将视为类(class)。

这种参数只能存在一个。如果你需要使用多个类,请写在同一个参数中,并使用空格分隔。


此外,还有如下可选参数(不能省略参数名):

|color=图标的颜色

|size=图标的尺寸

|style=图标的其他CSS样式(不要使用引号)

范例

{{fa|qrcode}}

{{fa|qq|b|size=36px|color=skyblue}}

{{fa|compass|color=#666600|fa-3x fa-spin|r}}

{{fa|adjust|size=24px|color=red|style=text-shadow: 2px 2px 6px #000; border:solid 1px blue; padding:10px; }}

常用图标


anchor

archive

asterisk

at

ban

bell

binoculars

bolt

book

bookmark

box

bug

bullhorn

burn

certificate

chart-pie

check

chess-king

chess-knight

chess-queen

code

code-branch

code-branch

coffee

comment

compress

crosshairs

desktop

door-open

dove

edit

eject

exclamation

exclamation-triangle

eye

feather

fighter-jet

filter

flag

flag-checkered

font

gamepad

gem

gift

glasses

graduation-cap

hashtag

heart

h-square

inbox

infinity

info

key

lightbulb

link

location-arrow

magic

map-marker-alt

map-signs

meh

moon

palette

play

poo

quote-left

robot

search

share-alt

shield-alt

shopping-cart

skull

star

stopwatch

subway

sun

tag

thumbs-down

thumbs-up

thumbtack

trophy

user-secret

wrench

参阅