Difference between revisions of "Template:HomepageTile"

From Tycoon Gaming
m
Line 1: Line 1:
 
<onlyinclude>
 
<onlyinclude>
<div class="HomeTile">
+
<div class="HomeTile" data-jobname="{{{text|Airline Pilot}}}">
 
<div class="HomeTileimage{{#if:{{{type|}}}|-overlap}}">[[File:{{{img1|aircraft.png|120px}}}|{{{text|Airline Pilot}}}|120px|link={{{link|Airline Pilot}}}]]</div>
 
<div class="HomeTileimage{{#if:{{{type|}}}|-overlap}}">[[File:{{{img1|aircraft.png|120px}}}|{{{text|Airline Pilot}}}|120px|link={{{link|Airline Pilot}}}]]</div>
 
<div class="HomeTileimage2">[[File:{{{img2|aircraft.png|173px}}}|{{{text|Airline Pilot}}}|173px|link={{{link|Airline Pilot}}}]]</div>
 
<div class="HomeTileimage2">[[File:{{{img2|aircraft.png|173px}}}|{{{text|Airline Pilot}}}|173px|link={{{link|Airline Pilot}}}]]</div>

Revision as of 13:27, 10 November 2023


Template for {{Mainpage Box Content}}. Switch between two different image when mouse-over.

{{HomepageTile
|img1 = imagename
|img2 = imagename
|text = text to display
|link = actual link
|type = overlap img1 with img2 (optional)
}}

{{HomepageTile|img1 = imagename|img2 = imagename|text = text to display|link = actual link}}