imported>Itssick |
|
(19 intermediate revisions by 2 users not shown) |
Line 1: |
Line 1: |
| <noinclude> | | <noinclude> |
| This tempate is being used for creating portal pages in Wazeopedia main pages.
| | {{#cargo_declare: |
| == Template structure ==
| | _table=carousel_title |
| <nowiki>
| | |title=String |
|
| | |link=String |
| </nowiki>
| | |cards=Wikitext (size=4000;) |
| == Create or edit with form ==
| | }} |
| you can use the [[Form:Portal|portal form]] to create or edit portal pages:
| | ==Template structure == |
| {{#forminput:form={{PAGENAME}}|button text=Create {{PAGENAME}}|placeholder={{PAGENAME}} name}}
| | <pre><nowiki>{{Carousel |
|
| | |title=This is a title |
| </noinclude>
| | |link=Title Link |
| <includeonly>{{#ifeq:{{{no-title|}}}|Yes||{{Portal-title|
| | |color=#0099FF |
| |title={{{page title|{{SITENAME}} }}}
| | |cards=list of card each should have {{card| title, subtitle, type, color and maybe an Image}} |
| |title-icon={{{title-icon|}}}
| | }}</nowiki></pre> |
| |hide numbers={{{hide numbers|}}}
| | </noinclude><includeonly>{{#vardefine:color|{{{color|no-color}}} }} |
| }} }}{{#if:{{{banner-text|}}}{{{banner-heading|}}}|
| | {{#if: {{{cards|}}}{{{template|}}}|<div class="carousel__wrapper not-prose"> |
| <div class="prose border border-grey-400 rounded-md mx-0 {{#ifeq:{{mediawiki:mainpage}}|{{PAGENAME}}|mb-10|mb-20}} md:max-w-full max-w-fit">
| | {{#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}} }} |
| {{#if:{{{banner-heading|}}}|<div class="flex items-center bg-blue-100 px-6 py-4">
| | }}</span></h2>|}} |
| {{#if:{{{banner-image|}}}|[[File:{{{banner-image}}}|link=]]|}}
| | <div class="slider-vue"> |
| <h2 class=" text-lg h4 px-6 font-medium">{{{banner-heading|}}}</h2>
| | <ol class="carousel flex gap-10 mx-0 mb-2- overflow-x-auto"> |
| </div>}}
| | {{#if:{{{template|}}}|{{ {{{template}}} }}| |
| <div class="px-10 text-sm text-gray-600 py-4 pb-8">
| | {{{cards|}}} }} |
| {{{banner-text|}}}
| | </ol></div></div>|}}{{#if:{{{title|}}}|{{#cargo_store: |
| </div>
| | _table=carousel_title |
| </div>}}{{#ifeq:{{mediawiki:mainpage}}|{{PAGENAME}}|<div id="siteNotice" ></div>|}}{{Carousel
| | |title={{#replace:{{PAGENAME:{{{title|}}} }}|&|&}} |
| |title={{#if:{{NAMESPACE:{{{section 1|}}}}}|{{#replace:{{{section 1|}}}:|{{NAMESPACE:{{{section 1|}}}|}} }}| {{{section 1|}}}}}
| | |link={{{link|}}} |
| |link={{{section 1|}}}
| | |cards={{{cards|}}} |
| |cards={{{cards 1|}}}
| | }}|biooooooo}}</includeonly> |
| }}{{Carousel
| |
| |title={{#if:{{NAMESPACE:{{{section 2|}}}}}|{{#replace:{{{section 2|}}}:|{{NAMESPACE:{{{section 2|}}}|}} }}| {{{section 1|}}}}}
| |
| |link={{{section 2|}}}
| |
| |cards={{{cards 2|}}}
| |
| }}{{Carousel
| |
| |title={{#if:{{NAMESPACE:{{{section 3|}}}}}|{{#replace:{{{section 3|}}}:|{{NAMESPACE:{{{section 3|}}}|}} }}| {{{section 1|}}}}}
| |
| |link={{{section 3|}}}
| |
| |cards={{{cards 3|}}}
| |
| }}{{Carousel
| |
| |title={{#if:{{NAMESPACE:{{{section 4|}}}}}|{{#replace:{{{section 4|}}}:|{{NAMESPACE:{{{section 4|}}}|}} }}| {{{section 1|}}}}}
| |
| |link={{{section 4|}}}
| |
| |cards={{{cards 4|}}}
| |
| }}{{Carousel
| |
| |title={{#if:{{NAMESPACE:{{{section 5|}}}}}|{{#replace:{{{section 5|}}}:|{{NAMESPACE:{{{section 5|}}}|}} }}| {{{section 1|}}}}}
| |
| |link={{{section 5|}}}
| |
| |cards={{{cards 5|}}}
| |
| }}{{Carousel
| |
| |title={{#if:{{NAMESPACE:{{{section 6|}}}}}|{{#replace:{{{section 6|}}}:|{{NAMESPACE:{{{section 6|}}}|}} }}| {{{section 1|}}}}}
| |
| |link={{{section 6|}}}
| |
| |cards={{{cards 6|}}}
| |
| }}
| |
| {{Carousel
| |
| |title={{#if:{{NAMESPACE:{{{section 7|}}}}}|{{#replace:{{{section 7|}}}:|{{NAMESPACE:{{{section 7|}}}|}} }}| {{{section 1|}}}}}
| |
| |link={{{section 7|}}}
| |
| |cards={{{cards 7|}}}
| |
| }}
| |
| {{#ifeq:{{{no-title|}}}|Yes||{{#hidetitle:true}}}}[[category:portal]]{{#arraymap:{{{categories|}}}|;|xx|[[category:xx]]}}
| |
| <span style="display:none">{{#default_form:Portal}}</span>
| |
| __NOTOC__
| |
| </includeonly>
| |
| <noinclude>
| |
| <templatedata>
| |
| {
| |
| "params": {
| |
| "no-title": {
| |
| "label": "Hide page title section",
| |
| "description": "type any charachter",
| |
| "type": "boolean"
| |
| },
| |
| "page title": {
| |
| "label": "Page title",
| |
| "type": "string",
| |
| "suggested": true
| |
| },
| |
| "banner-text": {
| |
| "label": "Text for the banner section ",
| |
| "type": "content",
| |
| "suggested": true
| |
| },
| |
| "banner-heading": {
| |
| "label": "Text for the header of the banner",
| |
| "type": "string",
| |
| "suggested": true
| |
| },
| |
| "section 1": {
| |
| "label": "First section title",
| |
| "type": "string",
| |
| "required": true,
| |
| "suggested": true
| |
| },
| |
| "cards 1": {
| |
| "label": "Card list for the first section ",
| |
| "example": "Add as many \"card\" templates as you want",
| |
| "type": "string",
| |
| "required": true,
| |
| "suggested": true
| |
| },
| |
| "section 2": {
| |
| "label": "2nd section title",
| |
| "type": "string",
| |
| "required": true,
| |
| "suggested": true
| |
| },
| |
| "cards 2": {
| |
| "label": "Card list for the 2nd section ",
| |
| "example": "Add as many \"card\" templates as you want",
| |
| "type": "string",
| |
| "required": true,
| |
| "suggested": true
| |
| },
| |
| "section 3": {
| |
| "label": "3rd section title",
| |
| "type": "string",
| |
| "required": true,
| |
| "suggested": true
| |
| },
| |
| "cards 3": {
| |
| "label": "Card list for the 3rd section ",
| |
| "example": "Add as many \"card\" templates as you want",
| |
| "type": "string",
| |
| "required": true,
| |
| "suggested": true
| |
| },
| |
| "section 4": {
| |
| "label": "4th section title",
| |
| "type": "string",
| |
| "required": true,
| |
| "suggested": true
| |
| },
| |
| "cards 4": {
| |
| "label": "Card list for the 4th section ",
| |
| "example": "Add as many \"card\" templates as you want",
| |
| "type": "string",
| |
| "required": true,
| |
| "suggested": true
| |
| },
| |
| "section 5": {
| |
| "label": "5th section title",
| |
| "type": "string",
| |
| "required": true,
| |
| "suggested": true
| |
| },
| |
| "cards 5": {
| |
| "label": "Card list for the 5th section ",
| |
| "example": "Add as many \"card\" templates as you want",
| |
| "type": "string",
| |
| "required": true,
| |
| "suggested": true
| |
| },
| |
| "section 6": {
| |
| "label": "6th section title",
| |
| "type": "string",
| |
| "required": true,
| |
| "suggested": true
| |
| },
| |
| "cards 6": {
| |
| "label": "Card list for the 6th section ",
| |
| "example": "Add as many \"card\" templates as you want",
| |
| "type": "string",
| |
| "required": true,
| |
| "suggested": true
| |
| },
| |
| "title-icon": {
| |
| "label": "Icon for the title section ",
| |
| "description": "Image name",
| |
| "type": "wiki-file-name",
| |
| "suggested": true
| |
| },
| |
| "banner-image": {
| |
| "label": "Image for the banner",
| |
| "type": "wiki-file-name",
| |
| "suggested": true
| |
| }
| |
| },
| |
| "description": "Tempate for creating portal pages in Wazeopedia main pages. \n",
| |
| "paramOrder": [
| |
| "title-icon",
| |
| "banner-text",
| |
| "page title",
| |
| "banner-heading",
| |
| "banner-image",
| |
| "no-title",
| |
| "section 1",
| |
| "cards 1",
| |
| "section 2",
| |
| "cards 2",
| |
| "section 3",
| |
| "cards 3",
| |
| "section 4",
| |
| "cards 4",
| |
| "section 5",
| |
| "cards 5",
| |
| "section 6",
| |
| "cards 6"
| |
| ]
| |
| }
| |
| </templatedata>
| |
| </noinclude>
| |