Predefinição:Hero: mudanças entre as edições
Sem resumo de edição |
Sem resumo de edição |
||
| (4 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> | <templatedata> | ||
{ | { | ||
| 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> | </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> | ||
