Difference between revisions of "Template:Temperature"
From TerraFirmaCraft Plus Wiki
(Trying to fix newline breaking transcluded templates. F***ing mediawiki) |
|||
| Line 1: | Line 1: | ||
| − | <includeonly>{{#vardefine:color | + | <includeonly> |
| + | : {{#vardefine:color | ||
|{{#switch: {{{1|Hot}}} | |{{#switch: {{{1|Hot}}} | ||
|Hot=#eeeeee | |Hot=#eeeeee | ||
| Line 12: | Line 13: | ||
|Brilliant White=#ffffff | |Brilliant White=#ffffff | ||
}} | }} | ||
| − | }}{{#vardefine:stars|{{padleft:|{{{2|0}}}|★}}}}<span style="color: {{#var:color}}">{{{1|Hot}}}{{#var:stars}}</span></includeonly> | + | }} |
| + | : {{#vardefine:stars|{{padleft:|{{{2|0}}}|★}}}} | ||
| + | <span style="color: {{#var:color}}">{{{1|Hot}}}{{#var:stars}}</span></includeonly> | ||
<noinclude> | <noinclude> | ||
{{/doc}} | {{/doc}} | ||
</noinclude> | </noinclude> | ||
Revision as of 11:30, 2 October 2019
Template documentation (for the above template, sometimes hidden or invisible)
This template returns text representing TFC+ device temperature (e.g. Bright Red***).
Usage
{{Temperature|Text|Stars}}
e.g.
{{Temperature|Bright Red|3}}
produces
Bright Red⋆⋆⋆
Visit Template:Temperature/doc to edit this text! (How does this work?)