Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:InfoGridCards: Difference between revisions

Template page
Content deleted Content added
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>
<includeonly>
<div class="info-grid">
<div class="info-grid">
{{#forargs: |card|
{{#forargs: card
| key
| value
| <nowiki />
<div class="grid-card {{{card.classes|}}}">
<div class="grid-card {{{card.classes|}}}">
{{#if: {{{card.link|}}} |
{{#if: {{{card{{#var: key }}.link|}}} |
<a href="{{{card.link}}}" class="card__link"></a>
<a href="{{{card{{#var: key }}.link}}}" class="card__link"></a>
}}
}}
{{#if: {{{card.image|}}} |
{{#if: {{{card{{#var: key }}.image|}}} |
<div class="card__image"><img src="{{{card.image}}}" alt="{{{card.alt|Card Image}}}" /></div>
<div class="card__image"><img src="{{{card{{#var: key }}.image}}}" alt="{{{card.alt|Card Image}}}" /></div>
}}
}}
{{#if: {{{card.header|}}} |
{{#if: {{{card{{#var: key }}.header|}}} |
<div class="card__header">{{{card.header}}}</div>
<div class="card__header">{{{card{{#var: key }}.header}}}</div>
}}
}}
{{#if: {{{card.text|}}} |
{{#if: {{{card{{#var: key }}.text|}}} |
<div class="card__text">{{{card.text}}}</div>
<div class="card__text">{{{card{{#var: key }}.text}}}</div>
}}
}}
{{#if: {{{card.video|}}} |
{{#if: {{{card{{#var: key }}.video|}}} |
<div class="card__video">
<div class="card__video">
<video src="{{{card.video}}}" controls></video>
<video src="{{{card{{#var: key }}.video}}}" controls></video>
</div>
</div>
}}
}}

Revision as of 21:50, 15 December 2024