Difference between revisions of "Template:DM Fusion Material/row/sandbox"

From Yugipedia
Jump to: navigation, search
(Grouping these properties with the other ones to increase readability)
 
(4 intermediate revisions by the same user not shown)
Line 19: Line 19:
 
   | Fusion result  = {{ #var: $fusion-result }}
 
   | Fusion result  = {{ #var: $fusion-result }}
 
   | Description    = {{ #var: $fusion-description }}
 
   | Description    = {{ #var: $fusion-description }}
   }}
+
   | Columns        = {{{columns|}}}
}}<!--
+
  }}<!--
 +
 
 +
// Stores the Fusion Materials in the Fusion Material 1 and Fusion Material 2 properties of the subobject.
 +
-->{{DM Fusion Material/row/properties|1}}<!--
 +
-->{{DM Fusion Material/row/properties|2}}<!--
 +
-->}}<!--
  
 
--><includeonly>
 
--><includeonly>
Line 51: Line 56:
 
{{ #if: {{{columns|}}} | </div> }}<!--
 
{{ #if: {{{columns|}}} | </div> }}<!--
 
--></td>
 
--></td>
</tr><!--
+
</tr></includeonly>
-->{{ #arrayprint: $fusion-materials-1
 
|&#32;
 
| $fusion-materials-1
 
|<!--
 
 
 
  // Only add the subobject if the template instance has been set to store semantic properties.
 
  -->{{ #if: {{ #var: $fusion-store-properties }}
 
  | <!--
 
    // Only lines beginning with `*` are considered to be cards.
 
    -->{{ #if: {{ #ifeq: {{ #invoke: string | sub |s=$fusion-materials-1|i=1|j=2}} | * | true }}
 
    | <!--
 
      // Increase the counter, as the cards are cycled through.
 
      -->{{ #vardefine: $fusion-card-counter-1 | {{ #expr: {{ #var: $fusion-card-counter-1 }} + 1 }} }}<!--
 
 
 
      // SMW subobject containing the materials.
 
      -->{{ #subobject: Fusion-{{ #var: $fusion-counter }}
 
      | Fusion Material 1 = {{unlink|$fusion-materials-1}}
 
      }}
 
    }}
 
  }}
 
}}<!--
 
-->{{ #arrayprint: $fusion-materials-2
 
|&#32;
 
| $fusion-materials-2
 
|<!--
 
 
 
  // Only add the subobject if the template instance has been set to store semantic properties.
 
  -->{{ #if: {{ #var: $fusion-store-properties }}
 
  | <!--
 
    // Only lines beginning with `*` are considered to be cards.
 
    -->{{ #if: {{ #ifeq: {{ #invoke: string | sub |s=$fusion-materials-2|i=1|j=2}} | * | true }}
 
    | <!--
 
      // Increase the counter, as the cards are cycled through.
 
      -->{{ #vardefine: $fusion-card-counter-2 | {{ #expr: {{ #var: $fusion-card-counter-2 }} + 1 }} }}<!--
 
 
 
      // SMW subobject containing the materials.
 
      -->{{ #subobject: Fusion-{{ #var: $fusion-counter }}-contains-{{ #var: $fusion-card-counter-2 }}
 
      | Fusion Material 2 = {{unlink|$fusion-materials-2}}
 
      }}
 
    }}
 
  }}
 
}}<!--
 
--></includeonly>
 

Latest revision as of 14:11, 6 May 2024