Icon2 – Template
Jump to navigation
Jump to search
Lou Montana (talk | contribs) (Add "big" parameter, required for width/line1/line2) |
Lou Montana (talk | contribs) m (Fix one span too much) |
||
Line 6: | Line 6: | ||
| {{uc:{{{2|}}}}}</span> | | {{uc:{{{2|}}}}}</span> | ||
| {{#sub:{{uc:{{{2|}}}}}|0|1}}</span>{{#if:{{{big|}}}|{{#sub:{{uc:{{{2|}}}}}|1}}}} | | {{#sub:{{uc:{{{2|}}}}}|0|1}}</span>{{#if:{{{big|}}}|{{#sub:{{uc:{{{2|}}}}}|1}}}} | ||
}} | }}</span>{{#if:{{{big|}}}||<span class="subtext">{{ucFirst:{{{1|}}}}}</span>}}</span>|2={{{link|}}}}} | ||
| -no arguments provided- | | -no arguments provided- | ||
}}</includeonly><noinclude>Template '''''Icon2''''' - should appear inline {{Icon2|local|argument|blue}} when in a paragraph. | }}</includeonly><noinclude>Template '''''Icon2''''' - should appear inline {{Icon2|local|argument|blue}} when in a paragraph. |
Revision as of 20:42, 28 February 2021
Template Icon2 - should appear inline LALocal when in a paragraph.
Usage
{{Icon2|firstWord|secondWord|secondLetterColor|link=|big=|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
- big: (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
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 |
the following presentations need the big argument | |
{{Icon2|global|argument|darkorange|big=y}} | GLOBAL ARGUMENT |
{{Icon2|N/A|effect|grey|big=y|line1=y}} | N/A EFFECT |
{{Icon2|smol|box|red|big=y|width=0.5}} | SMOL BOX |
{{Icon2|loc|arg|big=y|width=0.5}} | LOC ARG |
{{Icon2|loc|arg|big=y|width=0.75}} | LOC ARG |
{{Icon2|loc|arg|big=y|width=0.75|line1=y}} | LOC ARG |
{{Icon2|loc|arg|big=y|width=0.75|line2=y}} | LOC ARG |
{{Icon2|loc|arg|big=y|width=0.75|line1=y|line2=y}} | LOC ARG |
{{Icon2|server|execution|green|big=y|link=Multiplayer Scripting}} | SERVER EXECUTION |
{{Icon2|server|execution|green|big=y|width=1.5|link=Multiplayer Scripting}} | SERVER EXECUTION |