Template:Project row: Difference between revisions
From Everafter Falls Wiki
Created page with "<noinclude>{{#cargo_attach:table=Projects}}</noinclude><includeonly><!-- // Storing the inputs into the Cargo table --><!-- ifeq namespace check to prevent documentation examples being stored in CargoTable --> {{#ifeq: {{NAMESPACENUMBER}} | 0 | {{#cargo_store: _table=Projects |Name={{{name|}}} |Icon={{#if:{{{use_icon|}}}|1|0}} |Requirements={{{requirement|}}} |Workshop={{{workshop|{{PAGENAME}}}}} |Mat1={{{mat1|}}} |Amt1={{{amt1|}}} |Mat2={{{mat2|0}}} |Amt2={{{amt2|0}}} |..." |
mNo edit summary |
||
| (9 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<noinclude>{{#cargo_attach:table=Projects}}</noinclude><includeonly><!-- | <noinclude>{{#cargo_attach:table=Projects}}</noinclude><includeonly><!-- | ||
// Storing the inputs into the Cargo table | // Storing the inputs into the Cargo table | ||
--><!-- ifeq namespace check to prevent documentation examples being stored in CargoTable --> | --><!-- ifeq namespace check to prevent documentation examples being stored in CargoTable -->{{#ifeq: {{NAMESPACENUMBER}} | 0 | | ||
{{#ifeq: {{NAMESPACENUMBER}} | 0 | | |||
{{#cargo_store: | {{#cargo_store: | ||
_table=Projects | _table=Projects | ||
|Name={{{name|}}} | |Name={{{name|}}} | ||
|Icon={{#if:{{{use_icon|}}}|1|0}} | |Icon={{#if:{{{use_icon|}}}|1|0}} | ||
|Requirements={{{requirement|}}} | |Requirements={{{requirement|''None''}}} | ||
|Workshop={{{workshop|{{PAGENAME}}}}} | |Workshop={{{workshop|{{PAGENAME}}}}} | ||
|Uses={{{use|}}} | |||
|Mat1={{{mat1|}}} | |Mat1={{{mat1|}}} | ||
|Amt1={{{amt1|}}} | |Amt1={{{amt1|}}} | ||
| Line 18: | Line 18: | ||
|Amt4={{{amt4|0}}} | |Amt4={{{amt4|0}}} | ||
|Cost={{{cost|0}}} | |Cost={{{cost|0}}} | ||
|SortIndex={{{sort_index|}}} | |||
}} }} | }} }} | ||
|- | |- {{#if:{{{image|}}}|<nowiki /> | ||
|{{{name|}}}{{#if:{{{cost|}}}|<nowiki /> | {{!}}[[File:{{{image|}}}.png{{!}}60px{{!}}link=]]}} | ||
|{{#if:{{{use_icon|}}}|[[File:{{{name|}}} icon.png{{!}}link=]]}}{{{name|}}}{{#if:{{{use|}}}|<nowiki /> | |||
{{!}}{{{use|}}} }}{{#if:{{{cost|}}}|<nowiki /> | |||
{{!}}{{formatnum:{{{cost|}}}}}{{coin}}}} | {{!}}{{formatnum:{{{cost|}}}}}{{coin}}}} | ||
|{{i|{{{mat1}}}|{{{amt1|1}}}}}{{#if:{{{mat2|}}}|{{i|{{{mat2}}}|{{{amt2|1}}}}}}}{{#if:{{{mat3|}}}|{{i|{{{mat3}}}|{{{amt3|1}}}}}}}{{#if:{{{mat4|}}}|{{i|{{{mat4}}}|{{{amt4|1}}}}}}} | |{{i|{{{mat1}}}|{{{amt1|1}}}}}{{#if:{{{mat2|}}}|{{i|{{{mat2}}}|{{{amt2|1}}}}}}}{{#if:{{{mat3|}}}|{{i|{{{mat3}}}|{{{amt3|1}}}}}}}{{#if:{{{mat4|}}}|{{i|{{{mat4}}}|{{{amt4|1}}}}}}} | ||
</includeonly><noinclude>[[Category:Cargo templates]]</noinclude> | </includeonly><noinclude>[[Category:Cargo templates]]</noinclude> | ||
Latest revision as of 23:44, 30 July 2024
This template adds rows to the table "Projects", which is declared by the template Projects declare. View table.