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:0 auto; cursor:default; border-radius:2px; width:{{{1}}}px; height:{{{2}}}px; line-height:1; background-color:{{{3}}}; background | <div style="margin:0 auto; cursor:default; border-radius:2px; width:{{{1}}}px; height:{{{2}}}px; line-height:1; background-color:{{{3}}}; | ||
background:-webkit-linear-gradient({{{3}}}, {{{4}}})/* For Safari 5.1 to 6.0 */; background:-moz-linear-gradient({{{3}}}, {{{4}}})/* For Firefox 3.6 to 15 */; background:-o-linear-gradient({{{3}}}, {{{4}}})/* For Opera 11.1 to 12.0 */; background: linear-gradient({{{3}}}, {{{4}}})/* Standard syntax */; 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 16:56, 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
Examples
Code:
{{Indicator|32|20|#739472|#5C6F5C|#A8C9A7|AB}}
Result:
AB
Code:
{{Indicator|32|20|#ff0000|#440000|#000|Dawnguard}}
Result:
DG
See Also
None