Template:Tile: Difference between revisions

Template page
m (added size parameter)
(make Tile look better/reactive)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<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>
<onlyinclude><templatestyles src="Tile/styles.css"/><div style="width: {{{4|105px}}}; height: {{{4|105px}}}" class="tile-container"><div class="tile-img">[[File:{{{1|Unknown_File.png}}}|{{{2|???}}}|link={{{3|???}}}|{{{4|105px}}}]]</div><div class="tile-caption">[[{{{3|???}}}|{{{2|???}}}]]</div></div></onlyinclude>


<noinclude>
<noinclude>

Latest revision as of 07:36, 1 August 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}}