Template:Card: Difference between revisions

From Halopedia, the Halo wiki

mNo edit summary
mNo edit summary
 
Line 18: Line 18:
     Image wrapper is needed to content overlay effect
     Image wrapper is needed to content overlay effect
     -->{{#if:{{{image|}}}|<div class="tg-card-image">}}<!--
     -->{{#if:{{{image|}}}|<div class="tg-card-image">}}<!--
         -->{{#if:{{{image|}}}|<div class="tg-card-background {{#if:{{{imagePosition|}}}|tg-card-background--{{{imagePosition}}}}}">[[File:{{{image}}}|{{{imageWidth|800}}}px|link=]]</div>}}<!--
         -->{{#if:{{{image|}}}|<div class="tg-card-background {{#if:{{{link|}}}|has-link}} {{#if:{{{imagePosition|}}}|tg-card-background--{{{imagePosition}}}}}">[[File:{{{image}}}|{{{imageWidth|800}}}px|link=]]</div>}}<!--
         -->{{#if:{{{label|}}}|<div class="tg-card-label">{{#if:{{{labelpage|}}}|[[{{{labelpage}}}|{{{label}}}]]|<span>{{{label}}}</span>}}</div>}}<!--
         -->{{#if:{{{label|}}}|<div class="tg-card-label">{{#if:{{{labelpage|}}}|[[{{{labelpage}}}|{{{label}}}]]|<span>{{{label}}}</span>}}</div>}}<!--
         --><div class="tg-card-content"><!--
         --><div class="tg-card-content"><!--

Latest revision as of 10:47, March 21, 2025

Card component of the main page.

Example

John-117
John from Halo
John-117
John from Halo
John-117
John from Halo