Difference between revisions of "Template:DM Fusion Material2/row"

From Yugipedia
Jump to: navigation, search
(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=,
 +
}}<!--
  
-->{{ #if: {{ #var: $apply_fm_properties }}
+
-->{{ #subobject: {{ #var: $fusion_type }} Material {{{number|}}}.2
| {{ #subobject: fusion material {{{number|}}}.1
+
| Subobject of    = {{PAGENAME}}
  | Subobject of    = {{PAGENAME}}
+
| Fusion type    = {{ #var: $fusion_type }}
  | Fusion Material = {{ #invoke: String | replace | source = {{{material_1|}}} | pattern = ^* | plain = false }} |+sep=*
+
| Fusion Material = {{ #invoke: String | replace | source = {{{material_2|}}} | pattern = ^* | plain = false }} |+sep=*
  | Fuses with      = {{PAGENAME}}#fusion material {{{number|}}}.2
+
| Fuses with      = {{PAGENAME}}#{{ #var: $fusion_type }} Material {{{number|}}}.1{{ #if: {{{material_3|}}}
   }}<!--
+
  |, {{PAGENAME}}#{{ #var: $fusion_type }} Material {{{number|}}}.3
 +
   }}|+sep=,
 +
}}<!--
  
-->{{ #subobject: fusion material {{{number|}}}.2
+
-->{{ #if: {{{material_3|}}}
 +
| {{ #subobject: {{ #var: $fusion_type }} Material {{{number|}}}.3
 
   | Subobject of    = {{PAGENAME}}
 
   | Subobject of    = {{PAGENAME}}
   | Fusion Material = {{ #invoke: String | replace | source = {{{material_2|}}} | pattern = ^* | plain = false }} |+sep=*
+
  | Fusion type    = {{ #var: $fusion_type }}
   | Fuses with = {{PAGENAME}}#fusion material {{{number|}}}.1
+
   | 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
 +
  |&#32;
 +
* {{ #ask: [[$card]]
 +
    |?Card number = Number
 +
    |?English name (linked)
 +
    | format      = template
 +
    | template    = DM1 card/card reference
 +
    | named args  = true
 +
    }}
 +
  }}
 +
</td>
 +
}}
 
</tr>
 
</tr>
 
</includeonly>
 
</includeonly>

Latest revision as of 21:46, 25 December 2018