模板:Fa:修订间差异

勤求古训,博采众方
跳转到导航 跳转到搜索
删除的内容 添加的内容
小无编辑摘要
标签:已被回退
小无编辑摘要
标签:手工回退
 
(未显示同一用户的1个中间版本)
第1行: 第1行:
<includeonly>{{#if: {{{stack|}}} |
<includeonly>{{#switch:{{{stack|}}}
|开始=<span class="fa-stack">
{{#switch: {{{stack}}}
⚫
|结束=</span>
| start = <span class="fa-stack" style="font-size:{{{stack-size|1em}}};{{{stack-style|}}}">
|#default=<i class="fa-{{{1|question}}} {{#ifexpr:{{#switch:{{{2|}}}|s|r|b=0|#default=1}}*{{#switch:{{{3|}}}|s|r|b=0|#default=1}}|fa}} {{#switch:{{{2|}}}|s=fas|r=far|b=fab|#default={{{2|}}}}} {{#switch:{{{3|}}}|s=fas|r=far|b=fab|#default={{{3|}}}}} {{#if:{{{rotate|}}}|fa-rotate-{{{rotate}}}}} {{#if:{{{stack|}}}|fa-stack-{{{stack}}}x}}" style="font-size:{{{size|}}};color:{{{color|}}};{{{style|}}}"></i>}}</includeonly><noinclude>{{documentation}}</noinclude>
⚫
| end = </span>
| #default = {{error: stack参数仅支持start/end,当前值:{{{stack}}}}}
}}
|
{{#if: {{{name|}}} |
<i class="
{{#switch: {{{style|solid}}}
| solid = fas
| regular = far
| brands = fab
| #default = {{#if: {{{style|}}} | {{{style}}} | fas}}
}}
fa-{{{name}}}
{{#if: {{{class|}}} | {{{class}}} }}
{{#if: {{{rotate|}}} | fa-rotate-{{{rotate}}} }}
{{#if: {{{stack-layer|}}} | fa-stack-{{{stack-layer}}}x }}
" style="
font-size:{{{size|1em}}};
color:{{{color|inherit}}};
{{#if: {{{stack-layer|}}} | position:relative; }}
{{{custom-style|}}}
"></i>
|
{{error: 缺少必需参数:name(图标名称)}}
}}
}}</includeonly><noinclude>{{documentation}}</noinclude>

2025年11月25日 (二) 11:45的最新版本