= Font Awesome =
== 基础用法 ==
{{fa|icon=star}}
{{fa|icon=star}}
或
{{fa|i=star}}
== 大小 ==
{{fa|icon=camera-retro|size=lg}} {{fa|icon=camera-retro|size=lg}}
{{fa|icon=camera-retro|size=2x}} {{fa|icon=camera-retro|size=2x}}
{{fa|icon=camera-retro|size=3x}} {{fa|icon=camera-retro|size=3x}}
{{fa|icon=camera-retro|size=4x}} {{fa|icon=camera-retro|size=4x}}
{{fa|icon=camera-retro|size=5x}} {{fa|icon=camera-retro|size=5x}}
== 旋转 ==
{{fa|icon=spinner|size=3x|spin=true}} {{fa|icon=spinner|size=3x|spin=true}}
{{fa|icon=spinner|size=3x|spin=pulse}} {{fa|icon=spinner|size=3x|spin=pulse}}
== 边框 ==
{{fa|icon=quote-left|size=3x|border=true}} {{fa|icon=quote-left|size=3x|border=true}}
== 浮动 ==
{{fa|icon=quote-left|size=3x|border=true|float=left}} {{fa|icon=quote-left|size=3x|border=true|float=left}}
{{fa|icon=quote-right|size=3x|border=true|float=right}} {{fa|icon=quote-right|size=3x|border=true|float=right}}
{
"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": "dropdown",
"default": ": 默认\nlg: 大\n2x: 二倍\n3x: 三倍\n4x: 四倍\n5x: 五倍"
},
"spin": {
"label": "是否旋转",
"description": "spin: 旋转, pulse: 8位旋转",
"type": "dropdown",
"default": ": 不旋转\nspin: 连续旋转\npulse: 8帧间断旋转"
},
"border": {
"label": "边框",
"description": "是否位图标添加边框",
"type": "boolean",
"default": "0"
},
"float": {
"label": "浮动",
"description": "left: 浮动于左侧, right: 浮动于右侧",
"type": "dropdown",
"default": ": 不浮动\nleft: 左侧\nright: 右侧"
}
},
"format": "inline",
"description": "为页面添加FontAwesome图标"
}