Template:Carousel View history

imported>Nemo369
No edit summary
imported>Nemo369
No edit summary
Line 3: Line 3:
<pre><nowiki>{{Carousel  
<pre><nowiki>{{Carousel  
|title=This is a title
|title=This is a title
|title-link=Title Link
|link=Title Link
|color=#0099FF
|color=#0099FF
|cards=list of card each should have {{card| title, subtitle, type, color and maybe an Image}}
|cards=list of card each should have {{card| title, subtitle, type, color and maybe an Image}}
Line 9: Line 9:
</noinclude><includeonly>{{#vardefine:color|{{{color|no-color}}} }}
</noinclude><includeonly>{{#vardefine:color|{{{color|no-color}}} }}
{{#if: {{{cards|}}}|<div class="carousel__wrapper">
{{#if: {{{cards|}}}|<div class="carousel__wrapper">
<h2 class="font-headline  mb-6 mt-8 uppercase font-medium text-gray-900 text-xs" style="letter-spacing: 1.5px;">{{{title|title-link}}}</h2>
<h2 class="font-headline  mb-6 mt-8 uppercase font-medium text-gray-900 text-xs" style="letter-spacing: 1.5px;">[[{{{link|{{{title|}}}}}}]]</h2>
<div class="slider-vue">
<div class="slider-vue">
<ol class="carousel flex gap-10 mx-0 mb-2- overflow-x-auto">
<ol class="carousel flex gap-10 mx-0 mb-2- overflow-x-auto">
{{{cards|}}}
{{{cards|}}}
</ol></div></div>|}}</includeonly>
</ol></div></div>|}}</includeonly>

Revision as of 09:24, 30 May 2022

Template structure

{{Carousel 
|title=This is a title
|link=Title Link
|color=#0099FF
|cards=list of card each should have {{card| title, subtitle, type, color and maybe an Image}}
}}