模板:Fa:修订间差异
跳转到导航
跳转到搜索
删除的内容 添加的内容
小无编辑摘要 |
小无编辑摘要 标签:已被回退 |
||
| 第1行: | 第1行: | ||
<includeonly> |
<includeonly> |
||
{{#if: {{{stack|}}} | |
|||
|开始=<span class="fa-stack"> |
|||
{{#switch: {{{stack}}} |
|||
| ⚫ | |||
| 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> |
|||
| ⚫ | |||
| #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> |
|||