Template:Tile: Difference between revisions

Template page
mNo edit summary
(make Tile look better/reactive)
 
(9 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<onlyinclude><div style="position: relative; display: inline-block; margin:1px; overflow: hidden; width: 105px; height: 105px"><div>[[File:{{{1|TileDescendant.png}}}|{{{2|Descendants}}}|{{{3|link=Descendants}}}|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|Descendants}}}|{{{2|Descendants}}}]]</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>
Template for {{Mainpage Box }}.
 
*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>
   {{HomePageTile|imagename|caption|link}}
   {{Tile|image_name|caption|link|size}}
</pre>
</pre>
</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}}