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="border-radius:3px;width:{{{1}}}px;height:{{{2}}}px;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;line-height:1em;color:{{{5}}}">'' '''{{{text}}}''' ''</span>
<div style="border-radius:3px;width:{{{1}}}px;height:{{{2}}}px;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;line-height:1em;color:{{{5}}}">'' '''{{#var:text}}''' ''</span>
</div>
</div>
}} }}
}} }}

Revision as of 12:27, March 3, 2013


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

Example:

{{Indicator|32|20|#ff0000|#440000|#fff|AB}}
'


Example with Fc template:

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

}}