Template:Indicator: Difference between revisions

From Step Mods | Change The Game
No edit summary
mNo edit summary
 
(33 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{#vardefine:text|{{#switch: {{{6|}}}
<includeonly>{{#vardefine:text|{{#switch: {{{6|}}}
| Dawnguard = DG
| Dawnguard = DG
| Hearthfire = HF
| Hearthfire = HF
| Dragonborn = DB
| Dragonborn = DB
| {{{6}}}
| {{{6}}}
}} }}
}} }}{{#if: {{{1|}}} | {{#if: {{{2|}}} | <div style="cursor:default; border-radius:2px; width:{{{1}}}px; height:{{{2}}}px; background-color:{{{3}}}; background:-webkit-linear-gradient({{{3}}}, {{{4}}}); background:-moz-linear-gradient({{{3}}}, {{{4}}}); background:-o-linear-gradient({{{3}}}, {{{4}}}); background:linear-gradient({{{3}}}, {{{4}}}); text-align:center; display:table-cell; padding:1px;"><span style="font-size:{{#expr:{{{2}}}*.75}}px; color:{{{5}}}; line-height:1em;">'''''{{#var:text}}'''''</span></div>}} }}</includeonly><noinclude>__NOTOC__ [[Category:Deprecated Templates]]
{{#if: {{{1|}}} | {{#if: {{{2|}}} |
 
<div style="cursor:default; border-radius:2px;width:{{{1}}}px;height:{{{2}}}px;line-height:1;background-color:{{{3}}};background-image:-webkit-gradient(linear, 0% 0%, 0% 100%, from({{{3}}}), to({{{4}}}));background-image:-webkit-linear-gradient(top, {{{3}}}, {{{4}}});background-image:-moz-linear-gradient(top, {{{3}}}, {{{4}}});background-image:-ms-linear-gradient(top, {{{3}}}, {{{4}}});background-image:-o-linear-gradient(top, {{{3}}}, {{{4}}});vertical-align:middle;text-align:center;display:table-cell;padding:1px;"><span style="margin:0;font-size:{{#expr:{{{2}}}*.75}}px;line-height:1em;color:{{{5}}};font-weight:bold;">'''''{{#var:text}}'''''</span>
== Purpose & Usage ==
</div>
}} }}
<noinclude>
<pre>
<pre>
{{Indicator|width|height|s_gradient|e_gradient|text}}
{{Indicator|width|height|s_gradient|e_gradient|text}}
</pre>
</pre>


Example:
Used primarily to designate a DLC required, although it may be used to simply show text with a background color/gradient.
<pre>
 
{{Indicator|32|20|#739472|#5C6F5C|#A8C9A7|AB}}
== Examples ==
</pre>
<!--
'''Code:'''
<pre>{{TEMPLATE NAME AND ARGUMENTS}}</pre>
'''Result:'''
{{TEMPLATE NAME AND ARGUMENTS}}
-->
'''Code:'''
<pre>{{Indicator|32|20|#739472|#5C6F5C|#A8C9A7|AB}}</pre>
'''Result:'''
{{Indicator|32|20|#739472|#5C6F5C|#A8C9A7|AB}}
{{Indicator|32|20|#739472|#5C6F5C|#A8C9A7|AB}}


Example with Fc template:
'''Code:'''
<pre>
<pre>{{Indicator|32|20|#ff0000|#440000|#000|Dawnguard}}</pre>
{{Indicator|32|20|#ff0000|#440000|#000|Dawnguard}}
'''Result:'''
</pre>
{{Indicator|32|20|#ff0000|#440000|#000|Dawnguard}}
{{Indicator|32|20|#ff0000|#440000|#000|Dawnguard}}
== See Also ==
<!--
[[:RELATED TEMPLATE NAME AND ARGUMENTS]]
-->
None


</noinclude>
</noinclude>

Latest revision as of 15:34, September 17, 2021


Purpose & Usage[edit source]

{{Indicator|width|height|s_gradient|e_gradient|text}}

Used primarily to designate a DLC required, although it may be used to simply show text with a background color/gradient.

Examples[edit source]

Code:

{{Indicator|32|20|#739472|#5C6F5C|#A8C9A7|AB}}

Result:

AB

Code:

{{Indicator|32|20|#ff0000|#440000|#000|Dawnguard}}

Result:

DG

See Also[edit source]

None