Template:Indicator: Difference between revisions
From Step Mods | Change The Game
No edit summary |
No edit summary |
||
Line 7: | Line 7: | ||
{{#if: {{{1|}}} | {{#if: {{{2|}}} | | {{#if: {{{1|}}} | {{#if: {{{2|}}} | | ||
<div style="cursor:default; border-radius:2px; width:{{{1}}}px; height:{{{2}}}px; background-color:{{{3}}}; | <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}}}); vertical-align:middle; text-align:center; display:table-cell; padding:1px;"><span style=" | background:-webkit-linear-gradient({{{3}}}, {{{4}}}); background:-moz-linear-gradient({{{3}}}, {{{4}}}); background:-o-linear-gradient({{{3}}}, {{{4}}}); background:linear-gradient({{{3}}}, {{{4}}}); vertical-align:middle; 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> | </div> | ||
}} }} | }} }} |
Revision as of 17:20, May 6, 2015
Purpose & Usage
{{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
Code:
{{Indicator|32|20|#739472|#5C6F5C|#A8C9A7|AB}}
Result:
AB
Code:
{{Indicator|32|20|#ff0000|#440000|#000|Dawnguard}}
Result:
DG
See Also
None