Lou Montana/Sandbox – User
Jump to navigation
Jump to search
Lou Montana (talk | contribs) (Template idea - TODO add link) |
Lou Montana (talk | contribs) 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: | | <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> | |||
| -no arguments provided- | | -no arguments provided- | ||
}}</includeonly><noinclude>Template '''''Icon2''' | }}</includeonly><noinclude>Template '''''Icon2''''' - should appear inline {{{{FULLPAGENAME}}|local|argument|blue}} when in a paragraph. | ||
== Usage == | == Usage == | ||
{{<nowiki/>Icon2|'''''firstWord'''''|'''''secondWord'''''|'''''secondLetterColor'''''|''''' | {{<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" | ||
* | * firstLetterColor: (Optional, default <tt>blue</tt>) CSS color | ||
* | * link: (Optional, default empty) icon link | ||
{| class="wikitable" | {| class="wikitable" | ||
Line 25: | Line 19: | ||
| {{ {{FULLPAGENAME}} }} | | {{ {{FULLPAGENAME}} }} | ||
|- | |- | ||
| <tt><nowiki>{{Icon2|argument | | <tt><nowiki>{{Icon2|local|argument|blue}}</nowiki></tt> | ||
| {{{{FULLPAGENAME}}|argument | | {{{{FULLPAGENAME}}|local|argument|blue}} | ||
|- | |- | ||
| <tt><nowiki>{{Icon2 | | <tt><nowiki>{{Icon2|N/A|argument|grey}}</nowiki></tt> | ||
| {{{{FULLPAGENAME}} | | {{{{FULLPAGENAME}}|N/A|argument|grey}} | ||
|- | |- | ||
| <tt><nowiki>{{Icon2| | | <tt><nowiki>{{Icon2|global|argument|darkorange}}</nowiki></tt> | ||
| {{{{FULLPAGENAME}}| | | {{{{FULLPAGENAME}}|global|argument|darkorange}} | ||
|- | |- | ||
| <tt><nowiki>{{Icon2|effect | | <tt><nowiki>{{Icon2|local|effect|blue}}</nowiki></tt> | ||
| {{{{FULLPAGENAME}}|effect | | {{{{FULLPAGENAME}}|local|effect|blue}} | ||
|- | |- | ||
| <tt><nowiki>{{Icon2 | | <tt><nowiki>{{Icon2|N/A|effect|grey}}</nowiki></tt> | ||
| {{{{FULLPAGENAME}} | | {{{{FULLPAGENAME}}|N/A|effect|grey}} | ||
|- | |- | ||
| <tt><nowiki>{{Icon2| | | <tt><nowiki>{{Icon2|global|effect|darkorange}}</nowiki></tt> | ||
| {{{{FULLPAGENAME}}| | | {{{{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| | | <tt><nowiki>{{Icon2|server|execution|green|link=Multiplayer Scripting}}</nowiki></tt> | ||
| {{{{FULLPAGENAME}}|server|execution|green| | | {{{{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
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 |