Predefinição:Hero: mudanças entre as edições
Sem resumo de edição |
Sem resumo de edição |
||
| (Uma revisão intermediária pela mesma usuária não está sendo mostrada) | |||
| Linha 1: | Linha 1: | ||
<includeonly><div class="hero"> | <includeonly><div class="hero"> | ||
[[File:{{{image | {{#if: {{{image|}}} | | ||
[[File:{{{image}}}|class=hero-img]] | |||
}} | |||
<div class="hero-content"> | <div class="hero-content"> | ||
| Linha 24: | Linha 26: | ||
== TemplateData == | == TemplateData == | ||
{{#template_params: | {{#template_params: | ||
image|wiki- | image|wiki-file-name|required; | ||
title|string|required; | title|string|required; | ||
subtitle|string|optional | subtitle|string|optional | ||
| Linha 35: | Linha 37: | ||
"image": { | "image": { | ||
"label": "Imagem", | "label": "Imagem", | ||
"type": "wiki- | "type": "wiki-file-name", | ||
"required": true | "required": true | ||
}, | }, | ||
| Linha 51: | Linha 53: | ||
} | } | ||
</templatedata> | </templatedata> | ||
== Page Forms == | == Page Forms == | ||
Edição atual tal como às 20h45min de 16 de abril de 2026
Uso
Descrição
Hero full-width com imagem e texto sobreposto.
TemplateData
Esta é a predefinição 'Hero'.
Ela deve ser chamada no seguinte formato:
{{Hero
|image=
|wiki-file-name=
|required;
title=
|string=
|required;
subtitle=
|optional=
}}
Edite a página para ver o texto da predefinição.
Hero full-width com imagem e texto sobreposto
| Parâmetro | Descrição | Tipo | Estado | |
|---|---|---|---|---|
| Imagem | image | sem descrição | Arquivo | obrigatório |
| Título | title | sem descrição | String | obrigatório |
| Subtítulo | subtitle | sem descrição | String | opcional |
Page Forms
{{{for template|Hero}}}
{| class="formtable"
! Título:
| {{{field|title|input type=text}}}
! Subtítulo:
| {{{field|subtitle|input type=text}}}
! Imagem:
| {{{field|image|input type=upload}}}
|}
{{{end template}}}

