模板:Fa:修订间差异

来自科幻设定百科
添加756字节 、​ 2023年11月17日 (星期五)
更改为异世界百科最新版
imported>晦暗天明
无编辑摘要
(更改为异世界百科最新版)
 
<onlyinclude><i class="fa{{#switch: {{{type|solid}}} | solid = fas | regular = far }} fa-fw fa-{{{icon|}}}{{{i|}}} {{#if: {{{size|}}} |fa-{{{size}}}|}} {{#switch: {{{spin|}}} | true = fa-spin | spin = fa-spin | pulse = fa-pulse }} {{#switch: {{{border|}}} | true = fa-border | 1 = fa-border }} {{#switch: {{{float|}}} | left = fa-pull-left | right = fa-pull-right }}" >{{{after|}}}</i>{{#fas:}}</onlyinclude>
<noinclude>
 
 
= Font Awesome =
== 基础用法 ==
{{fa|icon=quote-left|size=3x|border=true|float=left}} <pre><nowiki>{{fa|icon=quote-left|size=3x|border=true|float=left}}</nowiki></pre><br>
{{fa|icon=quote-right|size=3x|border=true|float=right}} <pre><nowiki>{{fa|icon=quote-right|size=3x|border=true|float=right}}</nowiki></pre>
 
== 变体 ==
{{fa|icon=star|type=regular}}
 
{{fa|icon=star|type=regular}}
 
<pre><nowiki>
{{fa|icon=star|type=regular}}
{{fa|icon=star|type=regular}}
</nowiki></pre>
 
注意:并不是所有FontAwesome图标都存在变体,具体请参照[https://fontawesome.com/search?o=r&m=free&new=yes FontAwesome 免费版图标列表]
<templatedata>
{
"label": "图标大小",
"description": "可用值:lg, 2x, 3x, 4x, 5x",
"type": "wiki-page-namedropdown",
"default": ": 默认\nlg: 大\n2x: 二倍\n3x: 三倍\n4x: 四倍\n5x: 五倍"
},
"spin": {
"label": "是否旋转",
"description": "spin: 旋转, pulse: 8位旋转",
"type": "linedropdown",
"default": ": 不旋转\nspin: 连续旋转\npulse: 8帧间断旋转"
},
"border": {
"label": "浮动",
"description": "left: 浮动于左侧, right: 浮动于右侧",
"type": "linedropdown",
"default": ": 不浮动\nleft: 左侧\nright: 右侧"
},
"type": {
"label": "变体类型",
"description": "图标的变体类型",
"example": "solid",
"suggestedvalues": [
"solid",
"regular"
]
}
},
作者、​界面管理员、​管理员
14

个编辑