Icon2 – Template

From Bohemia Interactive Community
Revision as of 22:44, 27 February 2021 by Lou Montana (talk | contribs) (change absolute width → width factor)
Jump to navigation Jump to search

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

Usage

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

  • 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
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|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|glob|arg|orange|width=0.75}} GLOB
ARG
{{Icon2|server|execution|green|width=1.5}} SERVER
EXECUTION
{{Icon2|server|execution|green|link=Multiplayer Scripting}} SERVER
EXECUTION
{{Icon2|server|execution|green|width=1.5|link=Multiplayer Scripting}} SERVER
EXECUTION