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

From Yugipedia
Jump to: navigation, search
(Put "fuses with" in columns ,depending on how many there are.)
(get rid of empty paragraph and unnecessary nested table surrounding the list)
Line 5: Line 5:
  
 
   <!-- The cards this card can fuse with to produce the aforementioned Fusion Monster -->
 
   <!-- The cards this card can fuse with to produce the aforementioned Fusion Monster -->
   <td>
+
   <td><!--
<!--
 
 
* Store in an array, so we can count the number of cards to determine how many columns to use.
 
* Store in an array, so we can count the number of cards to determine how many columns to use.
 
* Double #replace is necessary to replace underscores with spaces.
 
* Double #replace is necessary to replace underscores with spaces.
 
* Change separator from "," to "*" to avoid problems with cards with commas in their name
 
* Change separator from "," to "*" to avoid problems with cards with commas in their name
-->
+
-->{{ #arraydefine: $fuses_with_cards
{{ #arraydefine: $fuses_with_cards
 
 
| {{ #ask: [[Fuses with::{{ #replace: {{ #replace: {{{1}}} | _ | * * }} | * }}]]
 
| {{ #ask: [[Fuses with::{{ #replace: {{ #replace: {{{1}}} | _ | * * }} | * }}]]
 
   | ?Fusion Material.Reference name=
 
   | ?Fusion Material.Reference name=
 
   | class    = compact
 
   | class    = compact
   | format    = table
+
   | format    = plainsist
 
   | headers  = hide
 
   | headers  = hide
 
   | mainlabel = -
 
   | mainlabel = -
   | sep      = &#32;
+
   | sep      =
 +
  | valuesep  = &#32;
 
*
 
*
 
   }}
 
   }}
Line 38: Line 37:
  
 
-->{{ #if: {{ #var: $column_count }} | <div style="column-width: 13em; column-count: {{ #var: $column_count }};"> }}
 
-->{{ #if: {{ #var: $column_count }} | <div style="column-width: 13em; column-count: {{ #var: $column_count }};"> }}
{{ #arrayprint: $fuses_with_cards
+
* {{ #arrayprint: $fuses_with_cards
|  
+
| &#32;
 +
*
 +
| $fuses_with_card
 
| $fuses_with_card
 
| $fuses_with_card
|&#32;
 
* $fuses_with_card
 
 
}}
 
}}
 
{{ #if: {{ #var: $column_count }} | </div> }}
 
{{ #if: {{ #var: $column_count }} | </div> }}

Revision as of 23:23, 25 December 2018