Template:Deposit/view: Difference between revisions

From Against the Storm Official Wiki
Adding building column for rows
Adding biome columns
Line 10: Line 10:
!class="unsortable"{{!}} No deposits.
!class="unsortable"{{!}} No deposits.
   |<!--else show deposits-->
   |<!--else show deposits-->
  {{#ifexpr: {{{maxbonuses|0}}} < 2
{{#ifexpr: {{{numdeposits|0}}} > 1 | !rowspan=2{{!}} Name |}}
    |<!--then only one bonus-->
{{#ifeq: {{{building|show}}} | skip | <!--skip--> | !rowspan=2{{!}} Building }}
{{#ifexpr: {{{numdeposits|0}}} > 1 |! Name |}}
{{#ifeq: {{{building|}}} | skip | |! Building }}
! Charges
! Primary
! Bonus
    |<!--else multiple bonuses-->
{{#ifexpr: {{{numdeposits|0}}} > 1 |!rowspan=2{{!}} Name |}}
{{#ifeq: {{{building|}}} | skip | |!rowspan=2{{!}} Building }}
!rowspan=2{{!}} Charges
!rowspan=2{{!}} Charges
!rowspan=2{{!}} Primary
!rowspan=2{{!}} Primary
!colspan={{{maxbonuses}}}{{!}} Bonus Resources
!colspan={{{maxbonuses|1}}}{{!}} Bonus
{{#ifeq: {{{skip_biomes|show}}} | skip | <!--skip--> | !colspan=8{{!}} In Biomes }}
{{!}}-
{{!}}-
! &#35;1 !! &#35;2 {{#ifexpr: {{{maxbonuses|0}}} > 2 | !! &#35;3 |}} {{#ifexpr: {{{maxbonuses|0}}} > 3 | !! &#35;4 |}}
! &#35;1
{{#ifexpr: {{{maxbonuses|0}}} > 1 | ! &#35;2 |}}
{{#ifexpr: {{{maxbonuses|0}}} > 2 | ! &#35;3 |}}
{{#ifexpr: {{{maxbonuses|0}}} > 3 | ! &#35;4 |}}
  {{#ifeq: {{{skip_biomes|show}}} | skip
    |<!--then skip biomes-->
    |<!--else show biome column headers-->
! [[ {{{biome1|File:Question_mark.png}}} {{!}} {{ImgS}} ]]
! [[ {{{biome2|File:Question_mark.png}}} {{!}} {{ImgS}} ]]
! [[ {{{biome3|File:Question_mark.png}}} {{!}} {{ImgS}} ]]
! [[ {{{biome4|File:Question_mark.png}}} {{!}} {{ImgS}} ]]
! [[ {{{biome5|File:Question_mark.png}}} {{!}} {{ImgS}} ]]
! [[ {{{biome6|File:Question_mark.png}}} {{!}} {{ImgS}} ]]
! [[ {{{biome7|File:Question_mark.png}}} {{!}} {{ImgS}} ]]
! [[ {{{biome8|File:Question_mark.png}}} {{!}} {{ImgS}} ]]
   }}
   }}
}}</includeonly><noinclude>
}}</includeonly><noinclude>
Line 50: Line 57:
{{Deposit/view/end}}
{{Deposit/view/end}}
<hr>
<hr>
{{Deposit/view|caption=Test caption|numdeposits=2|maxbonuses=5}}
{{Deposit/view|skip_biomes=skip|caption=Test caption|numdeposits=2|maxbonuses=5}}
{{Deposit/view/end}}
{{Deposit/view/end}}
<hr>
<hr>

Revision as of 14:17, 14 March 2025



Deposits

Node

No deposits.

Deposits

A dense shrub, full of many useful plant species. Requires a gathering camp.

Test caption

Name Building Charges Primary Bonus In Biomes
#1 #2 #3
0 Primary Clay Stone Berries x x x x x x x x x x
0 Primary Reed Berries Coal x x x x x x x x x x
0 Primary Bricks Planks Fabric x x x x x x x x x x

Deposits

Test caption

Building Charges Primary Bonus In Biomes
#1



Deposits

Test caption

Building Charges Primary Bonus In Biomes
#1 #2



Deposits

Test caption

Building Charges Primary Bonus In Biomes
#1 #2 #3

Deposits

Test caption

Name Building Charges Primary Bonus In Biomes
#1 #2 #3 #4

Deposits

Test caption

Name Building Charges Primary Bonus
#1 #2 #3 #4

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.