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
Undo revision 5274 by Luke (talk)
Tag: Undo
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><div class="info-grid" style="grid-template-columns: repeat({{{max-columns|3}}}, 1fr);">{{#forargs: card
<includeonly>
| key
<div class="info-grid">
| value
{{#forargs: card
| <nowiki /><div class="grid-card {{{classes{{#var: key}}|}}}">
| key
| value
| <nowiki />
<div class="grid-card {{{card.classes|}}}">
{{#if: {{{link{{#var: key }}|}}} |
{{#if: {{{link{{#var: key }}|}}} |
<a href="{{{link{{#var: key}}}}}" class="card__link"></a>
<div class="card__link">{{{link{{#var: key}}}}}</div>
|}}{{#if: {{{image{{#var: key }}|}}} |
}}
{{#if: {{{image{{#var: key }}|}}} |
<div class="card__image">{{{image{{#var: key}}}}}</div>
<div class="card__image">{{{image{{#var: key}}}}}</div>
|}}{{#if: {{{header{{#var: key }}|}}} |
}}
{{#if: {{{header{{#var: key }}|}}} |
<div class="card__header">{{{header{{#var: key }}}}}</div>
<div class="card__header">{{{header{{#var: key }}}}}</div>
|}}{{#if: {{{text{{#var: key }}|}}} |
}}
{{#if: {{{text{{#var: key }}|}}} |
<div class="card__text">{{{text{{#var: key }}}}}</div>
<div class="card__text">{{{text{{#var: key }}}}}</div>
|}}{{#if: {{{video{{#var: key }}|}}} |
}}
{{#if: {{{video{{#var: key }}|}}} |
<div class="card__video">{{{video{{#var: key }}}}}</div>|}}
<div class="card__video">
<video src="{{{video{{#var: key }}}}}" controls></video>
</div>
}}
</div>
</div>
}}
}}

Latest revision as of 02:12, 16 December 2024