Template:Indicator: Difference between revisions

From Step Mods | Change The Game
No edit summary
No edit summary
Line 6: Line 6:
}} }}
}} }}
{{#if: {{{1|}}} | {{#if: {{{2|}}} |
{{#if: {{{1|}}} | {{#if: {{{2|}}} |
<div style="margin-left:auto;margin-right:auto;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>
<div style="margin:0 auto; 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>
</div>
</div>
}} }}
}} }}
Line 16: Line 16:
</pre>
</pre>


Example:
Used primarily to designate a DLC required, although it may be used to simply
<pre>
{{Indicator|32|20|#739472|#5C6F5C|#A8C9A7|AB}}
</pre>
{{Indicator|32|20|#739472|#5C6F5C|#A8C9A7|AB}}
 
Example with Fc template:
<pre>
{{Indicator|32|20|#ff0000|#440000|#000|Dawnguard}}
</pre>
{{Indicator|32|20|#ff0000|#440000|#000|Dawnguard}}


== Examples ==
== Examples ==
Line 35: Line 25:
{{TEMPLATE NAME AND ARGUMENTS}}
{{TEMPLATE NAME AND ARGUMENTS}}
-->
-->
None
'''Code:'''
<pre>{{Indicator|32|20|#739472|#5C6F5C|#A8C9A7|AB}}</pre>
'''Result:'''
{{Indicator|32|20|#739472|#5C6F5C|#A8C9A7|AB}}
 
'''Code:'''
<pre>{{Indicator|32|20|#ff0000|#440000|#000|Dawnguard}}</pre>
'''Result:'''
{{Indicator|32|20|#ff0000|#440000|#000|Dawnguard}}


== See Also ==
== See Also ==

Revision as of 16:44, May 6, 2015


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

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