Lou Montana/Sandbox – User

From Bohemia Interactive Community
Jump to navigation Jump to search
(Add width argument, add link)
m (Page cleanup)
Tag: Replaced
Line 1: Line 1:
<noinclude>[[Category: Sandbox]]</noinclude><includeonly>{{#if:{{{1|}}}{{{2|}}}
[[Category: Sandbox]]
| {{LinkWrap|1=<span style="background-color: #CCC; display: inline-block; height: 32px; position: relative; text-align: center; vertical-align: middle; width: {{{width|64}}}px;" alt="{{ucFirst:{{Trim|{{{1|}}} {{{2|}}}}}}}" title="{{ucFirst:{{Trim|{{{1|}}} {{{2|}}}}}}}"><span style="background-color: #FFF; display: table-cell; font-family: Consolas, serif; font-size: .9em; letter-spacing: -0.025em; line-height: 1.0625em; position: absolute; top: 1px; left: 1px; right: 1px; bottom: 1px"><span style="color: {{{3|blue}}}; font-size: 1.66em; font-weight: bold; vertical-align: baseline">{{#ifexpr:{{#len:{{{1|}}}}} < 4|{{uc:{{{1}}}}}|{{#sub:{{uc:{{{1|}}}}}|0|1}}}}</span>{{#ifexpr:{{#len:{{{1|}}}}} < 4||{{#sub:{{uc:{{{1|}}}}}|1}}}}<br><span style="color:#333; font-size: 1.33em; font-weight: bold; vertical-align: baseline">{{#sub:{{uc:{{{2|}}}}}|0|1}}</span>{{#sub:{{uc:{{{2|}}}}}|1}}</span></span></span>|2={{{link|}}}}}
| -no arguments provided-
}}</includeonly><noinclude>Template '''''Icon2''''' - should appear inline {{{{FULLPAGENAME}}|local|argument|blue}} when in a paragraph.
 
== Usage ==
{{<nowiki/>Icon2|'''''firstWord'''''|'''''secondWord'''''|'''''secondLetterColor'''''|'''''width='''''|'''''link='''''}}
* firstWord: first letter word, e.g "argument"
* secondWord: second letter word, e.g "local"
* firstLetterColor: (Optional, default <tt>blue</tt>) CSS color
* width: (Optional, default 64) width in pixels
* link: (Optional, default empty) icon link
 
{| class="wikitable"
|+ Examples
! Code
! Result
|-
| <tt><nowiki>{{Icon2}}</nowiki></tt>
| {{ {{FULLPAGENAME}} }}
|-
| <tt><nowiki>{{Icon2|local|argument|blue}}</nowiki></tt>
| {{{{FULLPAGENAME}}|local|argument|blue}}
|-
| <tt><nowiki>{{Icon2|N/A|argument|grey}}</nowiki></tt>
| {{{{FULLPAGENAME}}|N/A|argument|grey}}
|-
| <tt><nowiki>{{Icon2|global|argument|darkorange}}</nowiki></tt>
| {{{{FULLPAGENAME}}|global|argument|darkorange}}
|-
| <tt><nowiki>{{Icon2|local|effect|blue}}</nowiki></tt>
| {{{{FULLPAGENAME}}|local|effect|blue}}
|-
| <tt><nowiki>{{Icon2|N/A|effect|grey}}</nowiki></tt>
| {{{{FULLPAGENAME}}|N/A|effect|grey}}
|-
| <tt><nowiki>{{Icon2|global|effect|darkorange}}</nowiki></tt>
| {{{{FULLPAGENAME}}|global|effect|darkorange}}
|-
| <tt><nowiki>{{Icon2|server|execution|green}}</nowiki></tt>
| {{{{FULLPAGENAME}}|server|execution|green}}
|-
| <tt><nowiki>{{Icon2|server|execution|green|width=128}}</nowiki></tt>
| {{{{FULLPAGENAME}}|server|execution|green|width=128}}
|-
| <tt><nowiki>{{Icon2|server|execution|green|link=Multiplayer Scripting}}</nowiki></tt>
| {{{{FULLPAGENAME}}|server|execution|green|link=Multiplayer Scripting}}
|-
| <tt><nowiki>{{Icon2|server|execution|green|width=128|link=Multiplayer Scripting}}</nowiki></tt>
| {{{{FULLPAGENAME}}|server|execution|green|width=128|link=Multiplayer Scripting}}
|}
 
{{TemplateCase|[[Category:Templates|{{uc:{{PAGENAME}}}}]]}}</noinclude>

Revision as of 21:30, 27 February 2021