|
|
Línea 1: |
Línea 1: |
| <!--
| |
| NOMBRE DE PÁGINA
| |
|
| |
| Plantilla:Portal
| |
| -->
| |
| <noinclude> | | <noinclude> |
| Esta plantilla se utiliza para crear páginas de portal en las páginas principales de la Wazeopedia.
| | ==Template structure == |
| == Estructura de la plantilla == | |
| <nowiki>
| |
|
| |
|
| </nowiki>
| |
| == Crear o editar con formulario ==
| |
| Puede utilizar el [[Formulario:Portal|formulario del portal]] para crear o editar páginas del portal:
| |
| {{#forminput:form={{PAGENAME}}|button text=Crear {{PAGENAME}}|placeholder=Nombre del {{PAGENAME}}}}
| |
|
| |
|
| | {{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>{{#ifeq:{{{no-title|}}}|Yes||{{Portal-titulo| | | <includeonly> |
| |title={{{page title|{{SITENAME}} }}} | | <div class="flex justify-between items-center mt-14 mb-10 pb-6 border-b border-gray-200 not-prose noexcerpt"> |
| |title-icon={{{title-icon|}}} | | <div class="flex h3 items-center font-medium gap-x-3 font-headline">{{#if:{{{title-icon|}}}|[[File:{{{title-icon|Waze happy.png}}}|waze icon|link=|class=rounded-full overflow-hidden w-6 h-6 object-cover border border-gray-300]]}}<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> |
| |hide numbers={{{hide numbers|}}} | | </div>{{#if: {{{hide numbers|}}}|| |
| }} }}{{#if:{{{banner-text|}}}{{{banner-heading|}}}|
| | <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> |
| <div class="prose border border-grey-400 rounded-md mx-0 {{{type|}}} {{#ifeq:{{mediawiki:mainpage}}|{{PAGENAME}}|mb-10|mb-20}} md:max-w-full max-w-fit"> | | <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> |
| {{#if:{{{banner-heading|}}}|<div class="flex items-center bg-blue-30 px-6 py-4"> | | </ul>|}} |
| {{#if:{{{banner-image|}}}|[[File:{{{banner-image}}}|link=]]|}}
| | <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-6 font-medium">{{{banner-heading|}}}</h2> | |
| </div>}}
| |
| <div class="px-10 text-sm text-gray-600 py-4 pb-8"> | |
| {{{banner-text|}}} | |
| </div> | | </div> |
| </div>}}{{#ifeq:{{mediawiki:mainpage}}|{{PAGENAME}}|<div id="siteNotice" ></div>|}}{{#if:{{{row title query|}}}{{{page query|}}}|
| | |
| {{Grid
| | |
| |page={{{page query|}}}
| | |
| |row title={{{row title query|}}}
| | <includeonly> |
| }}
| |
| |{{Carrusel
| |
| |title={{{section 1|}}}
| |
| |link={{{section 1|}}}
| |
| |cards={{{cards 1|}}}
| |
| |template={{{template 1|}}}
| |
| }}{{Carrusel
| |
| |title={{{section 2|}}}
| |
| |link={{{section 2|}}}
| |
| |cards={{{cards 2|}}}
| |
| |template={{{template 2|}}}
| |
| }}{{Carrusel
| |
| |title={{{section 3|}}}
| |
| |link={{{section 3|}}}
| |
| |cards={{{cards 3|}}}
| |
| |template={{{template 3|}}}
| |
| }}{{Carrusel
| |
| |title={{{section 4|}}}
| |
| |link={{{section 4|}}}
| |
| |cards={{{cards 4|}}}
| |
| |template={{{template 4|}}}
| |
| }}{{Carrusel
| |
| |title={{{section 5|}}}
| |
| |link={{{section 5|}}}
| |
| |cards={{{cards 5|}}}
| |
| |template={{{template 5|}}}
| |
| }}{{Carrusel
| |
| |title={{{section 6|}}}
| |
| |link={{{section 6|}}}
| |
| |cards={{{cards 6|}}}
| |
| |template={{{template 6|}}}
| |
| }}
| |
| {{Carrusel
| |
| |title={{{section 7|}}}
| |
| |link={{{section 7|}}}
| |
| |cards={{{cards 7|}}}
| |
| |template={{{template 7|}}}
| |
| }}
| |
| {{Carrusel
| |
| |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__
| |
| </includeonly> | |
| <noinclude>
| |
| <templatedata>
| |
| {
| |
| "params": {
| |
| "no-title": {
| |
| "label": "Ocultar la sección del título de la página",
| |
| "description": "escriba cualquier carácter",
| |
| "type": "boolean"
| |
| },
| |
| "page title": {
| |
| "label": "Título de la página",
| |
| "type": "string",
| |
| "suggested": true
| |
| },
| |
| "banner-text": {
| |
| "label": "Texto para la sección de banners ",
| |
| "type": "content",
| |
| "suggested": true
| |
| },
| |
| "banner-heading": {
| |
| "label": "Texto para la cabecera del banner",
| |
| "type": "string",
| |
| "suggested": true
| |
| },
| |
| "section 1": {
| |
| "label": "Título de la primera sección",
| |
| "type": "string",
| |
| "required": true,
| |
| "suggested": true
| |
| },
| |
| "cards 1": {
| |
| "label": "Lista de tarjetas para la 1ª sección ",
| |
| "example": "Añade tantas plantillas de \"tarjeta\" como quieras",
| |
| "type": "string",
| |
| "required": true,
| |
| "suggested": true
| |
| },
| |
| "section 2": {
| |
| "label": "Título de la segunda sección",
| |
| "type": "string",
| |
| "required": true,
| |
| "suggested": true
| |
| },
| |
| "cards 2": {
| |
| "label": "Lista de tarjetas para la 2ª sección ",
| |
| "example": "Añade tantas plantillas de \"tarjeta\" como quieras",
| |
| "type": "string",
| |
| "required": true,
| |
| "suggested": true
| |
| },
| |
| "section 3": {
| |
| "label": "Título de la tercera sección",
| |
| "type": "string",
| |
| "required": true,
| |
| "suggested": true
| |
| },
| |
| "cards 3": {
| |
| "label": "Lista de tarjetas para la 3ª sección ",
| |
| "example": "Añade tantas plantillas de \"tarjeta\" como quieras",
| |
| "type": "string",
| |
| "required": true,
| |
| "suggested": true
| |
| },
| |
| "section 4": {
| |
| "label": "Título de la cuarta sección",
| |
| "type": "string",
| |
| "required": true,
| |
| "suggested": true
| |
| },
| |
| "cards 4": {
| |
| "label": "Lista de tarjetas para la 4ª sección ",
| |
| "example": "Añade tantas plantillas de \"tarjeta\" como quieras",
| |
| "type": "string",
| |
| "required": true,
| |
| "suggested": true
| |
| },
| |
| "section 5": {
| |
| "label": "Título de la quinta sección",
| |
| "type": "string",
| |
| "required": true,
| |
| "suggested": true
| |
| },
| |
| "cards 5": {
| |
| "label": "Lista de tarjetas para la 5ª sección ",
| |
| "example": "Añade tantas plantillas de \"tarjeta\" como quieras",
| |
| "type": "string",
| |
| "required": true,
| |
| "suggested": true
| |
| },
| |
| "section 6": {
| |
| "label": "Título de la sexta sección",
| |
| "type": "string",
| |
| "required": true,
| |
| "suggested": true
| |
| },
| |
| "cards 6": {
| |
| "label": "Lista de tarjetas para la 6ª sección ",
| |
| "example": "Añade tantas plantillas de \"tarjeta\" como quieras",
| |
| "type": "string",
| |
| "required": true,
| |
| "suggested": true
| |
| },
| |
| "title-icon": {
| |
| "label": "Icono de la sección del título ",
| |
| "description": "Nombre de la imagen",
| |
| "type": "wiki-file-name",
| |
| "suggested": true
| |
| },
| |
| "banner-image": {
| |
| "label": "Imagen para el banner",
| |
| "type": "wiki-file-name",
| |
| "suggested": true
| |
| },
| |
| "hide numbers": {
| |
| "label": "Ocultar números"
| |
| },
| |
| "template 1": {
| |
| "label": "Plantilla 1"
| |
| },
| |
| "template 2": {
| |
| "label": "Plantilla 2"
| |
| },
| |
| "template 3": {
| |
| "label": "Plantilla 3"
| |
| },
| |
| "template 4": {
| |
| "label": "Plantilla 4"
| |
| },
| |
| "template 5": {
| |
| "label": "Plantilla 5"
| |
| },
| |
| "template 6": {
| |
| "label": "Plantilla 6"
| |
| },
| |
| "section 7": {
| |
| "label": "Sección 7 ",
| |
| "type": "string"
| |
| },
| |
| "cards 7": {
| |
| "label": "Tarjeta 7",
| |
| "type": "string"
| |
| },
| |
| "template 7": {
| |
| "label": "Plantilla 7"
| |
| },
| |
| "section 8": {
| |
| "label": "Sección 8",
| |
| "type": "string"
| |
| },
| |
| "cards 8": {
| |
| "label": "Tarjeta 8",
| |
| "type": "string"
| |
| },
| |
| "template 8": {
| |
| "label": "Plantilla 8"
| |
| },
| |
| "categories": {
| |
| "label": "Categorías"
| |
| }
| |
| },
| |
| "description": "Tempate para crear páginas de portal en las páginas principales de Wazeopedia. \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"
| |
| ]
| |
| }
| |
| </templatedata>
| |
| </noinclude>
| |