The Wiki for Tale 7 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:ResResource"

From ATITD7
Jump to navigationJump to search
(make it so that surplus is green and doesn't overrun box)
Line 10: Line 10:
 
|-
 
|-
 
| style = 'font-size: 70%; line-height: 1.2; text-align: right' | <strong>{{#expr: trunc (100 * {{{2|7777}}} / {{{3|10000}}}) }}%</strong>
 
| style = 'font-size: 70%; line-height: 1.2; text-align: right' | <strong>{{#expr: trunc (100 * {{{2|7777}}} / {{{3|10000}}}) }}%</strong>
| colspan = '4' style = 'padding: 0.2em 0.25em' |<div style='width: 98%; min-width: 12em; border: 1px solid #888; background: #ddd'><div style='font-size: 70%; line-height: 1.2; height: 1.2em; width: {{#expr: trunc (100 * {{{2|7777}}} / {{{3|10000}}}) }}%; background: {{#ifeq: {{{2|7777}}} | {{{3|10000}}} | #99ff55 | #fb9 }}'></div></div><noinclude>
+
| colspan = '4' style = 'padding: 0.2em 0.25em' |<div style='width: 98%; min-width: 12em; border: 1px solid #888; background: #ddd'><div style='font-size: 70%; line-height: 1.2; height: 1.2em; width: {{#expr: trunc (100 * {{{2|7777}}} / {{{3|10000}}}) }}%; max-width: 100%; background: {{#ifexpr: {{{2|7777}}} >= {{{3|10000}}} | #99ff55 | #fb9 }}'></div></div><noinclude>
 
|}</noinclude><NOINCLUDE>[[Category: Template]]  {{DEFAULTSORT:{{PAGENAME}}}}</noinclude>
 
|}</noinclude><NOINCLUDE>[[Category: Template]]  {{DEFAULTSORT:{{PAGENAME}}}}</noinclude>

Revision as of 03:52, 22 June 2017

None
7777
/
10000
(2223)
77%