Difference between revisions of "Template:HomepageTile"

From Tycoon Gaming
m
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<onlyinclude>
 
<onlyinclude>
<div class="HomeTile">
+
<div class="HomeTile job-item" data-jobname="{{{text|Airline Pilot}}} {{{tags|}}}" style="width: {{{size|173px}}} !important; height:{{{size|173px}}}; !important">
 
<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|{{{size|173px}}}}}}|{{{text|Airline Pilot}}}|{{{size|173px}}}|link={{{link|Airline Pilot}}}]]</div>
 
<div class="HomeTilelink">[[{{{link|Airline Pilot}}}|{{{text|Airline Pilot}}}]]</div>
 
<div class="HomeTilelink">[[{{{link|Airline Pilot}}}|{{{text|Airline Pilot}}}]]</div>
 
</div>
 
</div>
Line 16: Line 16:
 
|link = actual link
 
|link = actual link
 
|type = overlap img1 with img2 (optional)
 
|type = overlap img1 with img2 (optional)
 +
|size = 173px (optional)
 +
|tags = empty (optional)
 
}}
 
}}
  
{{HomepageTile|img1 = imagename|img2 = imagename|text = text to display|link = actual link}}
+
{{HomepageTile|img1 = imagename|img2 = imagename|text = text to display|link = actual link|size = 173px}}
 
</pre>
 
</pre>
 
[[Category:HomePage]]
 
[[Category:HomePage]]
 
</noinclude>
 
</noinclude>

Latest revision as of 20:34, 11 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)
|size = 173px (optional)
|tags = empty (optional)
}}

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