Icon2 – Template

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Fix width argument)
m (Text replacement - "<tt>([^ =]+)<\/tt>" to "{{hl|$1}}")
Line 14: Line 14:
* firstWord: first letter word, e.g "argument"
* firstWord: first letter word, e.g "argument"
* secondWord: second letter word, e.g "local"
* secondWord: second letter word, e.g "local"
* firstLetterColor: (Optional, default <tt>blue</tt>) CSS color
* firstLetterColor: (Optional, default {{hl|blue}}) CSS color
* link: (Optional, default empty) icon link
* link: (Optional, default empty) icon link
* size: (Optional, default 1) size factor. Does '''not''' work with ''verbose''
* size: (Optional, default 1) size factor. Does '''not''' work with ''verbose''
Line 27: Line 27:
! Result
! Result
|-
|-
| <tt><nowiki>{{Icon2}}</nowiki></tt>
| {{hl|<nowiki>{{Icon2}}</nowiki>}}
| {{Icon2}}
| {{Icon2}}
|-
|-
| <tt><nowiki>{{Icon2|local|argument|blue}}</nowiki></tt>
| {{hl|<nowiki>{{Icon2|local|argument|blue}}</nowiki>}}
| {{Icon2|local|argument|blue}}
| {{Icon2|local|argument|blue}}
|-
|-
| <tt><nowiki>{{Icon2|N/A|argument|grey}}</nowiki></tt>
| {{hl|<nowiki>{{Icon2|N/A|argument|grey}}</nowiki>}}
| {{Icon2|N/A|argument|grey}}
| {{Icon2|N/A|argument|grey}}
|-
|-
| <tt><nowiki>{{Icon2|global|argument|darkorange}}</nowiki></tt>
| {{hl|<nowiki>{{Icon2|global|argument|darkorange}}</nowiki>}}
| {{Icon2|global|argument|darkorange}}
| {{Icon2|global|argument|darkorange}}
|-
|-
| <tt><nowiki>{{Icon2|local|effect|blue}}</nowiki></tt>
| {{hl|<nowiki>{{Icon2|local|effect|blue}}</nowiki>}}
| {{Icon2|local|effect|blue}}
| {{Icon2|local|effect|blue}}
|-
|-
| <tt><nowiki>{{Icon2|N/A|effect|grey}}</nowiki></tt>
| {{hl|<nowiki>{{Icon2|N/A|effect|grey}}</nowiki>}}
| {{Icon2|N/A|effect|grey}}
| {{Icon2|N/A|effect|grey}}
|-
|-
| <tt><nowiki>{{Icon2|global|effect|darkorange}}</nowiki></tt>
| {{hl|<nowiki>{{Icon2|global|effect|darkorange}}</nowiki>}}
| {{Icon2|global|effect|darkorange}}
| {{Icon2|global|effect|darkorange}}
|-
|-
| <tt><nowiki>{{Icon2|server|execution|green}}</nowiki></tt>
| {{hl|<nowiki>{{Icon2|server|execution|green}}</nowiki>}}
| {{Icon2|server|execution|green}}
| {{Icon2|server|execution|green}}
|-
|-

Revision as of 11:33, 16 November 2021

Template Icon2 - should appear inline LALocal when in a paragraph.

Usage

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

  • firstWord: first letter word, e.g "argument"
  • secondWord: second letter word, e.g "local"
  • firstLetterColor: (Optional, default blue) CSS color
  • link: (Optional, default empty) icon link
  • size: (Optional, default 1) size factor. Does not work with verbose
  • verbose: (Optional, default empty) if filled, shows the wide version of this icon (with full text) and unlocks the following parameters.
  • width: (Optional, default 1) width factor
  • 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}} LALocal
{{Icon2|N/A|argument|grey}} NAN/A
{{Icon2|global|argument|darkorange}} GAGlobal
{{Icon2|local|effect|blue}} LELocal
{{Icon2|N/A|effect|grey}} NEN/A
{{Icon2|global|effect|darkorange}} GEGlobal
{{Icon2|server|execution|green}} SEServer
{{Icon2|server|execution|green|size=2}} SEServer
the following presentations need the verbose argument
{{Icon2|global|argument|darkorange|verbose=y}} GLOBAL
ARGUMENT
{{Icon2|global|argument|darkorange|verbose=y|size=3}} GLOBAL
ARGUMENT
{{Icon2|N/A|effect|grey|verbose=y|line1=y}} N/A
EFFECT
{{Icon2|smol|box|red|verbose=y|width=0.5}} SMOL
BOX
{{Icon2|loc|arg|verbose=y|width=0.5}} LOC
ARG
{{Icon2|loc|arg|verbose=y|width=0.75}} LOC
ARG
{{Icon2|loc|arg|verbose=y|width=0.75|line1=y}} LOC
ARG
{{Icon2|loc|arg|verbose=y|width=0.75|line2=y}} LOC
ARG
{{Icon2|loc|arg|verbose=y|width=0.75|line1=y|line2=y}} LOC
ARG
{{Icon2|server|execution|green|verbose=y|link=Multiplayer Scripting}} SERVER
EXECUTION
{{Icon2|server|execution|green|verbose=y|width=1.5|link=Multiplayer Scripting}} SERVER
EXECUTION