Difference between revisions of "Template:Tf2-item-attribute"
(Template for setting the correct colors for TF2 item attributes. Default implementation sets the background to black, as that's what the game does. More specific colors can be set later. This template assumes Parser Functions are enabled.) |
(Changed span to p) |
||
(12 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly>< | + | <includeonly><p style="padding: 5px; background-color: black; color: {{#switch:{{{1}}} |
| positive = cyan | | positive = cyan | ||
| negative = red | | negative = red | ||
− | | | + | | white |
− | }};</includeonly> | + | }};">{{{2}}}</p></includeonly> |
<noinclude> | <noinclude> | ||
Usage: | Usage: | ||
Line 18: | Line 18: | ||
{{Tf2-item-attribute|neutral|Description}} | {{Tf2-item-attribute|neutral|Description}} | ||
+ | |||
+ | All unknown types become a neutral attribute. | ||
</noinclude> | </noinclude> |
Latest revision as of 09:26, 25 May 2012
Usage:
{{Tf2-item-attribute|positive|Description}}
Description
{{Tf2-item-attribute|negative|Description}}
Description
{{Tf2-item-attribute|neutral|Description}}
Description
All unknown types become a neutral attribute.