Template:Deposit/view/row: Difference between revisions

From Against the Storm Official Wiki
Adding buildings to rows
Total number of biomes is now 10
 
(8 intermediate revisions by one other user not shown)
Line 1: Line 1:
<includeonly>|-
<includeonly>|-
{{#if: {{{deposit|}}} | {{!}}class="ats-table-deposit-node"{{!}} {{{deposit|Deposit}}} |}}
{{#if: {{{deposit|}}} | {{!}}class="ats-table-deposit-node"{{!}} {{{deposit|Deposit}}} |}}
{{#if: {{{building|}}} | {{!}} {{{building|}}} |}}
{{#if: {{{building|}}} | {{!}}class="ats-table-deposit-building"{{!}} {{{building|}}} |}}
|class="ats-deposit-charges"| {{{charges|0}}}
|class="ats-table-deposit-charges"| {{{charges|0}}}
|class="ats-table-deposit-primary"| {{{primary|Primary}}}
|class="ats-table-deposit-primary"| {{{primary|Primary}}}
{{#if: {{{bonus1|}}}
{{#if: {{{bonus1|}}} | {{!}}class="ats-table-deposit-bonus"{{!}} {{{bonus1}}} | {{!}} — }}   {{#if: {{{bonus2|}}} | {{!}}{{!}}class="ats-table-deposit-bonus"{{!}} {{{bonus2}}} | {{#ifexpr: {{{maxbonuses|0}}} > 1 | {{!}}{{!}} — |}} }}   {{#if: {{{bonus3|}}} | {{!}}{{!}}class="ats-table-deposit-bonus"{{!}} {{{bonus3}}} | {{#ifexpr: {{{maxbonuses|0}}} > 2 | {{!}}{{!}} — |}} }}  {{#if: {{{bonus4|}}} | {{!}}{{!}}class="ats-table-deposit-bonus"{{!}} {{{bonus4}}} | {{#ifexpr: {{{maxbonuses|0}}} > 3 | {{!}}{{!}} — |}} }}
  |<!--then do 1st bonus-->
{{#ifeq: {{{skip_biomes|show}}} | skip
{{!}}class="ats-table-deposit-bonus"{{!}} {{{bonus1}}}
   |<!--then do nothing-->
   |<!--else skip, but there is always at least the first blank-->
  |<!--else show biomes columns-->
{{!}} —
{{!}}class="ats-table-deposit-biome"{{!}} {{#if: {{{biome1|}}} | [[{{{biome1}}} {{!}} {{ImgM}}]] | {{c|Red|x}} }}
}} {{#if: {{{bonus2|}}}  
{{!}}class="ats-table-deposit-biome"{{!}} {{#if: {{{biome2|}}} | [[{{{biome2}}} {{!}} {{ImgM}}]] | {{c|Red|x}} }}
  |<!--then do 2nd bonus-->
{{!}}class="ats-table-deposit-biome"{{!}} {{#if: {{{biome3|}}} | [[{{{biome3}}} {{!}} {{ImgM}}]] | {{c|Red|x}} }}
{{!}}{{!}}class="ats-table-deposit-bonus"{{!}} {{{bonus2}}}  
{{!}}class="ats-table-deposit-biome"{{!}} {{#if: {{{biome4|}}} | [[{{{biome4}}} {{!}} {{ImgM}}]] | {{c|Red|x}} }}
  |<!--else skip, but only show the blank if there are more maxbonuses--> {{#ifexpr: {{{maxbonuses|0}}} > 1 | {{!}}{{!}} — |}} }} {{#if: {{{bonus3|}}}
{{!}}class="ats-table-deposit-biome"{{!}} {{#if: {{{biome5|}}} | [[{{{biome5}}} {{!}} {{ImgM}}]] | {{c|Red|x}} }}
   |<!--then do 3rd bonus-->
{{!}}class="ats-table-deposit-biome"{{!}} {{#if: {{{biome6|}}} | [[{{{biome6}}} {{!}} {{ImgM}}]] | {{c|Red|x}} }}
{{!}}{{!}}class="ats-table-deposit-bonus"{{!}} {{{bonus3}}}
{{!}}class="ats-table-deposit-biome"{{!}} {{#if: {{{biome7|}}} | [[{{{biome7}}} {{!}} {{ImgM}}]] | {{c|Red|x}} }}
  |<!--else skip, but only show the blank if there are more maxbonuses--> {{#ifexpr: {{{maxbonuses|0}}} > 2 | {{!}}{{!}} — |}}
{{!}}class="ats-table-deposit-biome"{{!}} {{#if: {{{biome8|}}} | [[{{{biome8}}} {{!}} {{ImgM}}]] | {{c|Red|x}} }}
}} {{#if: {{{bonus4|}}}
{{!}}class="ats-table-deposit-biome"{{!}} {{#if: {{{biome9|}}} | [[{{{biome9}}} {{!}} {{ImgM}}]] | {{c|Red|x}} }}
  |<!--then do 4th bonus-->
{{!}}class="ats-table-deposit-biome"{{!}} {{#if: {{{biome10|}}} | [[{{{biome10}}} {{!}} {{ImgM}}]] | {{c|Red|x}} }}
{{!}}{{!}}class="ats-table-deposit-bonus"{{!}} {{{bonus4}}}
  |<!--else skip, but only show the blank if there are more maxbonuses--> {{#ifexpr: {{{maxbonuses|0}}} > 3 | {{!}}{{!}} — |}}
}}</includeonly><noinclude>
}}</includeonly><noinclude>
{{Deposit/view|caption=Gathering Node|numdeposits=1|maxbonuses=3}}
{{Deposit/view/row|deposit={{rl|Resin|medium}}|building={{bl|Grill|medium}}|maxbonuses=3|bonus1={{rl|Clay|size=medium|display=notext}}|bonus2={{rl|Stone|size=medium|display=notext}}|bonus3={{rl|Berries|size=medium|display=notext}}}}
{{Deposit/view/row|maxbonuses=3|bonus1={{rl|Reed|size=medium|display=notext}}|bonus2={{rl|Berries|size=medium|display=notext}}|bonus3={{rl|Coal|size=medium|display=notext}}}}
{{Deposit/view/row|maxbonuses=3|bonus1={{rl|Bricks|size=medium|display=notext}}|bonus2={{rl|Planks|size=medium|display=notext}}|bonus3={{rl|Fabric|size=medium|display=notext}}}}
{{Deposit/view/end}}


{{Template:Reserved_template_warning}}
{{Template:Reserved_template_warning}}

Latest revision as of 22:45, 8 August 2025


Templates in the Reserved templates subcategory are NOT intended to be used directly by article authors.

These templates are reserved for special pages, meta pages, and automated by Lua modules.

Please reach out to the wiki community for alternatives before you use these templates on your pages.