Template:Tile: Difference between revisions
SimpleArrows (talk | contribs) mNo edit summary |
SimpleArrows (talk | contribs) mNo edit summary |
||
Line 63: | Line 63: | ||
To create a collection of centered tiles, similar to a gallery, you can wrap the tile templates in the <nowiki><center></nowiki> tag. | To create a collection of centered tiles, similar to a gallery, you can wrap the tile templates in the <nowiki><center></nowiki> tag. | ||
'''Usage:''' | '''Usage:''' | ||
<pre> | <pre><center> | ||
{{Tile|Min_ATV.png|Mining ATV||150|100}} | {{Tile|Min_ATV.png|Mining ATV||150|100}} | ||
{{Tile|Min_ATV.png|Mining ATV||150|100}} | {{Tile|Min_ATV.png|Mining ATV||150|100}} | ||
{{Tile|Min_ATV.png|Mining ATV||150|100}} | {{Tile|Min_ATV.png|Mining ATV||150|100}} | ||
|} | {{Tile|Min_ATV.png|Mining ATV||150|100}} | ||
</center> | |||
</pre> | </pre> | ||
'''Output:''' | '''Output:''' | ||
<center> | |||
{{Tile|Min_ATV.png|Mining ATV||150|100}} | |||
{{Tile|Min_ATV.png|Mining ATV||150|100}} | {{Tile|Min_ATV.png|Mining ATV||150|100}} | ||
{{Tile|Min_ATV.png|Mining ATV||150|100}} | {{Tile|Min_ATV.png|Mining ATV||150|100}} | ||
{{Tile|Min_ATV.png|Mining ATV||150|100}} | {{Tile|Min_ATV.png|Mining ATV||150|100}} | ||
</center> | |||
</noinclude> | </noinclude> |
Revision as of 16:21, 28 January 2024
Creates a tile with an image and caption that is resizable. Intended as a replacement for galleries with improved custom sizing and style.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Image | 1 | no description
| File | required |
Caption | 2 | Text or a link to accompany the image.
| String | suggested |
Link | 3 | The name of the page that the image should link to. The page you use should be the same as linked in the caption.
| Page name | optional |
Width | 4 | The width of the tile's image (in pixels).
| Number | optional |
Height | 5 | The height of the tile's image (in pixels).
| Number | optional |
{{Tile|IMAGE|CAPTION|LINK|WIDTH|HEIGHT}}
Usage:
{{Tile|Min_ATV.png|Mining ATV||250|150}}
Output:
Mining ATV |
Centered Tiles:
To create a collection of centered tiles, similar to a gallery, you can wrap the tile templates in the <center> tag.
Usage:
<center> {{Tile|Min_ATV.png|Mining ATV||150|100}} {{Tile|Min_ATV.png|Mining ATV||150|100}} {{Tile|Min_ATV.png|Mining ATV||150|100}} {{Tile|Min_ATV.png|Mining ATV||150|100}} </center>
Output:
Mining ATV |
Mining ATV |
Mining ATV |
Mining ATV |