跳转到内容

Template:Fa:修订间差异

勤求古训,博采众方
无编辑摘要
标签已被回退
无编辑摘要
标签手工回退
 
(未显示同一用户的1个中间版本)
第1行: 第1行:
<includeonly>{{#if: {{{stack|}}} |
<includeonly>{{#switch:{{{stack|}}}
  {{#switch: {{{stack}}}
|开始=<span class="fa-stack">
    | start = <span class="fa-stack" style="font-size:{{{stack-size|1em}}};{{{stack-style|}}}">
|结束=</span>
    | end = </span>
|#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><noinclude>{{documentation}}</noinclude>

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