Template:Infobox building: Difference between revisions

From Everafter Falls Wiki

mNo edit summary
No edit summary
Line 60: Line 60:
     <header>Building costs</header>
     <header>Building costs</header>
     <data source="workshop"><label>Workshop</label><format>[[{{{workshop|}}}]]</format></data>
     <data source="workshop"><label>Workshop</label><format>[[{{{workshop|}}}]]</format></data>
    <data source="requirement"><label>Requirement</label></data>
     <data source="mat1"><label>Materials</label><format>{{i|{{{mat1}}}|{{{amt1|1}}}}}{{#if:{{{mat2|}}}|{{i|{{{mat2}}}|{{{amt2|1}}}}}}}{{#if:{{{mat3|}}}|{{i|{{{mat3}}}|{{{amt3|1}}}}}}}{{#if:{{{mat4|}}}|{{i|{{{mat4}}}|{{{amt4|1}}}}}}}</format></data>
     <data source="mat1"><label>Materials</label><format>{{i|{{{mat1}}}|{{{amt1|1}}}}}{{#if:{{{mat2|}}}|{{i|{{{mat2}}}|{{{amt2|1}}}}}}}{{#if:{{{mat3|}}}|{{i|{{{mat3}}}|{{{amt3|1}}}}}}}{{#if:{{{mat4|}}}|{{i|{{{mat4}}}|{{{amt4|1}}}}}}}</format></data>
     <data source="cost"><label>Cost</label><format>{{formatnum:{{{cost|}}}}}{{coin}}</format></data>
     <data source="cost"><label>Cost</label><format>{{formatnum:{{{cost|}}}}}{{coin}}</format></data>

Revision as of 16:25, 30 July 2024

This template adds rows to the table "Projects", which is declared by the template Projects declare. View table.

Template documentation
Note: portions of the template sample may not be visible without values provided.
View or edit this documentation. (About template documentation)
Editors can experiment in this template's sandbox and test case pages.