Template:Tile: Difference between revisions

Template page
No edit summary
m (added size parameter)
Line 1: Line 1:
<onlyinclude><div style="position: relative; display: inline-block; margin:1px; overflow: hidden; width: 105px; height: 105px"><div style="text-align: center;">[[File:{{{1|Unknown_File.png}}}|{{{2|???}}}|link={{{3|???}}}|105x105px]]</div><div style="position: absolute; bottom: 0; text-align: center; text-transform: uppercase; font-size: 12px; z-index: 4; width: 100%; color: white; background-color: rgba(0, 0, 0, 0.6)">[[{{{3|???}}}|{{{2|???}}}]]</div></div></onlyinclude>
<onlyinclude><div style="position: relative; display: inline-block; margin:1px; overflow: hidden; width: {{{4|105px}}}; height: {{{4|105px}}}"><div style="text-align: center;">[[File:{{{1|Unknown_File.png}}}|{{{2|???}}}|link={{{3|???}}}|{{{4|105px}}}]]</div><div style="position: absolute; bottom: 0; text-align: center; text-transform: uppercase; font-size: 12px; z-index: 4; width: 100%; color: white; background-color: rgba(0, 0, 0, 0.6)">[[{{{3|???}}}|{{{2|???}}}]]</div></div></onlyinclude>


<noinclude>
<noinclude>


*Image resizes to 105x105px.
*Image resizes to 105x105px by default if size parameter is missing.
* size format: [number]px - default value is 105px
<pre>
<pre>
   {{Tile|image_name|caption|link}}
   {{Tile|image_name|caption|link|size}}
</pre>
</pre>
</noinclude>
</noinclude>

Revision as of 09:40, 3 June 2024


  • Image resizes to 105x105px by default if size parameter is missing.
  • size format: [number]px - default value is 105px
  {{Tile|image_name|caption|link|size}}