Template:CoverThumb: Difference between revisions

From 3DO World
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>
<includeonly>
<span class="coverThumb">
<span class="coverThumb" style="position:relative; display:inline-block;">
   <span class="coverSmall">[[File:{{{1}}}|x80px|link={{{2|}}}|alt={{{3|}}}]]</span>
   <span style="width:60px;height:80px;overflow:hidden;display:flex;align-items:center;justify-content:center;">
   <span class="coverPopup">[[File:{{{1}}}|220px|link={{{2|}}}|alt={{{3|}}}]]</span>
    [[File:{{{1}}}|x80px|link={{{2|}}}|alt={{{3|}}}]]
  </span>
 
  <!-- popup: hidden by default so it never affects table layout -->
   <span class="coverPopup" style="display:none; position:absolute; left:70px; top:-10px; z-index:99999;
        background:#fff; border:1px solid #aaa; padding:4px; box-shadow:0 2px 10px rgba(0,0,0,0.25);">
    [[File:{{{1}}}|220px|link={{{2|}}}|alt={{{3|}}}]]
  </span>
</span>
</span>
</includeonly>
</includeonly>
<noinclude>
Usage:
{{CoverThumb|Filename.png|OptionalLinkTarget|OptionalAltText}}
</noinclude>

Revision as of 09:22, 29 January 2026