Template:Deposit/view: Difference between revisions

From Against the Storm Official Wiki
m missed title styling for deposit panels
Moving "No deposits" out of the table so it doesn't draw the inner section at all.
Line 1: Line 1:
<includeonly><div class="ats-container-deposit">
<includeonly><div class="ats-container-deposit">
<p class="ats-container-deposit-title">{{{heading|Deposits}}}</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 ats-table-deposit"
{{{!}}class="sortable ats-table-deposit"
|-
{{!}}-
{{#ifeq: {{{numdeposits|0}}} | 0
  |<!--then no deposits-->
!class="unsortable"{{!}} No deposits.
  |<!--else show deposits-->
{{#ifexpr: {{{numdeposits|0}}} > 1 | !rowspan=2 class="ats-table-deposit-node"{{!}} Name |}}
{{#ifexpr: {{{numdeposits|0}}} > 1 | !rowspan=2 class="ats-table-deposit-node"{{!}} Name |}}
{{#ifeq: {{{building|show}}} | skip | <!--skip--> | !rowspan=2 class="ats-table-deposit-building"{{!}} Building }}
{{#ifeq: {{{building|show}}} | skip | <!--skip--> | !rowspan=2 class="ats-table-deposit-building"{{!}} Building }}

Revision as of 02:38, 16 March 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.