Template:Portal View history

imported>Itssick
No edit summary
imported>Itssick
No edit summary
Line 1: Line 1:
<noinclude>
<noinclude>
This tempate is being used for creating portal pages in Wazeopedia main pages.  
    This tempate is being used for creating portal pages in Wazeopedia main pages.  
== Template structure ==
    == Template structure ==
<nowiki>
    <nowiki>
 
   
</nowiki>
    </nowiki>
== Create or edit with form ==
    == Create or edit with form ==
you can use the [[Form:Portal|portal form]] to create or edit portal pages:
    you can use the [[Form:Portal|portal form]] to create or edit portal pages:
{{#forminput:form={{PAGENAME}}|button text=Create {{PAGENAME}}|placeholder={{PAGENAME}} name}}
    {{#forminput:form={{PAGENAME}}|button text=Create {{PAGENAME}}|placeholder={{PAGENAME}} name}}
 
   
</noinclude>
    </noinclude>
<includeonly>{{#ifeq:{{{no-title|}}}|Yes||{{Portal-title|
    <includeonly>{{#ifeq:{{{no-title|}}}|Yes||{{Portal-title|
|title={{{page title|{{SITENAME}} }}}
    |title={{{page title|{{SITENAME}} }}}
|title-icon={{{title-icon|}}}
    |title-icon={{{title-icon|}}}
|hide numbers={{{hide numbers|}}}
    |hide numbers={{{hide numbers|}}}
}} }}{{#if:{{{banner-text|}}}{{{banner-heading|}}}|
    }} }}{{#if:{{{banner-text|}}}{{{banner-heading|}}}|
<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">
    <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:{{{banner-heading|}}}|<div class="flex items-center bg-blue-100 px-6 py-4">
    {{#if:{{{banner-heading|}}}|<div class="flex items-center bg-blue-100 px-6 py-4">
{{#if:{{{banner-image|}}}|[[File:{{{banner-image}}}|link=]]|}}
    {{#if:{{{banner-image|}}}|[[File:{{{banner-image}}}|link=]]|}}
<h2 class=" text-lg h4 px-6 font-medium">{{{banner-heading|}}}</h2>
    <h2 class=" text-lg h4 px-6 font-medium">{{{banner-heading|}}}</h2>
</div>}}
    </div>}}
<div class="px-10 text-sm text-gray-600 py-4 pb-8">
    <div class="px-10 text-sm text-gray-600 py-4 pb-8">
{{{banner-text|}}}
    {{{banner-text|}}}
</div>
    </div>
</div>}}{{#ifeq:{{mediawiki:mainpage}}|{{PAGENAME}}|<div id="siteNotice" ></div>|}}{{Carousel  
    </div>}}{{#ifeq:{{mediawiki:mainpage}}|{{PAGENAME}}|<div id="siteNotice" ></div>|}}{{Carousel  
|title={{PAGENAME:{{{section 1|}}}}}
    |title={{PAGENAMEE:{{{section 1|}}}}}
|link={{{section 1|}}}
    |link={{{section 1|}}}
|cards={{{cards 1|}}}  
    |cards={{{cards 1|}}}  
}}{{Carousel  
    }}{{Carousel  
|title={{PAGENAME:{{{section 2|}}}}}
    |title={{PAGENAMEE:{{{section 2|}}}}}
|link={{{section 2|}}}
    |link={{{section 2|}}}
|cards={{{cards 2|}}}  
    |cards={{{cards 2|}}}  
}}{{Carousel  
    }}{{Carousel  
|title={{PAGENAME:{{{section 3|}}}}}
    |title={{PAGENAMEE:{{{section 3|}}}}}
|link={{{section 3|}}}
    |link={{{section 3|}}}
|cards={{{cards 3|}}}  
    |cards={{{cards 3|}}}  
}}{{Carousel  
    }}{{Carousel  
|title={{PAGENAME:{{{section 4|}}}}}
    |title={{PAGENAMEE:{{{section 4|}}}}}
|link={{{section 4|}}}
    |link={{{section 4|}}}
|cards={{{cards 4|}}}  
    |cards={{{cards 4|}}}  
}}{{Carousel  
    }}{{Carousel  
|title={{PAGENAME:{{{section 5|}}}}}
    |title={{PAGENAMEE:{{{section 5|}}}}}
|link={{{section 5|}}}
    |link={{{section 5|}}}
|cards={{{cards 5|}}}  
    |cards={{{cards 5|}}}  
}}{{Carousel  
    }}{{Carousel  
|title={{PAGENAME:{{{section 6|}}}}}
    |title={{PAGENAMEE:{{{section 6|}}}}}
|link={{{section 6|}}}
    |link={{{section 6|}}}
|cards={{{cards 6|}}}  
    |cards={{{cards 6|}}}  
}}
    }}
{{Carousel  
    {{Carousel  
|title={{PAGENAME:{{{section 7|}}}}}
    |title={{PAGENAMEE:{{{section 7|}}}}}
|link={{{section 7|}}}
    |link={{{section 7|}}}
|cards={{{cards 7|}}}  
    |cards={{{cards 7|}}}  
}}
    }}
{{#ifeq:{{{no-title|}}}|Yes||{{#hidetitle:true}}}}[[category:portal]]{{#arraymap:{{{categories|}}}|;|xx|[[category:xx]]}}
    {{#ifeq:{{{no-title|}}}|Yes||{{#hidetitle:true}}}}[[category:portal]]{{#arraymap:{{{categories|}}}|;|xx|[[category:xx]]}}
<span style="display:none">{{#default_form:Portal}}</span>
    <span style="display:none">{{#default_form:Portal}}</span>
__NOTOC__
    __NOTOC__
</includeonly>
    </includeonly>
<noinclude>
    <noinclude>
<templatedata>
    <templatedata>
{
    {
"params": {
        "params": {
"no-title": {
            "no-title": {
"label": "Hide page title section",
                "label": "Hide page title section",
"description": "type any charachter",
                "description": "type any charachter",
"type": "boolean"
                "type": "boolean"
},
            },
"page title": {
            "page title": {
"label": "Page title",
                "label": "Page title",
"type": "string",
                "type": "string",
"suggested": true
                "suggested": true
},
            },
"banner-text": {
            "banner-text": {
"label": "Text for the banner section ",
                "label": "Text for the banner section ",
"type": "content",
                "type": "content",
"suggested": true
                "suggested": true
},
            },
"banner-heading": {
            "banner-heading": {
"label": "Text for the header of the banner",
                "label": "Text for the header of the banner",
"type": "string",
                "type": "string",
"suggested": true
                "suggested": true
},
            },
"section 1": {
            "section 1": {
"label": "First section title",
                "label": "First section title",
"type": "string",
                "type": "string",
"required": true,
                "required": true,
"suggested": true
                "suggested": true
},
            },
"cards 1": {
            "cards 1": {
"label": "Card list for the first section ",
                "label": "Card list for the first section ",
"example": "Add as many \"card\" templates as you want",
                "example": "Add as many \"card\" templates as you want",
"type": "string",
                "type": "string",
"required": true,
                "required": true,
"suggested": true
                "suggested": true
},
            },
"section 2": {
            "section 2": {
"label": "2nd section title",
                "label": "2nd section title",
"type": "string",
                "type": "string",
"required": true,
                "required": true,
"suggested": true
                "suggested": true
},
            },
"cards 2": {
            "cards 2": {
"label": "Card list for the 2nd section ",
                "label": "Card list for the 2nd section ",
"example": "Add as many \"card\" templates as you want",
                "example": "Add as many \"card\" templates as you want",
"type": "string",
                "type": "string",
"required": true,
                "required": true,
"suggested": true
                "suggested": true
},
            },
"section 3": {
            "section 3": {
"label": "3rd section title",
                "label": "3rd section title",
"type": "string",
                "type": "string",
"required": true,
                "required": true,
"suggested": true
                "suggested": true
},
            },
"cards 3": {
            "cards 3": {
"label": "Card list for the 3rd section ",
                "label": "Card list for the 3rd section ",
"example": "Add as many \"card\" templates as you want",
                "example": "Add as many \"card\" templates as you want",
"type": "string",
                "type": "string",
"required": true,
                "required": true,
"suggested": true
                "suggested": true
},
            },
"section 4": {
            "section 4": {
"label": "4th section title",
                "label": "4th section title",
"type": "string",
                "type": "string",
"required": true,
                "required": true,
"suggested": true
                "suggested": true
},
            },
"cards 4": {
            "cards 4": {
"label": "Card list for the 4th section ",
                "label": "Card list for the 4th section ",
"example": "Add as many \"card\" templates as you want",
                "example": "Add as many \"card\" templates as you want",
"type": "string",
                "type": "string",
"required": true,
                "required": true,
"suggested": true
                "suggested": true
},
            },
"section 5": {
            "section 5": {
"label": "5th section title",
                "label": "5th section title",
"type": "string",
                "type": "string",
"required": true,
                "required": true,
"suggested": true
                "suggested": true
},
            },
"cards 5": {
            "cards 5": {
"label": "Card list for the 5th section ",
                "label": "Card list for the 5th section ",
"example": "Add as many \"card\" templates as you want",
                "example": "Add as many \"card\" templates as you want",
"type": "string",
                "type": "string",
"required": true,
                "required": true,
"suggested": true
                "suggested": true
},
            },
"section 6": {
            "section 6": {
"label": "6th section title",
                "label": "6th section title",
"type": "string",
                "type": "string",
"required": true,
                "required": true,
"suggested": true
                "suggested": true
},
            },
"cards 6": {
            "cards 6": {
"label": "Card list for the 6th section ",
                "label": "Card list for the 6th section ",
"example": "Add as many \"card\" templates as you want",
                "example": "Add as many \"card\" templates as you want",
"type": "string",
                "type": "string",
"required": true,
                "required": true,
"suggested": true
                "suggested": true
},
            },
"title-icon": {
            "title-icon": {
"label": "Icon for the title section ",
                "label": "Icon for the title section ",
"description": "Image name",
                "description": "Image name",
"type": "wiki-file-name",
                "type": "wiki-file-name",
"suggested": true
                "suggested": true
},
            },
"banner-image": {
            "banner-image": {
"label": "Image for the banner",
                "label": "Image for the banner",
"type": "wiki-file-name",
                "type": "wiki-file-name",
"suggested": true
                "suggested": true
}
            }
},
        },
"description": "Tempate for creating portal pages in Wazeopedia main pages. \n",
        "description": "Tempate for creating portal pages in Wazeopedia main pages. \n",
"paramOrder": [
        "paramOrder": [
"title-icon",
            "title-icon",
"banner-text",
            "banner-text",
"page title",
            "page title",
"banner-heading",
            "banner-heading",
"banner-image",
            "banner-image",
"no-title",
            "no-title",
"section 1",
            "section 1",
"cards 1",
            "cards 1",
"section 2",
            "section 2",
"cards 2",
            "cards 2",
"section 3",
            "section 3",
"cards 3",
            "cards 3",
"section 4",
            "section 4",
"cards 4",
            "cards 4",
"section 5",
            "section 5",
"cards 5",
            "cards 5",
"section 6",
            "section 6",
"cards 6"
            "cards 6"
]
        ]
}
    }
</templatedata>
    </templatedata>
</noinclude>
    </noinclude>

Revision as of 13:52, 6 October 2022

   This tempate is being used for creating portal pages in Wazeopedia main pages. 
   == Template structure ==
   
    
    
   == Create or edit with form ==
   you can use the portal form to create or edit portal pages:



Tempate for creating portal pages in Wazeopedia main pages.

Template parameters

ParameterDescriptionTypeStatus
Icon for the title section title-icon

Image name

Filesuggested
Text for the banner section banner-text

no description

Contentsuggested
Page titlepage title

no description

Stringsuggested
Text for the header of the bannerbanner-heading

no description

Stringsuggested
Image for the bannerbanner-image

no description

Filesuggested
Hide page title sectionno-title

type any charachter

Booleanoptional
First section titlesection 1

no description

Stringrequired
Card list for the first section cards 1

no description

Example
Add as many "card" templates as you want
Stringrequired
2nd section titlesection 2

no description

Stringrequired
Card list for the 2nd section cards 2

no description

Example
Add as many "card" templates as you want
Stringrequired
3rd section titlesection 3

no description

Stringrequired
Card list for the 3rd section cards 3

no description

Example
Add as many "card" templates as you want
Stringrequired
4th section titlesection 4

no description

Stringrequired
Card list for the 4th section cards 4

no description

Example
Add as many "card" templates as you want
Stringrequired
5th section titlesection 5

no description

Stringrequired
Card list for the 5th section cards 5

no description

Example
Add as many "card" templates as you want
Stringrequired
6th section titlesection 6

no description

Stringrequired
Card list for the 6th section cards 6

no description

Example
Add as many "card" templates as you want
Stringrequired