Predefinição:InfoboxModern: mudanças entre as edições
Criou página com '<div class="infobox-modern"> == {{{title}}} == {{#if: {{{image|}}} | [[File:{{{image}}}|300px]] }} {{{content}}} </div> <noinclude> {{TemplateData| { "description": "Infobox moderna estilo card", "params": { "title": { "label": "Título", "type": "string", "required": true }, "image": { "label": "Imagem", "type": "wiki-page-name" }, "content": { "label": "Conteúdo", "type": "content", "required...' |
Desfeita a edição 18126 de Patrícia Ferreira (Discussão) Etiqueta: Desfazer |
||
| (2 revisões intermediárias pela mesma usuária não estão sendo mostradas) | |||
| Linha 1: | Linha 1: | ||
<div class="infobox- | <includeonly> | ||
{{InfoboxModern | |||
|title={{{title|Personagem}}} | |||
|image={{{image|person.jpg}}} | |||
|content= | |||
<div class="infobox-row"><b>Nome</b> <span>{{{nome|XYZ}}}</span></div> | |||
<div class="infobox-row"><b>Idade</b> <span>{{{idade|30}}}</span></div> | |||
}} | |||
</includeonly> | |||
<noinclude> | |||
{{ | == Uso == | ||
<pre> | |||
{{InfoboxModern | |||
|title=Personagem | |||
|image=person.jpg | |||
|nome=XYZ | |||
|idade=30 | |||
}} | }} | ||
</pre> | |||
== TemplateData == | |||
<templatedata> | |||
< | |||
{ | { | ||
"description": "Infobox moderna | "description": "Infobox moderna para personagens com imagem, nome e idade.", | ||
"params": { | "params": { | ||
"title": { | "title": { | ||
"label": "Título", | "label": "Título", | ||
"type": "string", | "type": "string", | ||
"required": | "required": false, | ||
"default": "Personagem" | |||
}, | }, | ||
"image": { | "image": { | ||
"label": "Imagem", | "label": "Imagem", | ||
"type": "wiki- | "type": "wiki-file-name", | ||
"required": false, | |||
"default": "person.jpg" | |||
}, | }, | ||
" | "nome": { | ||
"label": " | "label": "Nome", | ||
"type": " | "type": "string", | ||
"required": | "required": false, | ||
"default": "XYZ" | |||
}, | |||
"idade": { | |||
"label": "Idade", | |||
"type": "number", | |||
"required": false, | |||
"default": "30" | |||
} | } | ||
} | } | ||
} | } | ||
</templatedata> | |||
== Template Params == | |||
{{#template_params: | |||
title|string; | |||
image|wiki-file-name; | |||
nome|string; | |||
idade|number | |||
}} | }} | ||
== Page Forms == | |||
<pre> | |||
{{{for template|InfoboxModern}}} | |||
{| class="formtable" | |||
! Título: | |||
| {{{field|title|input type=text}}} | |||
! Imagem: | |||
| {{{field|image|input type=text}}} | |||
! Nome: | |||
| {{{field|nome|input type=text}}} | |||
! Idade: | |||
| {{{field|idade|input type=number}}} | |||
|} | |||
{{{end template}}} | |||
</pre> | |||
</noinclude> | </noinclude> | ||
