Template:Indicator: Difference between revisions
From Step Mods | Change The Game
m (Protected "Template:Indicator" ([edit=sysop] (indefinite) [move=sysop] (indefinite))) |
No edit summary |
||
Line 1: | Line 1: | ||
{{#vardefine:text|{{#switch: {{{6|}}} | |||
| Dawnguard = DG | |||
| Hearthfires = HF | |||
| Dragonborn = DB | |||
}} }} | |||
{{#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;">'' '''{{{ | <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> | </div> | ||
}} }} | }} }} | ||
Line 10: | Line 15: | ||
Example: | Example: | ||
<pre> | <pre> | ||
{{Indicator|32|20|#ff0000|#440000|AB}} | {{Indicator|32|20|#ff0000|#440000|#fff|AB}} | ||
</pre> | </pre> | ||
{{Indicator|32|20|#ff0000|#440000|AB}} | {{Indicator|32|20|#ff0000|#440000|#fff|AB}} | ||
Example with Fc template: | Example with Fc template: | ||
<pre> | <pre> | ||
{{Indicator|32|20|#ff0000|#440000 | {{Indicator|32|20|#ff0000|#440000|#000|Dawnguard}}}} | ||
</pre> | </pre> | ||
{{Indicator|32|20|#ff0000|#440000 | {{Indicator|32|20|#ff0000|#440000|#000|Dawnguard}}}} | ||
</noinclude> | </noinclude> |
Revision as of 12:26, March 3, 2013
{{Indicator|width|height|s_gradient|e_gradient|text}}
Example:
{{Indicator|32|20|#ff0000|#440000|#fff|AB}}
{{{text}}}
Example with Fc template:
{{Indicator|32|20|#ff0000|#440000|#000|Dawnguard}}}}
{{{text}}}
}}