Difference between revisions of "Template:TableEntry AlloyRecipe"

From TFC:TNG
Jump to navigation Jump to search
(Added Demo, Added Links to relevant metals.)
(It doesn’t make sense for the first row to have only a single column with a big rowspan; it makes more sense for the first row to have all the columns and then subsequent rows to skip the first one due to rowspan)
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<noinclude>
+
<includeonly>
{{AlloyTableEntry|4|Bismuth Bronze|ingot|Zinc|ingot|20%|30%| Copper|ingot|50%|65%| Bismuth|ingot|10%|20%}}
+
<tr><td rowspan="{{{1}}}" style="text-align:center">{{ItemIcon|Molten {{{2|}}}|{{{3|}}}}} [[{{{2}}}]]</td>
 
+
<td style="text-align:center">{{ItemIcon|Molten {{{4|}}}|{{{5|}}}}} [[{{{4}}}]]</td> <td>{{{6}}}</td> <td>{{{7}}}</td></tr>
</noinclude>
 
<includeonly><td rowspan="{{{1}}}" style="text-align:center">{{ItemIcon|{{{2|}}}|{{{3|}}}}} [[{{{2}}}]]</td>
 
<tr><td style="text-align:center">{{ItemIcon|Molten {{{4|}}}|{{{5|}}}}} [[{{{4}}}]]</td> <td>{{{6}}}</td> <td>{{{7}}}</td></tr>
 
 
<tr><td style="text-align:center">{{ItemIcon|Molten {{{8|}}}|{{{9|}}}}} [[{{{8}}}]]</td> <td>{{{10}}}</td> <td>{{{11}}}</td></tr>{{
 
<tr><td style="text-align:center">{{ItemIcon|Molten {{{8|}}}|{{{9|}}}}} [[{{{8}}}]]</td> <td>{{{10}}}</td> <td>{{{11}}}</td></tr>{{
 
#if: {{{12|}}}|<tr><td style="text-align:center">{{ItemIcon|Molten{{{12|}}}|{{{13|}}}}} [[{{{12}}}]]</td> <td>{{{14}}}</td> <td>{{{15}}}</td></tr>}}{{
 
#if: {{{12|}}}|<tr><td style="text-align:center">{{ItemIcon|Molten{{{12|}}}|{{{13|}}}}} [[{{{12}}}]]</td> <td>{{{14}}}</td> <td>{{{15}}}</td></tr>}}{{
Line 13: Line 10:
 
#if: {{{32|}}}|<tr><td style="text-align:center">{{ItemIcon|Molten{{{32|}}}|{{{33|}}}}} [[{{{32}}}]]</td> <td>{{{34}}}</td> <td>{{{35}}}</td></tr>}}{{
 
#if: {{{32|}}}|<tr><td style="text-align:center">{{ItemIcon|Molten{{{32|}}}|{{{33|}}}}} [[{{{32}}}]]</td> <td>{{{34}}}</td> <td>{{{35}}}</td></tr>}}{{
 
#if: {{{36|}}}|<tr><td style="text-align:center">{{ItemIcon|Molten{{{36|}}}|{{{37|}}}}} [[{{{36}}}]]</td> <td>{{{38}}}</td> <td>{{{39}}}</td></tr>}}{{
 
#if: {{{36|}}}|<tr><td style="text-align:center">{{ItemIcon|Molten{{{36|}}}|{{{37|}}}}} [[{{{36}}}]]</td> <td>{{{38}}}</td> <td>{{{39}}}</td></tr>}}{{
#if: {{{40|}}}|<tr><td style="text-align:center">{{ItemIcon|Molten{{{40|}}}|{{{41|}}}}} [[{{{40}}}]]</td> <td>{{{42}}}</td> <td>{{{43}}}</td></tr>}}</includeonly>
+
#if: {{{40|}}}|<tr><td style="text-align:center">{{ItemIcon|Molten{{{40|}}}|{{{41|}}}}} [[{{{40}}}]]</td> <td>{{{42}}}</td> <td>{{{43}}}</td></tr>}}
 +
</includeonly>
 +
<noinclude>
 +
 
 +
{{TableEntry AlloyRecipe|4|Bismuth Bronze|ingot|Zinc|ingot|20%|30%| Copper|ingot|50%|65%| Bismuth|ingot|10%|20%}}
 +
 
 +
<templatedata>
 +
{
 +
"params": {
 +
"1": {
 +
"label": "Row Span",
 +
"description": "How high the row should be.",
 +
"type": "number",
 +
"default": "1",
 +
"required": true
 +
},
 +
"2": {
 +
"label": "Alloy picture",
 +
"description": "Name of the alloy that will be made.",
 +
"example": "Bismuth Bronze",
 +
"type": "string",
 +
"required": true
 +
},
 +
"3": {
 +
"label": "Image link",
 +
"description": "Link for the first image",
 +
"type": "wiki-page-name"
 +
},
 +
"4": {
 +
"label": "Metal 1",
 +
"description": "First metal of this alloy.",
 +
"example": "Zinc",
 +
"type": "string",
 +
"required": true
 +
},
 +
"5": {
 +
"label": "Metal 1 Link",
 +
"description": "Link for metal 1 image.",
 +
"example": "ingot",
 +
"type": "string",
 +
"required": true
 +
},
 +
"6": {
 +
"label": "Lowest requirement",
 +
"description": "Lowest requirement of this metal for this alloy.",
 +
"example": "20%",
 +
"type": "string",
 +
"required": true
 +
},
 +
"7": {
 +
"label": "Maximum requirement",
 +
"description": "Maximum requirement of this metal for this alloy.",
 +
"example": "30%",
 +
"type": "string",
 +
"required": true
 +
},
 +
"8": {
 +
"label": "Metal 2",
 +
"description": "Second metal of this alloy",
 +
"example": "Copper",
 +
"type": "string",
 +
"required": true
 +
},
 +
"9": {
 +
"label": "Metal 2 Link",
 +
"description": "Link for metal 2 image.",
 +
"type": "string",
 +
"required": true
 +
},
 +
"10": {
 +
"label": "Lowest requirement",
 +
"description": "Lowest requirement of this metal for this alloy.",
 +
"example": "50%",
 +
"type": "string",
 +
"required": true
 +
},
 +
"11": {
 +
"label": "Maximum requirement",
 +
"description": "Maximum requirement of this metal for this alloy.",
 +
"example": "65%",
 +
"type": "string",
 +
"required": true
 +
},
 +
"12": {
 +
"label": "Metal 3",
 +
"description": "Third metal of this alloy.",
 +
"type": "string"
 +
},
 +
"13": {
 +
"label": "Metal 3 link",
 +
"description": "Link for metal 3 image.",
 +
"type": "string"
 +
},
 +
"14": {
 +
"label": "Lowest requirement",
 +
"description": "Lowest requirement of this metal for this alloy.",
 +
"type": "string"
 +
},
 +
"15": {
 +
"label": "Maximum requirement",
 +
"description": "Maximum requirement of this metal for this alloy.",
 +
"type": "string"
 +
},
 +
"16": {
 +
"label": "Metal 4",
 +
"description": "Forth metal of this alloy.",
 +
"type": "string"
 +
},
 +
"17": {
 +
"label": "Metal 4 Link",
 +
"description": "Link for metal 4 image.",
 +
"type": "string"
 +
},
 +
"18": {
 +
"label": "Lowest requirement",
 +
"description": "Lowest requirement of this metal for this alloy.",
 +
"type": "string"
 +
},
 +
"19": {
 +
"label": "Maximum requirement",
 +
"description": "Maximum requirement of this metal for this alloy.",
 +
"type": "string"
 +
},
 +
"20": {
 +
"label": "Metal 5",
 +
"description": "Fifth metal of this alloy.",
 +
"type": "string"
 +
},
 +
"21": {
 +
"label": "Metal 5 Link",
 +
"description": "Link for metal 5 image.",
 +
"type": "string"
 +
},
 +
"22": {
 +
"label": "Lowest requirement",
 +
"description": "Lowest requirement of this metal for this alloy.",
 +
"type": "string"
 +
},
 +
"23": {
 +
"label": "Maximum requirement",
 +
"description": "Maximum requirement of this metal for this alloy.",
 +
"type": "string"
 +
},
 +
"24": {
 +
"label": "Metal 6",
 +
"description": "Sixth metal of this alloy.",
 +
"type": "string"
 +
},
 +
"25": {
 +
"label": "Metal 6 Link",
 +
"description": "Link for metal 6 image.",
 +
"type": "string"
 +
},
 +
"26": {
 +
"label": "Lowest requirement",
 +
"description": "Lowest requirement of this metal for this alloy.",
 +
"type": "string"
 +
},
 +
"27": {
 +
"label": "Maximum requirement",
 +
"description": "Maximum requirement of this metal for this alloy.",
 +
"type": "string"
 +
},
 +
"28": {
 +
"label": "Metal 7",
 +
"description": "Seventh metal of this alloy.",
 +
"type": "string"
 +
},
 +
"29": {
 +
"label": "Metal 7 Link",
 +
"description": "Link for metal 7 image.",
 +
"type": "string"
 +
},
 +
"30": {
 +
"label": "Lowest requirement",
 +
"description": "Lowest requirement of this metal for this alloy.",
 +
"type": "string"
 +
},
 +
"31": {
 +
"label": "Maximum requirement",
 +
"description": "Maximum requirement of this metal for this alloy.",
 +
"type": "string"
 +
},
 +
"32": {
 +
"label": "Metal 8",
 +
"description": "Eighth metal of this alloy.",
 +
"type": "string"
 +
},
 +
"33": {
 +
"label": "Metal 8 Link",
 +
"description": "Link for metal 8 image.",
 +
"type": "string"
 +
},
 +
"34": {
 +
"label": "Lowest requirement",
 +
"description": "Lowest requirement of this metal for this alloy.",
 +
"type": "string"
 +
},
 +
"35": {
 +
"label": "Maximum requirement",
 +
"description": "Maximum requirement of this metal for this alloy.",
 +
"type": "string"
 +
},
 +
"36": {
 +
"label": "Metal 9",
 +
"description": "Ninth metal of this alloy.",
 +
"type": "string"
 +
},
 +
"37": {
 +
"label": "Metal 9 Link",
 +
"description": "Link for metal 9 image.",
 +
"type": "string"
 +
},
 +
"38": {
 +
"label": "Lowest requirement",
 +
"description": "Lowest requirement of this metal for this alloy.",
 +
"type": "string"
 +
},
 +
"39": {
 +
"label": "Maximum requirement",
 +
"description": "Maximum requirement of this metal for this alloy.",
 +
"type": "string"
 +
},
 +
"40": {
 +
"label": "Metal 10",
 +
"description": "Tenth metal of this alloy.",
 +
"type": "string"
 +
},
 +
"41": {
 +
"label": "Metal 10 Link",
 +
"description": "Link for metal 10 image.",
 +
"type": "string"
 +
},
 +
"42": {
 +
"label": "Lowest requirement",
 +
"description": "Lowest requirement of this metal for this alloy.",
 +
"type": "string"
 +
},
 +
"43": {
 +
"label": "Maximum requirement",
 +
"description": "Maximum requirement of this metal for this alloy.",
 +
"type": "string"
 +
}
 +
},
 +
"description": "Alloy Table entry template for up to 10 required metals.",
 +
"format": "inline"
 +
}
 +
</templatedata>
 +
[[Category:{{PAGENAME}}]]
 +
</noinclude>

Latest revision as of 05:18, 1 September 2020



Molten Bismuth Bronze.png Bismuth Bronze Molten Zinc.png Zinc 20% 30% Molten Copper.png Copper 50% 65%Molten Bismuth.png Bismuth 10% 20%


Alloy Table entry template for up to 10 required metals.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Row Span1

How high the row should be.

Default
1
Numberrequired
Alloy picture2

Name of the alloy that will be made.

Example
Bismuth Bronze
Stringrequired
Image link3

Link for the first image

Pageoptional
Metal 14

First metal of this alloy.

Example
Zinc
Stringrequired
Metal 1 Link5

Link for metal 1 image.

Example
ingot
Stringrequired
Lowest requirement6

Lowest requirement of this metal for this alloy.

Example
20%
Stringrequired
Maximum requirement7

Maximum requirement of this metal for this alloy.

Example
30%
Stringrequired
Metal 28

Second metal of this alloy

Example
Copper
Stringrequired
Metal 2 Link9

Link for metal 2 image.

Stringrequired
Lowest requirement10

Lowest requirement of this metal for this alloy.

Example
50%
Stringrequired
Maximum requirement11

Maximum requirement of this metal for this alloy.

Example
65%
Stringrequired
Metal 312

Third metal of this alloy.

Stringoptional
Metal 3 link13

Link for metal 3 image.

Stringoptional
Lowest requirement14

Lowest requirement of this metal for this alloy.

Stringoptional
Maximum requirement15

Maximum requirement of this metal for this alloy.

Stringoptional
Metal 416

Forth metal of this alloy.

Stringoptional
Metal 4 Link17

Link for metal 4 image.

Stringoptional
Lowest requirement18

Lowest requirement of this metal for this alloy.

Stringoptional
Maximum requirement19

Maximum requirement of this metal for this alloy.

Stringoptional
Metal 520

Fifth metal of this alloy.

Stringoptional
Metal 5 Link21

Link for metal 5 image.

Stringoptional
Lowest requirement22

Lowest requirement of this metal for this alloy.

Stringoptional
Maximum requirement23

Maximum requirement of this metal for this alloy.

Stringoptional
Metal 624

Sixth metal of this alloy.

Stringoptional
Metal 6 Link25

Link for metal 6 image.

Stringoptional
Lowest requirement26

Lowest requirement of this metal for this alloy.

Stringoptional
Maximum requirement27

Maximum requirement of this metal for this alloy.

Stringoptional
Metal 728

Seventh metal of this alloy.

Stringoptional
Metal 7 Link29

Link for metal 7 image.

Stringoptional
Lowest requirement30

Lowest requirement of this metal for this alloy.

Stringoptional
Maximum requirement31

Maximum requirement of this metal for this alloy.

Stringoptional
Metal 832

Eighth metal of this alloy.

Stringoptional
Metal 8 Link33

Link for metal 8 image.

Stringoptional
Lowest requirement34

Lowest requirement of this metal for this alloy.

Stringoptional
Maximum requirement35

Maximum requirement of this metal for this alloy.

Stringoptional
Metal 936

Ninth metal of this alloy.

Stringoptional
Metal 9 Link37

Link for metal 9 image.

Stringoptional
Lowest requirement38

Lowest requirement of this metal for this alloy.

Stringoptional
Maximum requirement39

Maximum requirement of this metal for this alloy.

Stringoptional
Metal 1040

Tenth metal of this alloy.

Stringoptional
Metal 10 Link41

Link for metal 10 image.

Stringoptional
Lowest requirement42

Lowest requirement of this metal for this alloy.

Stringoptional
Maximum requirement43

Maximum requirement of this metal for this alloy.

Stringoptional