跳转到内容

Template:Fa:修订间差异

勤求古训,博采众方
无编辑摘要
标签已被回退
无编辑摘要
标签已被回退
第1行: 第1行:
<includeonly>{{#if: {{{stack|}}} |
<includeonly>
  {{#switch: {{{stack}}}
{{#switch: {{#explode:{{FULLPAGENAME}}|#|1}}
    | start = <span class="fa-stack" style="font-size:{{{stack-size|1em}}};{{{stack-style|}}}">
   | far = {{#invoke:FontAwesome|renderIcon|style=far|params={{{1|}}}}}
    | end = </span>
  | fas = {{#invoke:FontAwesome|renderIcon|style=fas|params={{{1|}}}}}
    | #default = {{error: stack参数仅支持start/end,当前值:{{{stack}}}}}
  | fab = {{#invoke:FontAwesome|renderIcon|style=fab|params={{{1|}}}}}
   }}
}}
|
</includeonly><noinclude>{{documentation}}</noinclude>
  {{#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:36的版本