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

From ATITD5
Jump to navigationJump to search
Line 3: Line 3:
 
<nowiki>{{AquaductTowerConstruction|current=0|target=50|bricks=4|concrete=3|cut=2|pipe=1}}</nowiki>
 
<nowiki>{{AquaductTowerConstruction|current=0|target=50|bricks=4|concrete=3|cut=2|pipe=1}}</nowiki>
 
gives
 
gives
{{AquaductTowerConstruction|current=0|target=50|bricks=4|concrete=3|cut=2|pipe=1}}
+
{{AquaductTowerConstruction|current=0|target=195|bricks=4|concrete=3|cut=2|pipe=1}}
 
</noinclude><includeonly>
 
</noinclude><includeonly>
 
{| style = 'width: 23em; margin-bottom: 0.5em; border-spacing: 0; border-left: 1px solid black; border-right: 1px solid black'
 
{| style = 'width: 23em; margin-bottom: 0.5em; border-spacing: 0; border-left: 1px solid black; border-right: 1px solid black'
Line 31: Line 31:
 
|-
 
|-
 
! colspan='6' style = 'padding: 0.25em 0.7em' | <div style='font-size: 120%'>Raise Aquaduct Tower from {{{cur|0}}} to {{{target|50}}}
 
! colspan='6' style = 'padding: 0.25em 0.7em' | <div style='font-size: 120%'>Raise Aquaduct Tower from {{{cur|0}}} to {{{target|50}}}
{{ResResource|Bricks|{{{bricks|0}}}|{{#expr: (2000+50*{{{target|50}}})-(2000+50*{{{cur|0}}})}}|0}}
+
{{ResResource|Bricks|{{{bricks|0}}}|{{#expr: (2000+50*{{{target|50}}})-{{#ifeq: {{{cur|0}}} | 0 | 0 | (2000+50*{{{cur|0}}})}}}}}}
 
{{ResResource|Concrete|{{{concrete|0}}}|{{#expr: (2*{{{target|50}}})-(2*{{{cur|0}}})}}|0}}
 
{{ResResource|Concrete|{{{concrete|0}}}|{{#expr: (2*{{{target|50}}})-(2*{{{cur|0}}})}}|0}}
 
{{ResResource|Cut Stone|{{{cut|0}}}|{{#expr: trunc(1.5*{{{target|50}}})-trunc(1.5*{{{cur|0}}})}}|0}}
 
{{ResResource|Cut Stone|{{{cut|0}}}|{{#expr: trunc(1.5*{{{target|50}}})-trunc(1.5*{{{cur|0}}})}}|0}}
{{ResResource|Pipe Segments|{{{pipe|0}}}|{{#expr: trunc(5+{{{target|50}}}/50)-trunc(5+{{{cur|0}}}/50)}}|0}}
+
{{ResResource|Pipe Segments|{{{pipe|0}}}|{{#expr: trunc(5+{{{target|50}}}/50)-{{#ifeq: {{{cur|0}}} | 0 | 0 | trunc(5+{{{cur|0}}}/50)}}}}}}
  
 
</div>
 
</div>

Revision as of 07:27, 6 December 2010

parameter built=no to include base materials.
base concrete is parameter buildconcrete, concrete is for raise.
ex: {{AquaductTowerConstruction|current=0|target=50|bricks=4|concrete=3|cut=2|pipe=1}} gives

block
Raise Aquaduct Tower from 0 to 195
Bricks
4
/
11750
(11746)
0%
Concrete
3
/
390
(387)
0%
Cut Stone
2
/
292
(290)
0%
Pipe Segments
1
/
8
(7)
12%
block