Template:Gallery: Difference between revisions
From WikiBound, your community-driven EarthBound/Mother wiki
Jump to navigationJump to search
m (Text replacement - "align="center" " to "align="center" {{html5}}") |
m (Is 10 too much) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{| style="border: 2px solid #{{darkcolor|{{{color|WB}}}}}; background: #{{darkcolor|{{{color|WB}}}}}; {{roundy|15px}} | {| style="border: 2px solid #{{darkcolor|{{{color|WB}}}}}; background: #{{darkcolor|{{{color|WB}}}}}; {{roundy|15px}};width:50%;" | ||
| | | colspan="8" 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> |
Latest revision as of 05:48, 15 June 2021
{{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 |