模板:Fa/doc
顯示 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
參閱編輯
- 圖標一覽 (僅 Free 可用)
- 關於類(class)、樣式(style)的進一步說明