Icon2 – Template

From Bohemia Interactive Community
Revision as of 21:51, 27 February 2021 by Lou Montana (talk | contribs) (Add line1 and line2 parameters)
Jump to navigation Jump to search

Template Icon2 - should appear inline LOCAL
ARGUMENT
when in a paragraph.

Usage

{{Icon2|firstWord|secondWord|secondLetterColor|width=|link=|line1=|line2=}}

  • firstWord: first letter word, e.g "argument"
  • secondWord: second letter word, e.g "local"
  • firstLetterColor: (Optional, default blue) CSS color
  • widthFactor: (Optional, default 1) width factor
  • link: (Optional, default empty) icon link
  • line1: (Optional, default empty) if filled, colours and resize the whole first line
  • line2: (Optional, default empty) if filled, colours and resize the whole second line
Examples
Code Result
{{Icon2}} -no arguments provided-
{{Icon2|local|argument|blue}} LOCAL
ARGUMENT
{{Icon2|N/A|argument|grey}} N/A
ARGUMENT
{{Icon2|global|argument|darkorange}} GLOBAL
ARGUMENT
{{Icon2|local|effect|blue}} LOCAL
EFFECT
{{Icon2|N/A|effect|grey}} N/A
EFFECT
{{Icon2|N/A|effect|grey|line1=y}} N/A
EFFECT
{{Icon2|global|effect|darkorange}} GLOBAL
EFFECT
{{Icon2|server|execution|green}} SERVER
EXECUTION
{{Icon2|smol|box|red|width=0.5}} SMOL
BOX
{{Icon2|loc|arg|width=0.5}} LOC
ARG
{{Icon2|loc|arg|width=0.75}} LOC
ARG
{{Icon2|loc|arg|width=0.75|line1=y}} LOC
ARG
{{Icon2|loc|arg|width=0.75|line2=y}} LOC
ARG
{{Icon2|loc|arg|width=0.75|line1=y|line2=y}} LOC
ARG
{{Icon2|server|execution|green|link=Multiplayer Scripting}} SERVER
EXECUTION
{{Icon2|server|execution|green|width=1.5|link=Multiplayer Scripting}} SERVER
EXECUTION