Skip to content

LFG Player Info

Zhou Fang edited this page Sep 11, 2022 · 4 revisions

LFG Player Info

中文版本

LFGPlayerInfo is a utility for generating player information with custom template.

Template

The idea of template is from the trend of front-end engineering in recent years.

Sample

{{classIcon:18}} {{specIcon:14,18}} {{classColorStart}}{{className}} ({{specName}}){{classColorEnd}}{{amountStart}} x {{amount}}{{amountEnd}}

Available Components

Texts

  • {{className}}

    • Localized Class Name
  • {{specName}}

    • Localized Specialization Name
  • {{amount}}

    • The amount of players who has the specialization

Icons

Class Icon

  • {{classIcon:SIZE}}
    • Height and width are same.
    • Sample: {{specIcon:14}}
  • {{classIcon:HEIGHT,WIDTH}}
    • It should be used if you want to get an icon with aspect ratio.
    • Sample: {{specIcon:14,18}}

Specialization Icon

  • {{specIcon:SIZE}}
    • Height and width are same.
    • Sample: {{specIcon:14}}
  • {{specIcon:HEIGHT,WIDTH}}
    • It should be used if you want to get an icon with aspect ratio.
    • Sample: {{specIcon:14,18}}

Pairs

Class Color

  • {{classColorStart}} ... {{classColorEnd}}
    • The text between start and end will be colored with the class color.
    • Sample: {{classColorStart}} some text here {{classColorEnd}}

Amount

  • {{amountStart}} ... {{amountEnd}}
    • The part between start and end will only be rendered if the amount is larger than 1.
    • Sample: {{amountStart}} x {{amount}}{{amountEnd}}