Icon2 – Template
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (change absolute width → width factor) |
Lou Montana (talk | contribs) m (Add line1 and line2 parameters) |
||
Line 1: | Line 1: | ||
<includeonly>{{#if:{{{1|}}}{{{2|}}} | <includeonly>{{#if:{{{1|}}}{{{2|}}} | ||
| {{LinkWrap|1=<span class="icon2"{{#if:{{{width|}}}|<nowiki/> style="width: {{#expr:{{{width}}} * 64 round 2}}px"}} alt="{{ucFirst:{{Trim|{{{1|}}} {{{2|}}}}}}}" title="{{ucFirst:{{Trim|{{{1|}}} {{{2|}}}}}}}"><span class="background"><span class="letter-1"{{#if:{{{3|}}}|<nowiki/> style="color: {{{3}}}"}}> | | {{LinkWrap|1=<span class="icon2"{{#if:{{{width|}}}|<nowiki/> style="width: {{#expr:{{{width}}} * 64 round 2}}px"}} alt="{{ucFirst:{{Trim|{{{1|}}} {{{2|}}}}}}}" title="{{ucFirst:{{Trim|{{{1|}}} {{{2|}}}}}}}"><span class="background"><span class="letter-1"{{#if:{{{3|}}}|<nowiki/> style="color: {{{3}}}"}}>{{#if:{{{line1|}}} | ||
| {{uc:{{{1|}}}}}</span> | |||
| {{#sub:{{uc:{{{1|}}}}}|0|1}}</span>{{#sub:{{uc:{{{1|}}}}}|1}} | |||
}}<br><span class="letter-2">{{#if:{{{line2|}}} | |||
| {{uc:{{{2|}}}}}</span> | |||
| {{#sub:{{uc:{{{2|}}}}}|0|1}}</span>{{#sub:{{uc:{{{2|}}}}}|1}} | |||
}}</span></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. | ||
== Usage == | == Usage == | ||
{{<nowiki/>Icon2|'''''firstWord'''''|'''''secondWord'''''|'''''secondLetterColor'''''|'''''width='''''|'''''link='''''}} | {{<nowiki/>Icon2|'''''firstWord'''''|'''''secondWord'''''|'''''secondLetterColor'''''|'''''width='''''|'''''link='''''|'''''line1='''''|'''''line2='''''}} | ||
* 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" | ||
Line 11: | Line 17: | ||
* widthFactor: (Optional, default 1) width factor | * widthFactor: (Optional, default 1) width factor | ||
* link: (Optional, default empty) icon link | * 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 | |||
{| class="wikitable" | {| class="wikitable" | ||
Line 34: | Line 42: | ||
| <tt><nowiki>{{Icon2|N/A|effect|grey}}</nowiki></tt> | | <tt><nowiki>{{Icon2|N/A|effect|grey}}</nowiki></tt> | ||
| {{Icon2|N/A|effect|grey}} | | {{Icon2|N/A|effect|grey}} | ||
|- | |||
| <tt><nowiki>{{Icon2|N/A|effect|grey|line1=y}}</nowiki></tt> | |||
| {{Icon2|N/A|effect|grey|line1=y}} | |||
|- | |- | ||
| <tt><nowiki>{{Icon2|global|effect|darkorange}}</nowiki></tt> | | <tt><nowiki>{{Icon2|global|effect|darkorange}}</nowiki></tt> | ||
Line 50: | Line 61: | ||
| {{Icon2|loc|arg|width=0.75}} | | {{Icon2|loc|arg|width=0.75}} | ||
|- | |- | ||
| <tt><nowiki>{{Icon2| | | <tt><nowiki>{{Icon2|loc|arg|width=0.75|line1=y}}</nowiki></tt> | ||
| {{Icon2| | | {{Icon2|loc|arg|width=0.75|line1=y}} | ||
|- | |||
| <tt><nowiki>{{Icon2|loc|arg|width=0.75|line2=y}}</nowiki></tt> | |||
| {{Icon2|loc|arg|width=0.75|line2=y}} | |||
|- | |- | ||
| <tt><nowiki>{{Icon2| | | <tt><nowiki>{{Icon2|loc|arg|width=0.75|line1=y|line2=y}}</nowiki></tt> | ||
| {{Icon2| | | {{Icon2|loc|arg|width=0.75|line1=y|line2=y}} | ||
|- | |- | ||
| <tt><nowiki>{{Icon2|server|execution|green|link=Multiplayer Scripting}}</nowiki></tt> | | <tt><nowiki>{{Icon2|server|execution|green|link=Multiplayer Scripting}}</nowiki></tt> |
Revision as of 22:51, 27 February 2021
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
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 |