Lou Montana/Sandbox – User

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Final version before CSS)
(Add width argument, add link)
Line 1: Line 1:
<noinclude>[[Category: Sandbox]]</noinclude><includeonly>{{#if:{{{1|}}}{{{2|}}}
<noinclude>[[Category: Sandbox]]</noinclude><includeonly>{{#if:{{{1|}}}{{{2|}}}
| <span style="background-color: #CCC; display: inline-block; height: 32px; position: relative; text-align: center; vertical-align: middle; width: 64px;" 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="font-size: 1.33em; font-weight: bold; vertical-align: baseline">{{#sub:{{uc:{{{2|}}}}}|0|1}}</span>{{#sub:{{uc:{{{2|}}}}}|1}}</span></span></span>
| {{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-
| -no arguments provided-
}}</includeonly><noinclude>Template '''''Icon2''''' - should appear inline {{{{FULLPAGENAME}}|local|argument|blue}} when in a paragraph.
}}</includeonly><noinclude>Template '''''Icon2''''' - should appear inline {{{{FULLPAGENAME}}|local|argument|blue}} when in a paragraph.


== Usage ==
== Usage ==
{{<nowiki/>Icon2|'''''firstWord'''''|'''''secondWord'''''|'''''secondLetterColor'''''|'''''link='''''}}
{{<nowiki/>Icon2|'''''firstWord'''''|'''''secondWord'''''|'''''secondLetterColor'''''|'''''width='''''|'''''link='''''}}
* 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 <tt>blue</tt>) CSS color
* width: (Optional, default 64) width in pixels
* link: (Optional, default empty) icon link
* link: (Optional, default empty) icon link


Line 39: Line 40:
| <tt><nowiki>{{Icon2|server|execution|green}}</nowiki></tt>
| <tt><nowiki>{{Icon2|server|execution|green}}</nowiki></tt>
| {{{{FULLPAGENAME}}|server|execution|green}}
| {{{{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>
| <tt><nowiki>{{Icon2|server|execution|green|link=Multiplayer Scripting}}</nowiki></tt>
| {{{{FULLPAGENAME}}|server|execution|green|link=Multiplayer Scripting}}
| {{{{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>
{{TemplateCase|[[Category:Templates|{{uc:{{PAGENAME}}}}]]}}</noinclude>

Revision as of 18:26, 27 February 2021

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
  • width: (Optional, default 64) width in pixels
  • 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|server|execution|green|width=128}} SERVER
EXECUTION
{{Icon2|server|execution|green|link=Multiplayer Scripting}} SERVER
EXECUTION
{{Icon2|server|execution|green|width=128|link=Multiplayer Scripting}} SERVER
EXECUTION