Template:Carousel View history

imported>Openfox
No edit summary
No edit summary
 
(67 intermediate revisions by 9 users not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
{{#cargo_declare:
_table=carousel_title
|title=String
|link=String
|cards=Wikitext (size=4000;)
}}
==Template structure ==
==Template structure ==
<pre><nowiki>{{Carousel  
<pre><nowiki>{{Carousel  
|title=This is a title
|title=This is a title
|link=Title Link
|color=#0099FF
|color=#0099FF
|cards=list of cards separate with;
|cards=list of card each should have {{card| title, subtitle, type, color and maybe an Image}}
}}</nowiki></pre>
}}</nowiki></pre>
 
</noinclude><includeonly>{{#vardefine:color|{{{color|no-color}}} }}
</noinclude>
{{#if: {{{cards|}}}{{{template|}}}|<div class="carousel__wrapper not-prose">
 
{{#if:{{{title|{{{link|}}}}}}|<h2 class="font-headline  mb-6 uppercase font-medium text-gray-900 text-xs" style="letter-spacing: 1.5px;">{{#ifexist:{{{link|{{{title}}}}}}|{{#if: {{{link|}}}|[[{{{link}}}|{{PAGENAME:{{{title|{{{link}}} }}} }}]]|[[{{{title}}}|{{PAGENAME:{{{title}}} }}]]}}|{{{link|{{{title}}}}}} }}<span class="create-page hidden lowercase">{{#ifanon:|{{#formlink:form=Portal|link text=create this sub portal|query string=portal[type]=dynamic&portal[row title query]={{{link|{{{title}}}}}}&portal[no-title]=Yes&portal[categories]=Sub Portal|target={{{link|{{{title}}}}}}|reload|new window|returnto={{FULLPAGENAME}} }}
<div class="carousel__wrapper">
}}</span></h2>|}}
=={{{title|}}}==
<div class="slider-vue">
<div class="carousel">
<ol class="carousel flex gap-10 mx-0 mb-2- overflow-x-auto">
<ol>
{{#if:{{{template|}}}|{{ {{{template}}} }}|
<includeonly>
{{{cards|}}} }}
{{#arraymap:{{{ cards |}}}|;|x|<li>{{:x}}</li>|}}
</ol></div></div>|}}{{#if:{{{title|}}}|{{#cargo_store:
</includeonly>  
_table=carousel_title
</ol>
|title={{#replace:{{PAGENAME:{{{title|}}} }}|&#38;|&}}
</div>
|link={{{link|}}}
</div>
|cards={{{cards|}}}
}}|biooooooo}}</includeonly>

Latest revision as of 14:15, 28 January 2024

This template defines the table "carousel_title". View table.

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}}
}}