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="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-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> | </div> | ||
}} }} | }} }} |
Revision as of 05:33, March 4, 2013
{{Indicator|width|height|s_gradient|e_gradient|text}}
Example:
{{Indicator|32|20|#739472|#5C6F5C|#A8C9A7|AB}}
AB
Example with Fc template:
{{Indicator|32|20|#ff0000|#440000|#000|Dawnguard}}
DG