Predefinição:Hero: mudanças entre as edições
Criou página com '<div class="hero"> [[File:{{{image}}}|class=hero-img]] <div class="hero-content"> == {{{title}}} == {{{subtitle}}} </div> </div> <noinclude> {{TemplateData| { "description": "Hero full-width com imagem e texto sobreposto", "params": { "image": { "label": "Imagem", "type": "wiki-page-name", "required": true }, "title": { "label": "Título", "type": "string", "required": true }, "subtitle": { "label":...' |
Sem resumo de edição |
||
| (5 revisões intermediárias pela mesma usuária não estão sendo mostradas) | |||
| Linha 1: | Linha 1: | ||
<div class="hero"> | <includeonly><div class="hero"> | ||
{{#if: {{{image|}}} | | |||
[[File:{{{image}}}|class=hero-img]] | [[File:{{{image}}}|class=hero-img]] | ||
}} | |||
<div class="hero-content"> | <div class="hero-content"> | ||
== {{{title}}} == | == {{{title|}}} == | ||
{{{subtitle}}} | {{{subtitle|}}} | ||
</div> | </div> | ||
</div> | </div> | ||
</includeonly><noinclude> | |||
== Uso == | |||
{{Hero | |||
|image=Image4.jpg | |||
|title=Bem-vindo | |||
|subtitle=Subtítulo aqui | |||
}} | |||
== Descrição == | |||
Hero full-width com imagem e texto sobreposto. | |||
== TemplateData == | |||
{{ | {{#template_params: | ||
image|wiki-file-name|required; | |||
title|string|required; | |||
subtitle|string|optional | |||
}} | |||
<templatedata> | |||
{ | { | ||
"description": "Hero full-width com imagem e texto sobreposto", | "description": "Hero full-width com imagem e texto sobreposto", | ||
| Linha 20: | Linha 37: | ||
"image": { | "image": { | ||
"label": "Imagem", | "label": "Imagem", | ||
"type": "wiki- | "type": "wiki-file-name", | ||
"required": true | "required": true | ||
}, | }, | ||
| Linha 30: | Linha 47: | ||
"subtitle": { | "subtitle": { | ||
"label": "Subtítulo", | "label": "Subtítulo", | ||
"type": "string" | "type": "string", | ||
"required": false | |||
} | } | ||
} | } | ||
} | } | ||
}} | </templatedata> | ||
== Page Forms == | |||
<pre> | |||
{{{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}}} | |||
</pre> | |||
</noinclude> | </noinclude> | ||
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}}}

