imported>Wottem m (1 revision imported) |
m (1 revision imported) |
||
(42 intermediate revisions by 6 users not shown) | |||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
This | This template 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: | ||
Line 10: | Line 11: | ||
</noinclude> | </noinclude> | ||
<includeonly>{{#ifeq:{{{no-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="border border-grey-400 rounded-md mx-0 mb-20 | <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:{{{prose|}}}|prose|not-prose}}">{{#if:{{{banner-image|}}}|[[file:{{{banner-image}}}|class=w-full|link=|alt=Banner image]]}} | ||
{{#if:{{{banner-heading|}}}|<div class="flex items-center bg-blue-30 px-6"> | |||
{{#if:{{{banner-image|}}}|[[ | <h2 class="text-lg h4 px-4 pt-2 pb-2 font-medium">{{{banner-heading|}}}</h2> | ||
<h2 class=" text-lg h4 px- | </div>}} | ||
</div> | <div class="max-w-fit {{#if:{{{banner-heading|}}}||pt-5}} px-10 text-sm text-gray-600 pb-5"> | ||
<div class="px-10 text-sm text-gray-600 | |||
{{{banner-text|}}} | {{{banner-text|}}} | ||
</div> | </div> | ||
</div>}}{{Carousel | </div>}}{{#ifeq:{{mediawiki:mainpage}}|{{PAGENAME}}|<div id="siteNotice" ></div>|}}{{#if:{{{row title query|}}}{{{page query|}}}| | ||
{{Grid | |||
|page={{{page query|}}} | |||
|row title={{{row title query|}}} | |||
}} | |||
|{{Carousel | |||
|title={{{section 1|}}} | |title={{{section 1|}}} | ||
|link={{{section 1|}}} | |||
|cards={{{cards 1|}}} | |cards={{{cards 1|}}} | ||
|template={{{template 1|}}} | |||
}}{{Carousel | }}{{Carousel | ||
|title={{{section 2|}}} | |title={{{section 2|}}} | ||
|link={{{section 2|}}} | |||
|cards={{{cards 2|}}} | |cards={{{cards 2|}}} | ||
|template={{{template 2|}}} | |||
}}{{Carousel | }}{{Carousel | ||
|title={{{section 3|}}} | |title={{{section 3|}}} | ||
|link={{{section 3|}}} | |||
|cards={{{cards 3|}}} | |cards={{{cards 3|}}} | ||
|template={{{template 3|}}} | |||
}}{{Carousel | }}{{Carousel | ||
|title={{{section 4|}}} | |title={{{section 4|}}} | ||
|cards={{{cards 4|}}} | |link={{{section 4|}}} | ||
|cards={{{cards 4|}}} | |||
|template={{{template 4|}}} | |||
}}{{Carousel | }}{{Carousel | ||
|title={{{section 5|}}} | |title={{{section 5|}}} | ||
|cards={{{cards 5|}}} | |link={{{section 5|}}} | ||
|cards={{{cards 5|}}} | |||
|template={{{template 5|}}} | |||
}}{{Carousel | }}{{Carousel | ||
|title={{{section 6|}}} | |title={{{section 6|}}} | ||
|cards={{{cards 6|}}} | |link={{{section 6|}}} | ||
|cards={{{cards 6|}}} | |||
|template={{{template 6|}}} | |||
}} | }} | ||
[[category:portal]] | {{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> | <span style="display:none">{{#default_form:Portal}}</span> | ||
__NOTOC__ | __NOTOC__ | ||
{{# | {{#noprose:}} | ||
</includeonly> | </includeonly> | ||
<noinclude> | <noinclude> | ||
Line 159: | Line 189: | ||
"type": "wiki-file-name", | "type": "wiki-file-name", | ||
"suggested": true | "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", | "description": "Tempate for creating portal pages in Wazeopedia main pages. \n", | ||
Line 180: | Line 227: | ||
"cards 5", | "cards 5", | ||
"section 6", | "section 6", | ||
"cards 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> | </templatedata> | ||
</noinclude> | </noinclude> |
Latest revision as of 14:08, 28 January 2024
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.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Icon for the title section | title-icon | Image name | File | suggested |
Text for the banner section | banner-text | no description | Content | suggested |
Page title | page title | no description | String | suggested |
Text for the header of the banner | banner-heading | no description | String | suggested |
Image for the banner | banner-image | no description | File | suggested |
Hide page title section | no-title | type any charachter | Boolean | optional |
First section title | section 1 | no description | String | required |
Card list for the first section | cards 1 | no description
| String | required |
2nd section title | section 2 | no description | String | required |
Card list for the 2nd section | cards 2 | no description
| String | required |
3rd section title | section 3 | no description | String | required |
Card list for the 3rd section | cards 3 | no description
| String | required |
4th section title | section 4 | no description | String | required |
Card list for the 4th section | cards 4 | no description
| String | required |
5th section title | section 5 | no description | String | required |
Card list for the 5th section | cards 5 | no description
| String | required |
6th section title | section 6 | no description | String | required |
Card list for the 6th section | cards 6 | no description
| String | required |
hide numbers | hide numbers | no description | Unknown | optional |
template 1 | template 1 | no description | Unknown | optional |
template 2 | template 2 | no description | Unknown | optional |
template 3 | template 3 | no description | Unknown | optional |
template 4 | template 4 | no description | Unknown | optional |
template 5 | template 5 | no description | Unknown | optional |
template 6 | template 6 | no description | Unknown | optional |
section 7 | section 7 | no description | Unknown | optional |
cards 7 | cards 7 | no description | Unknown | optional |
template 7 | template 7 | no description | Unknown | optional |
section 8 | section 8 | no description | Unknown | optional |
cards 8 | cards 8 | no description | Unknown | optional |
template 8 | template 8 | no description | Unknown | optional |
categories | categories | no description | Unknown | optional |
type | type | no description | Unknown | optional |
row title query | row title query | no description | Unknown | optional |
page query | page query | no description | Unknown | optional |