Difference between revisions of "Template:DM Fusion Material2/row"
(automatically determine the number of columns necessary, based on the number of items in the cell) |
m (correct parameter name) |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly><!-- | <includeonly><!-- | ||
+ | |||
+ | -->{{ #vardefine: $fusion_type | {{ #if: {{{type|}}} | {{{type}}} | Fusion Summon }} }}<!-- | ||
-->{{ #arraydefine: $material_1 | {{{material_1|}}} | * }}{{ #arrayunique: $material_1 }}<!-- | -->{{ #arraydefine: $material_1 | {{{material_1|}}} | * }}{{ #arrayunique: $material_1 }}<!-- | ||
-->{{ #arraydefine: $material_2 | {{{material_2|}}} | * }}{{ #arrayunique: $material_2 }}<!-- | -->{{ #arraydefine: $material_2 | {{{material_2|}}} | * }}{{ #arrayunique: $material_2 }}<!-- | ||
+ | -->{{ #arraydefine: $material_3 | {{{material_3|}}} | * }}{{ #arrayunique: $material_3 }}<!-- | ||
+ | |||
+ | -->{{ #subobject: {{ #var: $fusion_type }} Material {{{number|}}}.1 | ||
+ | | Subobject of = {{PAGENAME}} | ||
+ | | Fusion type = {{ #var: $fusion_type }} | ||
+ | | Fusion Material = {{ #invoke: String | replace | source = {{{material_1|}}} | pattern = ^* | plain = false }} |+sep=* | ||
+ | | Fuses with = {{PAGENAME}}#{{ #var: $fusion_type }} Material {{{number|}}}.2{{ #if: {{{material_3|}}} | ||
+ | |, {{PAGENAME}}#{{ #var: $fusion_type }} Material {{{number|}}}.3 | ||
+ | }}|+sep=, | ||
+ | }}<!-- | ||
− | -->{{ # | + | -->{{ #subobject: {{ #var: $fusion_type }} Material {{{number|}}}.2 |
− | + | | Subobject of = {{PAGENAME}} | |
− | + | | Fusion type = {{ #var: $fusion_type }} | |
− | + | | Fusion Material = {{ #invoke: String | replace | source = {{{material_2|}}} | pattern = ^* | plain = false }} |+sep=* | |
− | + | | Fuses with = {{PAGENAME}}#{{ #var: $fusion_type }} Material {{{number|}}}.1{{ #if: {{{material_3|}}} | |
− | }}<!-- | + | |, {{PAGENAME}}#{{ #var: $fusion_type }} Material {{{number|}}}.3 |
+ | }}|+sep=, | ||
+ | }}<!-- | ||
− | -->{{ #subobject: | + | -->{{ #if: {{{material_3|}}} |
+ | | {{ #subobject: {{ #var: $fusion_type }} Material {{{number|}}}.3 | ||
| Subobject of = {{PAGENAME}} | | Subobject of = {{PAGENAME}} | ||
− | | Fusion Material = {{ #invoke: String | replace | source = {{{ | + | | Fusion type = {{ #var: $fusion_type }} |
− | | Fuses with | + | | Fusion Material = {{ #invoke: String | replace | source = {{{material_3|}}} | pattern = ^* | plain = false }} |+sep=* |
+ | | Fuses with = {{PAGENAME}}#{{ #var: $fusion_type }} Material {{{number|}}}.1, {{PAGENAME}}#{{ #var: $fusion_type }} Material {{{number|}}}.2|+sep=, | ||
}} | }} | ||
}}<!-- | }}<!-- | ||
Line 61: | Line 77: | ||
{{ #if: {{ #var: $column_count }} | </div> }}<!-- | {{ #if: {{ #var: $column_count }} | </div> }}<!-- | ||
--></td> | --></td> | ||
+ | |||
+ | {{ #if: {{{material_3|}}} | ||
+ | | <td>{{ #arrayprint: $material_3 | ||
+ | | | ||
+ | | $card | ||
+ | |  | ||
+ | * {{ #ask: [[$card]] | ||
+ | |?Card number = Number | ||
+ | |?English name (linked) | ||
+ | | format = template | ||
+ | | template = DM1 card/card reference | ||
+ | | named args = true | ||
+ | }} | ||
+ | }} | ||
+ | </td> | ||
+ | }} | ||
</tr> | </tr> | ||
</includeonly> | </includeonly> |