模板:Fa
Font Awesome
基础用法
{{fa|icon=star}}
或
{{fa|i=star}}
大小
{{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}}
旋转
{{fa|icon=spinner|size=3x|spin=true}}
{{fa|icon=spinner|size=3x|spin=pulse}}
边框
{{fa|icon=quote-left|size=3x|border=true}}
浮动
{{fa|icon=quote-left|size=3x|border=true|float=left}}
{{fa|icon=quote-right|size=3x|border=true|float=right}}
<templatedata> { "params": { "icon": { "aliases": [ "i" ], "label": "图标名称", "description": "FontAwesome的图标名称(不用fa-),可以在 http://fontawesome.com.cn 查找到", "example": "flag", "type": "line", "required": true }, "size": { "label": "图标大小", "description": "可用值:lg, 2x, 3x, 4x, 5x", "type": "wiki-page-name" }, "spin": { "label": "是否旋转", "description": "spin: 旋转, pulse: 8位旋转", "type": "line" }, "border": { "label": "边框", "description": "是否位图标添加边框", "type": "boolean", "default": "0" }, "float": { "label": "浮动", "description": "left: 浮动于左侧, right: 浮动于右侧", "type": "line" } }, "format": "inline", "description": "为页面添加FontAwesome图标" } </templatedata>