Template:BTD6 frontier encounter: Difference between revisions

i removed the map thumbnail because having a separate cargo query for every single instance of this template was causing performance issues on pages that use this template a lot
mNo edit summary
 
(15 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><div class="cr-outer-block subtable-wrapper"><div class="cr-wrapper">
<includeonly><div class="cr-outer-block"><div class="flex-wrapper"><!--
{|class="subtable single-width"
 
!Map
--><div class="flex-item half-width"><div class="flex-item-header">Encounter</div><!--
|{{{map|}}}
--><div class="flex-item-body">Map: {{{map|}}}<br>Type: {{{encounterType|}}}<br>{{#if:{{{boss|}}}|Boss: {{{boss|}}}<br>}}Roundset: [[List of rounds in Frontier Legends#Base set {{{roundset|}}}|Type {{{roundset|}}}]]</div></div><!--
|-
 
!Type
--><div class="flex-item half-width"><div class="flex-item-header">Modifiers</div><!--
|{{{encounterType|}}}
--><div class="flex-item-body" style="column-width:190px">{{#ifexpr:
|-
!Roundset
|[[List of rounds in Frontier Legends#Base set {{{roundset|}}}|Type {{{roundset|}}}]]
|-
!Pre-placed towers
|{{{storyTowers|}}}
|}
{|class="subtable single-width"
!
!First time
{{#ifeq:{{{mapId|}}}|FiringRange||
!Replay
!Elite}}
|-
!Rounds
|{{{startRound|}}}–{{{endRound|}}}
{{#ifeq:{{{mapId|}}}|FiringRange||
{{!}}{{#expr:{{{startRound|}}} + {{{replayStartRoundAddition|}}}}}–{{#expr:{{{endRound|}}} + {{{replayEndRoundAddition|}}}}}
{{!}}{{#expr:{{{startRound|}}} + {{{eliteStartRoundAddition|}}}}}–{{#expr:{{{endRound|}}} + {{{eliteEndRoundAddition|}}}}}}}
|-
![[Bananite]] per round
|×{{{endOfRoundCashMultiplier|}}}<br>({{BTD6 bananite|{{#expr:(200 + {{{startRound|}}} + {{{endRound|}}}) * ({{{endRound|}}} - {{{startRound|}}} + 1) / 2 * {{{endOfRoundCashMultiplier|}}}}}}} total)
{{#ifeq:{{{mapId|}}}|FiringRange||
{{!}}×{{#expr:{{{replayEndOfRoundCashMultiplier|}}} * {{{endOfRoundCashMultiplier|}}}}}<br>({{BTD6 bananite|{{#expr:(200 + {{{startRound|}}} + {{{endRound|}}} + {{{replayStartRoundAddition|}}} + {{{replayEndRoundAddition|}}}) * ({{{endRound|}}} + {{{replayEndRoundAddition|}}} - {{{startRound|}}} - {{{replayStartRoundAddition|}}} + 1) / 2 * {{{replayEndOfRoundCashMultiplier|}}} * {{{endOfRoundCashMultiplier|}}}}}}} total)
{{!}}×{{#expr:{{{eliteEndOfRoundCashMultiplier|}}} * {{{endOfRoundCashMultiplier|}}}}}<br>({{BTD6 bananite|{{#expr:(200 + {{{startRound|}}} + {{{endRound|}}} + {{{eliteStartRoundAddition|}}} + {{{eliteEndRoundAddition|}}}) * ({{{endRound|}}} + {{{eliteEndRoundAddition|}}} - {{{startRound|}}} - {{{eliteStartRoundAddition|}}} + 1) / 2 * {{{eliteEndOfRoundCashMultiplier|}}} * {{{endOfRoundCashMultiplier|}}}}}}} total)}}
|-
!Victory bonus
|{{BTD6 bananite|{{#expr: 100 * {{{victoryCashMultiplier|}}}}}}}
{{#ifeq:{{{mapId|}}}|FiringRange||
{{!}}{{BTD6 bananite|{{#expr: 100 * {{{victoryCashMultiplier|}}} * {{{replayVictoryCashMultiplier|}}}}}}}
{{!}}{{BTD6 bananite|{{#expr: 100 * {{{victoryCashMultiplier|}}} * {{{eliteVictoryCashMultiplier|}}}}}}}}}
|}
{|class="subtable single-width"
!Modifiers
|-
|colspan="{{#ifeq:{{{mapId|}}}|FiringRange|3|5}}"|<div style="column-width:190px">{{#ifexpr:
{{{speedMultiplier|1.0}}} = 1.0 and
{{{speedMultiplier|1.0}}} = 1.0 and
{{{moabSpeedMultiplier|1.0}}} = 1.0 and
{{{moabSpeedMultiplier|1.0}}} = 1.0 and
Line 76: Line 40:
-->{{#ifeq:{{{disableSelling|}}}|1|[[File:BTD6 SellingDisabledIcon.png|18px|link=]] Selling disabled<br>}}<!--
-->{{#ifeq:{{{disableSelling|}}}|1|[[File:BTD6 SellingDisabledIcon.png|18px|link=]] Selling disabled<br>}}<!--
-->{{#ifeq:{{{allCamo|}}}|1|[[File:BTD6 AllCamoIcon.png|18px|link=]] All Camo<br>}}<!--
-->{{#ifeq:{{{allCamo|}}}|1|[[File:BTD6 AllCamoIcon.png|18px|link=]] All Camo<br>}}<!--
-->{{#ifeq:{{{allRegen|}}}|1|[[File:BTD6 AllRegenIcon.png|18px|link=]] All Regrow}}}}</div>
-->{{#ifeq:{{{allRegen|}}}|1|[[File:BTD6 AllRegenIcon.png|18px|link=]] All Regrow}}}}</div></div><!--
|}
 
{|class="subtable single-width"
-->
!Reinforcements (first time)
{|class="flex-item subtable" style="table-layout:fixed"
!style="height:0"|
!First time
{{#ifeq:{{{mapId|}}}|FiringRange||
!Replay
!Elite}}
|-
!Rounds
|{{{startRound|}}}–{{{endRound|}}}
{{#ifeq:{{{mapId|}}}|FiringRange||
{{!}}{{#expr:{{{startRound|}}} + {{{replayStartRoundAddition|}}}}}–{{#expr:{{{endRound|}}} + {{{replayEndRoundAddition|}}}}}
{{!}}{{#expr:{{{startRound|}}} + {{{eliteStartRoundAddition|}}}}}–{{#expr:{{{endRound|}}} + {{{eliteEndRoundAddition|}}}}}}}
|-
![[Bananite]] per round
|×{{{endOfRoundCashMultiplier|}}} (total: {{BTD6 bananite|{{#expr:(200 + {{{startRound|}}} + {{{endRound|}}}) * ({{{endRound|}}} - {{{startRound|}}} + 1) / 2 * {{{endOfRoundCashMultiplier|}}}}}}})
{{#ifeq:{{{mapId|}}}|FiringRange||
{{!}}×{{#expr:{{{replayEndOfRoundCashMultiplier|}}} * {{{endOfRoundCashMultiplier|}}}}} (total: {{BTD6 bananite|{{#expr:(200 + {{{startRound|}}} + {{{endRound|}}} + {{{replayStartRoundAddition|}}} + {{{replayEndRoundAddition|}}}) * ({{{endRound|}}} + {{{replayEndRoundAddition|}}} - {{{startRound|}}} - {{{replayStartRoundAddition|}}} + 1) / 2 * {{{replayEndOfRoundCashMultiplier|}}} * {{{endOfRoundCashMultiplier|}}}}}}})
{{!}}×{{#expr:{{{eliteEndOfRoundCashMultiplier|}}} * {{{endOfRoundCashMultiplier|}}}}} (total: {{BTD6 bananite|{{#expr:(200 + {{{startRound|}}} + {{{endRound|}}} + {{{eliteStartRoundAddition|}}} + {{{eliteEndRoundAddition|}}}) * ({{{endRound|}}} + {{{eliteEndRoundAddition|}}} - {{{startRound|}}} - {{{eliteStartRoundAddition|}}} + 1) / 2 * {{{eliteEndOfRoundCashMultiplier|}}} * {{{endOfRoundCashMultiplier|}}}}}}})}}
|-
|-
|style="height:100%"|{{#if:{{{reinforcementSet|}}}|[[List of rounds in Frontier Legends#Reinforcement set {{{reinforcementSet|}}}|Type {{{reinforcementSet|}}}]]
!Victory bonus
<ul style="column-width:100px"><li>Round {{#replace:{{#replace:{{{rushList|}}}|,|:<nowiki/> <nowiki/>}}|;|</li><li>Round<nowiki/> <nowiki/>}}
|{{BTD6 bananite|{{#expr: 100 * {{{victoryCashMultiplier|}}}}}}}
</li></ul>|None}}
{{#ifeq:{{{mapId|}}}|FiringRange||
|}{{#ifeq:{{{mapId|}}}|FiringRange||
{{!}}{{BTD6 bananite|{{#expr: 100 * {{{victoryCashMultiplier|}}} * {{{replayVictoryCashMultiplier|}}}}}}}
{{{!}}class="subtable single-width"
{{!}}{{BTD6 bananite|{{#expr: 100 * {{{victoryCashMultiplier|}}} * {{{eliteVictoryCashMultiplier|}}}}}}}}}
!Reinforcements (replay)
|}<!--
{{!}}-
 
{{!}}style="height:100%"{{!}}{{#if:{{{replayReinforcementSet|}}}|[[List of rounds in Frontier Legends#Reinforcement set {{{replayReinforcementSet|}}}|Type {{{replayReinforcementSet|}}}]]
--><div class="flex-item"><div class="flex-item-header">Pre-placed towers</div><!--
<ul style="column-width:100px"><li>Round {{#replace:{{#replace:{{{replayRushList|}}}|,|:<nowiki/> <nowiki/>}}|;|</li><li>Round<nowiki/> <nowiki/>}}
--><div class="flex-item-body">{{{storyTowers|}}}</div></div><!--
</li></ul>|None}}
 
{{!}}}
--><div class="flex-item {{#ifeq:{{{mapId|}}}|FiringRange|triple-width}}"><div class="flex-item-header">Reinforcements (first time)</div><!--
{{{!}}class="subtable single-width"
--><div class="flex-item-body">[[List of rounds in Frontier Legends#Reinforcement set {{{reinforcementSet|}}}|Type {{{reinforcementSet|}}}]]<!--
!Reinforcements (elite)
--><div style="column-width:80px">Round {{#replace:{{#replace:{{{rushList|}}}|,|:<nowiki/> <nowiki/>}}|;|<br>Round<nowiki/> <nowiki/>}}</div></div></div><!--
{{!}}-
 
{{!}}style="height:100%"{{!}}{{#if:{{{eliteReinforcementSet|}}}|[[List of rounds in Frontier Legends#Reinforcement set {{{eliteReinforcementSet|}}}|Type {{{eliteReinforcementSet|}}}]]
-->{{#ifeq:{{{mapId|}}}|FiringRange||<div class="flex-item"><div class="flex-item-header">Reinforcements (replay)</div><!--
<ul style="column-width:100px"><li>Round {{#replace:{{#replace:{{{eliteRushList|}}}|,|:<nowiki/> <nowiki/>}}|;|</li><li>Round<nowiki/> <nowiki/>}}
--><div class="flex-item-body">[[List of rounds in Frontier Legends#Reinforcement set {{{replayReinforcementSet|}}}|Type {{{replayReinforcementSet|}}}]]<!--
</li></ul>|None}}
--><div style="column-width:80px">Round {{#replace:{{#replace:{{{replayRushList|}}}|,|:<nowiki/> <nowiki/>}}|;|<br>Round<nowiki/> <nowiki/>}}</div></div></div><!--
{{!}}}
 
}}</div></div></includeonly><noinclude>{{/doc}}</noinclude><templatestyles src="BTD6 challenge rules/style.css"/>
--><div class="flex-item"><div class="flex-item-header">Reinforcements (elite)</div><!--
--><div class="flex-item-body">[[List of rounds in Frontier Legends#Reinforcement set {{{eliteReinforcementSet|}}}|Type {{{eliteReinforcementSet|}}}]]<!--
--><div style="column-width:80px">Round {{#replace:{{#replace:{{{eliteRushList|}}}|,|:<nowiki/> <nowiki/>}}|;|<br>Round<nowiki/> <nowiki/>}}</div></div></div>}}<!--
 
--></div></div></includeonly><noinclude>{{/doc}}</noinclude><templatestyles src="BTD6 challenge rules/style.css"/>