Template:Tile: Difference between revisions
SimpleArrows (talk | contribs) mNo edit summary |
SimpleArrows (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
<includeonly>{| class="tile" | <includeonly>{| class="tile" | ||
|style="width:{{{4|128}}}px; height:{{{5|128}}}px;"| | |style="width:{{{4|128}}}px; height:{{{5|128}}}px;"|{{#if: {{{3|}}} | [[Image:{{{1}}}|link={{{3}}}]]| [[Image:{{{1}}}]]}} | ||
|- | |- | ||
|{{#if: {{{2|}}} | {{{2}}} | ''' '''}} | |{{#if: {{{2|}}} | ||
| {{#if: {{{3|}}} | [[{{{3}}}|{{{2}}}]] | {{{2}}}}} | |||
| ''' ''' | |||
}} | |||
|}</includeonly> | |}</includeonly> | ||
<noinclude><templatedata> | <noinclude><templatedata> | ||
Line 15: | Line 18: | ||
"2": { | "2": { | ||
"label": "Caption", | "label": "Caption", | ||
"description": "Text | "description": "Text to accompany the image. Don't place any links inside this field.", | ||
"example": "Alec Mason", | "example": "Alec Mason", | ||
"type": "string", | "type": "string", | ||
Line 22: | Line 25: | ||
"3": { | "3": { | ||
"label": "Link", | "label": "Link", | ||
"description": "The name of the page that the image should link to | "description": "The name of the page that the image and caption should link to.", | ||
"example": "Red Faction: Guerrilla", | "example": "Red Faction: Guerrilla", | ||
"type": "wiki-page-name" | "type": "wiki-page-name" |
Revision as of 17:48, 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 to accompany the image. Don't place any links inside this field.
| String | suggested |
Link | 3 | The name of the page that the image and caption should link to.
| 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 |