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 6: Line 6:
| <nowiki />
| <nowiki />
<div class="grid-card {{{card.classes|}}}">
<div class="grid-card {{{card.classes|}}}">
{{#if: {{{card{{#var: key }}.link|}}} |
{{#if: {{{link{{#var: key }}|}}} |
<a href="{{{card{{#var: value}}.link}}}" class="card__link"></a>
<a href="{{{link{{#var: key}}}}}" class="card__link"></a>
}}
}}
{{#if: {{{card{{#var: key }}.image|}}} |
{{#if: {{{image{{#var: key }}|}}} |
<div class="card__image"><img src="{{{card{{#var: key }}.image}}}" alt="{{{card1.alt|Card Image}}}" /></div>
<div class="card__image"><img src="{{{image{{#var: key }}}}}" alt="{{{card1.alt|Card Image}}}" /></div>
}}
}}
{{#if: {{{card{{#var: key }}.header|}}} |
{{#if: {{{header{{#var: key }}|}}} |
<div class="card__header">{{{card{{#var: key }}.header}}}</div>
<div class="card__header">{{{header{{#var: key }}}}}</div>
}}
}}
{{#if: {{{card{{#var: key }}.text|}}} |
{{#if: {{{text{{#var: key }}|}}} |
<div class="card__text">{{{card{{#var: key }}.text}}}</div>
<div class="card__text">{{{text{{#var: key }}}}}</div>
}}
}}
{{#if: {{{card{{#var: key }}.video|}}} |
{{#if: {{{video{{#var: key }}|}}} |
<div class="card__video">
<div class="card__video">
<video src="{{{card{{#var: key }}.video}}}" controls></video>
<video src="{{{video{{#var: key }}}}}" controls></video>
</div>
</div>
}}
}}

Revision as of 22:14, 15 December 2024