Main Page: Difference between revisions View history

No edit summary
No edit summary
Line 1: Line 1:
<noinclude>
<noinclude>
==Template structure ==
This template is being used for creating portal pages in Wazeopedia main pages.
== Template structure ==
<nowiki>
 
</nowiki>


== Create or edit with form ==
you can use the [[Form:Portal|portal form]] to create or edit portal pages:
{{#forminput:form={{PAGENAME}}|button text=Create {{PAGENAME}}|placeholder={{PAGENAME}} name}}


{{portal-title|title=main page}}
<pre>
<nowiki>
{{portal-title
|title=Title text (if not set gets community name)
|title-icon=icon (if not set gets waze defautl icon)
|hide numbers=add any key to hide
}}</nowiki>
</pre>
</noinclude>
</noinclude>
<includeonly>
<includeonly>{{#ifeq:{{{no-title|}}}|Yes||{{Portal-title|
<div class="flex justify-between items-center mb-10 pb-6  border-b border-gray-200 not-prose noexcerpt">
|title={{{page title|{{SITENAME}} }}}
<div class="flex h3 items-center font-medium gap-x-3 font-headline">{{#if:{{{title-icon|}}}|<span style="min-width:25px">[[File:{{{title-icon|Waze happy.png}}}|waze icon|link=|class=rounded-full overflow-hidden w-6 h-6 object-cover border border-gray-300]]</span>}}<h1>{{{title|{{SITENAME}}}}}</h1><div data-toggle-dialog="waze-community-js" class="bg-gray-100 cursor-pointer grid h-8 hover:opacity-100 hover:opacity-75 items-center justify-center ml-1 opacity-0 rounded-full w-8"><i class="w-icon w-icon-chevron-down"></i></div>
|title-icon={{{title-icon|}}}
</div>{{#if: {{{hide numbers|}}}||
|hide numbers={{{hide numbers|}}}
<ul class="hidden 0flex gap-x-3 md:gap-x-10"><li class="flex items-center"><i class="w-icon w-icon-people text-4xl mr-2"></i><h4><div class="font-medium font-headline">{{NUMBEROFUSERS}}</div><div class="text-xs text-gray-800">Members</div></h4></li>
}} }}{{#if:{{{banner-text|}}}{{{banner-heading|}}}|
<li class="flex items-center"><i class="w-icon w-icon-book text-4xl mr-2"></i><h4><div class="font-medium font-headline">{{NUMBEROFPAGES}}</span><div class="text-xs text-gray-800">Articles</div></h4></li>
<div class="border border-grey-400 rounded-md mx-0 overflow-hidden {{{type|}}} {{#ifeq:{{mediawiki:mainpage}}|{{PAGENAME}}|mb-10|mb-20}} md:max-w-full max-w-fit">{{#if:{{{banner-image|}}}|[[file:{{{banner-image}}}|class=w-full|link=|alt=Banner image]]}}
</ul>|}}
{{#if:{{{banner-heading|}}}|<div class="flex items-center bg-blue-30 px-6">
<wz-button-link color="secondary" href="Special:FormEdit/Portal/{{FULLPAGENAME}}"><i class="w-icon w-icon-pencil"></i></wz-button-link>
<h2 class="text-lg h4 px-4 pt-2 pb-2 font-medium">{{{banner-heading|}}}</h2>
</div>}}
<div class="max-w-fit {{#if:{{{banner-heading|}}}||pt-5}} px-10 text-sm text-gray-600 pb-5">
{{{banner-text|}}}
</div>
</div>
 
</div>}}{{#ifeq:{{mediawiki:mainpage}}|{{PAGENAME}}|<div id="siteNotice" ></div>|}}{{#if:{{{row title query|}}}{{{page query|}}}|
 
{{Grid
 
|page={{{page query|}}}
<includeonly>
|row title={{{row title query|}}}
}}
|{{Carousel
|title={{{section 1|}}}
|link={{{section 1|}}}
|cards={{{cards 1|}}}
|template={{{template 1|}}}
}}{{Carousel
|title={{{section 2|}}}
|link={{{section 2|}}}
|cards={{{cards 2|}}}
|template={{{template 2|}}}
}}{{Carousel
|title={{{section 3|}}}
|link={{{section 3|}}}
|cards={{{cards 3|}}}
|template={{{template 3|}}}
}}{{Carousel
|title={{{section 4|}}}
|link={{{section 4|}}}
|cards={{{cards 4|}}}
|template={{{template 4|}}}
}}{{Carousel
|title={{{section 5|}}}
|link={{{section 5|}}}
|cards={{{cards 5|}}}
|template={{{template 5|}}}
}}{{Carousel
|title={{{section 6|}}}
|link={{{section 6|}}}
|cards={{{cards 6|}}}
|template={{{template 6|}}}
}}
{{Carousel
|title={{{section 7|}}}
|link={{{section 7|}}}
|cards={{{cards 7|}}}
|template={{{template 7|}}}
}}
{{Carousel
|title={{{section 8|}}}
|link={{{section 8|}}}
|cards={{{cards 8|}}}
|template={{{template 8|}}}
}}
}}
{{#ifeq:{{{no-title|}}}|Yes||{{#hidetitle:true}}}}[[category:portal]]{{#arraymap:{{{categories|}}}|;|xx|[[category:xx]]}}
<span style="display:none">{{#default_form:Portal}}</span>
__NOTOC__
{{#noprose:}}
</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
},
"hide numbers": {},
"template 1": {},
"template 2": {},
"template 3": {},
"template 4": {},
"template 5": {},
"template 6": {},
"section 7": {},
"cards 7": {},
"template 7": {},
"section 8": {},
"cards 8": {},
"template 8": {},
"categories": {},
"type": {},
"row title query": {},
"page query": {}
},
"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",
"hide numbers",
"template 1",
"template 2",
"template 3",
"template 4",
"template 5",
"template 6",
"section 7",
"cards 7",
"template 7",
"section 8",
"cards 8",
"template 8",
"categories",
"type",
"row title query",
"page query"
]
}
</templatedata>
</noinclude>

Revision as of 20:35, 9 March 2023

This template 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
hide numbershide numbers

no description

Unknownoptional
template 1template 1

no description

Unknownoptional
template 2template 2

no description

Unknownoptional
template 3template 3

no description

Unknownoptional
template 4template 4

no description

Unknownoptional
template 5template 5

no description

Unknownoptional
template 6template 6

no description

Unknownoptional
section 7section 7

no description

Unknownoptional
cards 7cards 7

no description

Unknownoptional
template 7template 7

no description

Unknownoptional
section 8section 8

no description

Unknownoptional
cards 8cards 8

no description

Unknownoptional
template 8template 8

no description

Unknownoptional
categoriescategories

no description

Unknownoptional
typetype

no description

Unknownoptional
row title queryrow title query

no description

Unknownoptional
page querypage query

no description

Unknownoptional