Template:Deposit/view: Difference between revisions

From Against the Storm Official Wiki
m Moving charges from top of table to row
Total number of biomes is now 10
 
(13 intermediate revisions by one other user not shown)
Line 1: Line 1:
<includeonly><div class="ats-container-deposit">
<includeonly><div class="ats-container-deposit">
<p class="ats-deposit-title">{{{heading|Deposit (Small)}}}</p>
<p class="ats-container-deposit-title">{{{heading|Deposits}}}</p>
{{#ifeq: {{{numdeposits|0}}} | 0
  |<!--then no deposits-->
No deposits.
  |<!--else show deposits-->
{{#if: {{{description|}}} | <p class="ats-flavor-text">{{{description|}}}</p> |}}
{{#if: {{{description|}}} | <p class="ats-flavor-text">{{{description|}}}</p> |}}
<div class="ats-double-border-with-header">
<div class="ats-double-border-with-header">
<p class="ats-double-border-with-header-title">{{{caption|Node}}}</p>
<p class="ats-double-border-with-header-title">{{{caption|Node}}}</p>
{|class="sortable mw-collapsible ats-table-deposit"
{{{!}}class="sortable ats-table-deposit"
{{#ifeq: {{{numdeposits|0}}} | 0
{{!}}-
  |<!--then no deposits-->!class=unsortable{{!}} No deposits.
{{#ifexpr: {{{numdeposits|0}}} > 1 | !rowspan=2 class="ats-table-deposit-node"{{!}} Name |}}
  |<!--else recipes to show-->! Name
{{#ifeq: {{{building|show}}} | skip | <!--skip--> | !rowspan=2 class="ats-table-deposit-building"{{!}} Building }}
! Charges
!rowspan=2 class="ats-table-deposit-charges"{{!}} Charges
! Primary
!rowspan=2 class="ats-table-deposit-primary"{{!}} Primary
! Bonus {{#ifexpr:{{{maxbonuses|0}}}>1 | &#35;1 !! Bonus &#35;2 {{#ifexpr: {{{maxbonuses|0}}} > 2 | !! Bonus &#35;3 {{#ifexpr: {{{maxbonuses|0}}} > 3 | !! Bonus &#35;4 |}} |}} |}} }}</includeonly><noinclude>
!colspan={{{maxbonuses|1}}} class="ats-table-deposit-spanning"{{!}} Bonus
 
{{#ifeq: {{{skip_biomes|show}}} | skip | <!--skip--> | !colspan=10 class="ats-table-deposit-spanning"{{!}} In Biomes }}
<hr>
{{!}}-
{{Deposit/view}}
!class="ats-table-deposit-bonus"{{!}} &#35;1 {{#ifexpr: {{{maxbonuses|0}}} > 1 | !!class="ats-table-deposit-bonus"{{!}} &#35;2 |}} {{#ifexpr: {{{maxbonuses|0}}} > 2 | !!class="ats-table-deposit-bonus"{{!}} &#35;3 |}} {{#ifexpr: {{{maxbonuses|0}}} > 3 | !!class="ats-table-deposit-bonus"{{!}} &#35;4 |}}
{{Deposit/view/end}}
  {{#ifeq: {{{skip_biomes|show}}} | skip
<hr>
    |<!--then skip biomes-->
{{Deposit/view|caption=Test caption|description=A dense shrub, full of many useful plant species. Requires a gathering camp.|numdeposits=3|maxbonuses=3}}
    |<!--else show biome column headers-->
{{Deposit/view/row|maxbonuses=3|bonus1={{rl|Clay|size=medium|display=notext}}|bonus2={{rl|Stone|size=medium|display=notext}}|bonus3={{rl|Berries|size=medium|display=notext}}}}
!class="ats-table-deposit-biome"{{!}} [[ {{{biome1|File:Question_mark.png}}} {{!}} {{ImgM}} ]]
{{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}}}}
!class="ats-table-deposit-biome"{{!}} [[ {{{biome2|File:Question_mark.png}}} {{!}} {{ImgM}} ]]
{{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}}}}
!class="ats-table-deposit-biome"{{!}} [[ {{{biome3|File:Question_mark.png}}} {{!}} {{ImgM}} ]]
{{Deposit/view/end}}
!class="ats-table-deposit-biome"{{!}} [[ {{{biome4|File:Question_mark.png}}} {{!}} {{ImgM}} ]]
<hr>
!class="ats-table-deposit-biome"{{!}} [[ {{{biome5|File:Question_mark.png}}} {{!}} {{ImgM}} ]]
{{Deposit/view|caption=Test caption|numdeposits=1|maxbonuses=1}}
!class="ats-table-deposit-biome"{{!}} [[ {{{biome6|File:Question_mark.png}}} {{!}} {{ImgM}} ]]
{{Deposit/view/end}}
!class="ats-table-deposit-biome"{{!}} [[ {{{biome7|File:Question_mark.png}}} {{!}} {{ImgM}} ]]
<hr>
!class="ats-table-deposit-biome"{{!}} [[ {{{biome8|File:Question_mark.png}}} {{!}} {{ImgM}} ]]
{{Deposit/view|caption=Test caption|numdeposits=1|maxbonuses=2}}
!class="ats-table-deposit-biome"{{!}} [[ {{{biome9|File:Question_mark.png}}} {{!}} {{ImgM}} ]]
{{Deposit/view/end}}
!class="ats-table-deposit-biome"{{!}} [[ {{{biome10|File:Question_mark.png}}} {{!}} {{ImgM}} ]]
<hr>
  }}
{{Deposit/view|caption=Test caption|numdeposits=1|maxbonuses=3}}
}}</includeonly><noinclude>
{{Deposit/view/end}}
<hr>
{{Deposit/view|caption=Test caption|numdeposits=1|maxbonuses=4}}
{{Deposit/view/end}}
<hr>
{{Deposit/view|caption=Test caption|numdeposits=1|maxbonuses=5}}
{{Deposit/view/end}}
<hr>


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


[[Category:Reserved templates]]
[[Category:Reserved templates]]
</noinclude>
</noinclude>

Latest revision as of 22:44, 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.