Template:Gallery: Difference between revisions
From WikiBound, your community-driven EarthBound/Mother wiki
Jump to navigationJump to search
(Optional colors now available) |
(Missed one) |
||
Line 1: | Line 1: | ||
{| style="border: 2px solid #{{darkcolor|{{{color|WB}}}}}; background: #{{darkcolor|WB}}; {{roundy|15px}}" width="50%" | {| style="border: 2px solid #{{darkcolor|{{{color|WB}}}}}; background: #{{darkcolor|{{{color|WB}}}}}; {{roundy|15px}}" width="50%" | ||
| align="center" colspan="4" style="background: #{{lightcolor|{{{color|WB}}}}}; width: 75%; {{roundy|15px}}" | '''{{{galleryname|Gallery}}}''' | | align="center" colspan="4" style="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 23:00, 26 January 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 |