WikiBound logo.png There are 169 stubs for enemies. Help out by expanding these pages!
Item pages are now going to be split. See WikiBound:Projects for more information.

Difference between revisions of "Template:Gallery"

From WikiBound, your community-driven EarthBound/Mother wiki
Jump to navigationJump to search
m (Text replacement - "align="center" " to "align="center" {{html5}}")
Line 1: Line 1:
{| style="border: 2px solid #{{darkcolor|{{{color|WB}}}}}; background: #{{darkcolor|{{{color|WB}}}}}; {{roundy|15px}}" width="50%"
{| style="border: 2px solid #{{darkcolor|{{{color|WB}}}}}; background: #{{darkcolor|{{{color|WB}}}}}; {{roundy|15px}};width:50%;"  
| align="center" {{html5}}colspan="4" style="background: #{{lightcolor|{{{color|WB}}}}}; width: 75%; {{roundy|15px}}" | '''{{{galleryname|Gallery}}}'''
| colspan="4" style="text-align:center;background: #{{lightcolor|{{{color|WB}}}}}; width: 75%; {{roundy|15px}}" | '''{{{galleryname|Gallery}}}'''
|-
|-
<noinclude>{{doc}} [[Category:Table templates]]</noinclude>
<noinclude>{{doc}} [[Category:Table templates]]</noinclude>

Revision as of 19:54, 16 May 2020

{{Gallery}}
{{Gallery/cell|1|2|3}}
{{Gallery/cell|1|2|3}}
{{Gallery/cell|1|2|3}}
{{Gallery/cell|1|2|3}}
|-
{{Gallery/cell|1|2|3}}
{{Gallery/cell|1|2|3}}
|}

To start the gallery, first put {{Gallery}} as a header. Then, for each row of information, use {{Gallery/cell}}. Seperate every four cells with a |-, or else the template may break. End the table with |}.

Template:Gallery/cell's parameters are as follows:

  • 1 - Replace "1" with the image filename, including the extension. Like 'example.png'
  • 2 - Replace "2" with a size for the image to be resized to. Default is 80px. However, if you're putting sprites in a gallery, it's recommended that you put in a tooltip (so instead of putting in a size, just put in a small caption like "Example's sprite in Mother"). This way, the sprite isn't large and blurry.
  • 3 - Replace "3" with a caption for the image.
Gallery