Abrir menu principal

UESPWiki β

Alterações

Predefinição:React Color/Doc

1 266 bytes adicionados, 23h14min de 24 de março de 2014
m
category
== Summary ==
Returns a color from red to green for faction reactions. This template is normally called as part of {{tl|FacReact}}.

==Parameters==
{{Parameters
|1|required|Reaction amount. Must be one of {-8, -4, -3, -2, -1, +1, +2, +3}. (The plus sign is optional.)
|noquotes|optional|Passing a value in this parameter returns the color without quotes for use in CSS.
}}

==Examples==
{| class="wikitable"
!Value/<br>Color
|-
|style="text-align:center; background-color:{{React Color|-8|noquotes=yes}}"|'''-8'''
|-
|style="text-align:center; background-color:{{React Color|-4|noquotes=yes}}"|'''-4'''
|-
|style="text-align:center; background-color:{{React Color|-3|noquotes=yes}}"|'''-3'''
|-
|style="text-align:center; background-color:{{React Color|-2|noquotes=yes}}"|'''-2'''
|-
|style="text-align:center; background-color:{{React Color|-1|noquotes=yes}}"|'''-1'''
|-
|style="text-align:center; background-color:{{React Color|+1|noquotes=yes}}"|'''+1'''
|-
|style="text-align:center; background-color:{{React Color|+2|noquotes=yes}}"|'''+2'''
|-
|style="text-align:center; background-color:{{React Color|+3|noquotes=yes}}"|'''+3'''
|}
<includeonly>[[Category:Color Templates]]</includeonly><noinclude>[[Category:Template Documentation|{{PAGENAME}}]]</noinclude>