Difference between revisions of "Template:Set gallery"

From Yugipedia
Jump to: navigation, search
(Added a control parameter to allow everything to go inside the same gallery.)
(Convert to <table>.)
Line 78: Line 78:
 
{{ #if: {{ #var: $CONTROL }}
 
{{ #if: {{ #var: $CONTROL }}
 
   |
 
   |
   | {{(}}{{!}} class="card-galleries"
+
   | <table class="card-galleries">
 
}}<!--
 
}}<!--
 
-->{{ #if: {{{header|}}}
 
-->{{ #if: {{{header|}}}
   | {{!}}-
+
   | <tr>
! {{{header}}}
+
      <th>{{{header}}}</th>
{{!}}-
+
    </tr>
   | {{!}}- }}
+
   }}
|
+
<tr>
 +
  <td>
 
{{ #tag:gallery|<!--
 
{{ #tag:gallery|<!--
 
-->{{ #arraydefine: @ROW | {{{1|}}} | /\n/ }}<!--
 
-->{{ #arraydefine: @ROW | {{{1|}}} | /\n/ }}<!--
Line 119: Line 120:
 
}}<!--Close @ROW -->
 
}}<!--Close @ROW -->
 
|widths=175px}}
 
|widths=175px}}
|-
+
  </td>
 +
</tr>
 
{{ #if: {{{next|}}}
 
{{ #if: {{{next|}}}
 
   |  
 
   |  
   | {{!}}{{)}}
+
   | </table>
 
}}<!--
 
}}<!--
 
-->{{ #vardefine: $CONTROL | 1 }}</includeonly>
 
-->{{ #vardefine: $CONTROL | 1 }}</includeonly>

Revision as of 09:21, 28 September 2016