Template:Fa:修订间差异
外观
小无编辑摘要 |
小无编辑摘要 标签:已被回退 |
||
| 第1行: | 第1行: | ||
<includeonly>{{#switch:{{{stack | <includeonly> | ||
| | {{#if: {{{stack|}}} | | ||
| | {{#switch: {{{stack}}} | ||
|#default= | | start = <span class="fa-stack" style="font-size:{{{stack-size|1em}}};{{{stack-style|}}}"> | ||
| 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> | |||