Lou Montana/Sandbox – User

From Bohemia Interactive Community
Jump to navigation Jump to search
(Template idea - TODO add link)
m (Final version before CSS)
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: 32px;" alt="{{{1|}}} {{{2|}}}" title="{{{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>
<span style="background-color: #FFF; display: tkable-cell; font-family: 'Times New Roman', serif; font-weight: bold; letter-spacing: -0.15em; line-height: 1.25em; position: absolute; top: 1px; left: 1px; right: 1px; bottom: 13px">
<span style="font-size: .9em; vertical-align: bottom">{{#sub:{{uc:{{{1|}}}}}|0|1}}</span>
<span style="color: {{{3|blue}}}; font-size: 1.4em; vertical-align: text-bottom">{{#sub:{{uc:{{{2|}}}}}|0|1}}</span>
</span>
<span style="font-size: 9px; font-weight: bold; text-align: center; position: absolute; left: 0; right: 0; bottom: 0; height: 12px; line-height: 12px; overflow: hidden">{{ucFirst:{{{4|{{{2|}}}}}}}}</span>
</span>
| -no arguments provided-
| -no arguments provided-
}}</includeonly><noinclude>Template '''''Icon2''''' standing for '''''G'''ame '''V'''ersion '''I'''con'' - should appear inline {{{{FULLPAGENAME}}|argument|local|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'''''|'''''textOverride'''''}}
{{<nowiki/>Icon2|'''''firstWord'''''|'''''secondWord'''''|'''''secondLetterColor'''''|'''''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"
* secondLetterColor: (Optional, default <tt>blue</tt>) CSS color
* firstLetterColor: (Optional, default <tt>blue</tt>) CSS color
* textOverride: bottom text override (default ''secondWord'')
* link: (Optional, default empty) icon link


{| class="wikitable"
{| class="wikitable"
Line 25: Line 19:
| {{ {{FULLPAGENAME}} }}
| {{ {{FULLPAGENAME}} }}
|-
|-
| <tt><nowiki>{{Icon2|argument|local|blue}}</nowiki></tt>
| <tt><nowiki>{{Icon2|local|argument|blue}}</nowiki></tt>
| {{{{FULLPAGENAME}}|argument|local|blue}}
| {{{{FULLPAGENAME}}|local|argument|blue}}
|-
|-
| <tt><nowiki>{{Icon2|argument|N/A|grey}}</nowiki></tt>
| <tt><nowiki>{{Icon2|N/A|argument|grey}}</nowiki></tt>
| {{{{FULLPAGENAME}}|argument|N/A|grey}}
| {{{{FULLPAGENAME}}|N/A|argument|grey}}
|-
|-
| <tt><nowiki>{{Icon2|effect|global|darkorange}}</nowiki></tt>
| <tt><nowiki>{{Icon2|global|argument|darkorange}}</nowiki></tt>
| {{{{FULLPAGENAME}}|effect|global|darkorange}}
| {{{{FULLPAGENAME}}|global|argument|darkorange}}
|-
|-
| <tt><nowiki>{{Icon2|effect|local|blue}}</nowiki></tt>
| <tt><nowiki>{{Icon2|local|effect|blue}}</nowiki></tt>
| {{{{FULLPAGENAME}}|effect|local|blue}}
| {{{{FULLPAGENAME}}|local|effect|blue}}
|-
|-
| <tt><nowiki>{{Icon2|effect|N/A|grey}}</nowiki></tt>
| <tt><nowiki>{{Icon2|N/A|effect|grey}}</nowiki></tt>
| {{{{FULLPAGENAME}}|effect|N/A|grey}}
| {{{{FULLPAGENAME}}|N/A|effect|grey}}
|-
|-
| <tt><nowiki>{{Icon2|argument|global|darkorange}}</nowiki></tt>
| <tt><nowiki>{{Icon2|global|effect|darkorange}}</nowiki></tt>
| {{{{FULLPAGENAME}}|argument|global|darkorange}}
| {{{{FULLPAGENAME}}|global|effect|darkorange}}
|-
|-
| <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|server}}</nowiki></tt>
| <tt><nowiki>{{Icon2|server|execution|green|link=Multiplayer Scripting}}</nowiki></tt>
| {{{{FULLPAGENAME}}|server|execution|green|server}}
| {{{{FULLPAGENAME}}|server|execution|green|link=Multiplayer Scripting}}
|}
|}


{{TemplateCase|[[Category:Templates|{{uc:{{PAGENAME}}}}]]}}</noinclude>
{{TemplateCase|[[Category:Templates|{{uc:{{PAGENAME}}}}]]}}</noinclude>

Revision as of 15:51, 27 February 2021

Template Icon2 - should appear inline LOCAL
ARGUMENT
when in a paragraph.

Usage

{{Icon2|firstWord|secondWord|secondLetterColor|link=}}

  • 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
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|link=Multiplayer Scripting}} SERVER
EXECUTION