The Wiki for Tale 8 is in read-only mode and is available for archival and reference purposes only. Please visit the current Tale 11 Wiki in the meantime.
If you have any issues with this Wiki, please post in #wiki-editing on Discord or contact Brad in-game.
Difference between revisions of "Template:Citrus"
Jump to navigation
Jump to search
(Citrus Template from Tale 7) |
m (Fixed numbers wrapping on short bars) |
||
(One intermediate revision by the same user not shown) | |||
Line 7: | Line 7: | ||
Value should be between 0 and 1000.<BR> | Value should be between 0 and 1000.<BR> | ||
Color needs to be a Hex Value (where no value is specified, #7777FF is used) | Color needs to be a Hex Value (where no value is specified, #7777FF is used) | ||
− | |||
Example: <NOWIKI>{{Citrus|200|400|600|800|#FF0000}}</NOWIKI> produces: | Example: <NOWIKI>{{Citrus|200|400|600|800|#FF0000}}</NOWIKI> produces: | ||
Line 15: | Line 14: | ||
</noinclude><includeonly>{| style = 'border-spacing: 0; margin: 0 auto' | | </noinclude><includeonly>{| style = 'border-spacing: 0; margin: 0 auto' | | ||
|- | |- | ||
− | | style = 'padding: 0.2em 0.5em;font-size: 70%; line-height: 1.2; text-align: right' | <strong>Color:</strong>||<div style='width: 100px; border: 1px solid #888; background: #ddd'><div style='font-size: 70%; line-height: 1.2; height: 1.2em; width: {{#expr: trunc ({{{1|1000}}} / 10) }}px; background: {{{5|#7777FF}}}; text-align: left'> {{{1}}}</div></div> | + | | style = 'padding: 0.2em 0.5em;font-size: 70%; line-height: 1.2; text-align: right' | <strong>Color:</strong>||<div style='width: 100px; border: 1px solid #888; background: #ddd'><div style='font-size: 70%; line-height: 1.2; height: 1.2em; width: {{#expr: trunc ({{{1|1000}}} / 10) }}px; background: {{{5|#7777FF}}}; text-align: left; white-space: nowrap;'> {{{1}}}</div></div> |
|- | |- | ||
− | | style = 'padding: 0.2em 0.5em;font-size: 70%; line-height: 1.2; text-align: right' | <strong>Sweet:</strong>||<div style='width: 100px; border: 1px solid #888; background: #ddd'><div style='font-size: 70%; line-height: 1.2; height: 1.2em; width: {{#expr: trunc ({{{2|1000}}} / 10) }}px; background: #7777FF; text-align: left'> {{{2}}}</div></div> | + | | style = 'padding: 0.2em 0.5em;font-size: 70%; line-height: 1.2; text-align: right' | <strong>Sweet:</strong>||<div style='width: 100px; border: 1px solid #888; background: #ddd'><div style='font-size: 70%; line-height: 1.2; height: 1.2em; width: {{#expr: trunc ({{{2|1000}}} / 10) }}px; background: #7777FF; text-align: left; white-space: nowrap;'> {{{2}}}</div></div> |
|- | |- | ||
− | | style = 'padding: 0.2em 0.5em;font-size: 70%; line-height: 1.2; text-align: right' | <strong>Size:</strong>||<div style='width: 100px; border: 1px solid #888; background: #ddd'><div style='font-size: 70%; line-height: 1.2; height: 1.2em; width: {{#expr: trunc ({{{3|1000}}} / 10) }}px; background: #7777FF; text-align: left'> {{{3}}}</div></div> | + | | style = 'padding: 0.2em 0.5em;font-size: 70%; line-height: 1.2; text-align: right' | <strong>Size:</strong>||<div style='width: 100px; border: 1px solid #888; background: #ddd'><div style='font-size: 70%; line-height: 1.2; height: 1.2em; width: {{#expr: trunc ({{{3|1000}}} / 10) }}px; background: #7777FF; text-align: left; white-space: nowrap;'> {{{3}}}</div></div> |
|- | |- | ||
− | | style = 'padding: 0.2em 0.5em;font-size: 70%; line-height: 1.2; text-align: right' | <strong>Length:</strong>||<div style='width: 100px; border: 1px solid #888; background: #ddd'><div style='font-size: 70%; line-height: 1.2; height: 1.2em; width: {{#expr: trunc ({{{4|1000}}} / 10) }}px; background: #7777FF; text-align: left'> {{{4}}}</div></div> | + | | style = 'padding: 0.2em 0.5em;font-size: 70%; line-height: 1.2; text-align: right' | <strong>Length:</strong>||<div style='width: 100px; border: 1px solid #888; background: #ddd'><div style='font-size: 70%; line-height: 1.2; height: 1.2em; width: {{#expr: trunc ({{{4|1000}}} / 10) }}px; background: #7777FF; text-align: left; white-space: nowrap;'> {{{4}}}</div></div> |
|}</includeonly><noinclude> | |}</includeonly><noinclude> | ||
− | [[Category: | + | [[Category:Templates]] {{DEFAULTSORT:{{SUBPAGENAME}}}} |
</noinclude> | </noinclude> |
Latest revision as of 19:55, 16 August 2019
Creates a table with Color, Sweet, Size and Length, where the bar will show the fill level
Usage:
- {{Citrus|Value of Color|Value of Sweet|Value of Size|Value of Length}}
- {{Citrus|Value of Color|Value of Sweet|Value of Size|Value of Length|Color of Color (optional)|Color of Sweet (optional)|Color of Size (optional)|Color of Value (optional)}}
Value should be between 0 and 1000.
Color needs to be a Hex Value (where no value is specified, #7777FF is used)
Example: {{Citrus|200|400|600|800|#FF0000}} produces:
Color: | 200 |
Sweet: | 400 |
Size: | 600 |
Length: | 800 |