Template:Gallery: Difference between revisions

From WikiBound, your community-driven EarthBound/Mother wiki
Jump to navigationJump to search
No edit summary
(Color change - this has been bugging me for so long lol.)
Line 1: Line 1:
{| style="border: 2px solid #ffa265; background: #ffebc8; padding: 1px;" width="50%" class="roundy"
{| style="border: 2px solid #{{darkcolor|WB}}; background: #{{darkcolor|WB}}; padding: 1px;" width="50%" class="roundy"
| align="center" colspan="4" style="background: #ffa265; width: 75%; {{roundy|15px}}" | '''{{{galleryname|Gallery}}}'''
| align="center" colspan="4" style="background: #{{lightcolor|WB}}; width: 75%; {{roundy|15px}}" | '''{{{galleryname|Gallery}}}'''
|-
|-
<noinclude>{{doc}} [[Category:Table templates]]</noinclude>
<noinclude>{{doc}} [[Category:Table templates]]</noinclude>

Revision as of 18:11, 12 February 2011

{{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