Predefinição:CardGrid: mudanças entre as edições
Criou página com '<div class="section-inner"> <div class="card-grid"> {{{content}}} </div> </div> <noinclude> {{TemplateData| { "description": "Grid responsivo de cards", "params": { "content": { "label": "Cards", "type": "content", "required": true } } } }} </noinclude>' |
Sem resumo de edição |
||
| Linha 1: | Linha 1: | ||
<div class=" | <includeonly><div class="card"> | ||
<div class="card-body"> | |||
'''{{{title|}}}''' | |||
{{{content|}}} | |||
{{{content}}} | </div> | ||
</div> | </div> | ||
</includeonly> | |||
<noinclude> | |||
== Uso == | |||
{{Card | |||
|title=Exemplo | |||
|content=Texto | |||
}} | |||
< | == TemplateData == | ||
<templatedata> | |||
{ | { | ||
"description": " | "description": "Card básico Bootstrap", | ||
"params": { | "params": { | ||
"content": { | "title": { "label": "Título", "type": "string", "required": true }, | ||
"content": { "label": "Conteúdo", "type": "content", "required": true } | |||
} | } | ||
} | } | ||
</templatedata> | |||
== Template Params == | |||
{{#template_params: | |||
title|string|required; | |||
content|content|required | |||
}} | }} | ||
== Page Forms == | |||
<pre> | |||
{{{for template|Card}}} | |||
{| class="formtable" | |||
! Título: | |||
| {{{field|title|input type=text}}} | |||
! Conteúdo: | |||
| {{{field|content|input type=textarea}}} | |||
|} | |||
{{{end template}}} | |||
</pre> | |||
</noinclude> | </noinclude> | ||
Edição das 15h42min de 14 de abril de 2026
Uso
{{{Seção}}}
[[Arquivo:{{{Imagem}}}|class=img-fluid|link={{{Título}}}]]{{{Trecho}}}
TemplateData
Card básico Bootstrap
| Parâmetro | Descrição | Tipo | Estado | |
|---|---|---|---|---|
| Título | title | sem descrição | String | obrigatório |
| Conteúdo | content | sem descrição | Conteúdo | obrigatório |
Template Params
Esta é a predefinição 'CardGrid'.
Ela deve ser chamada no seguinte formato:
{{CardGrid
|title=
|string=
|required;
content=
|content=
|required=
}}
Edite a página para ver o texto da predefinição.
Page Forms
{{{for template|Card}}}
{| class="formtable"
! Título:
| {{{field|title|input type=text}}}
! Conteúdo:
| {{{field|content|input type=textarea}}}
|}
{{{end template}}}
