Predefinição:Section: mudanças entre as edições
Criou página com '<div class="section-full section-{{{type|light}}}"> <div class="section-inner"> == {{{title}}} == {{{content}}} </div> </div> <noinclude> {{TemplateData| { "description": "Seção com fundo full-width e conteúdo centralizado", "params": { "type": { "label": "Tipo", "description": "Estilo da seção", "type": "string", "default": "light", "suggestedvalues": ["light", "dark"] }, "title": { "label": "Título",...' |
Sem resumo de edição |
||
| Linha 1: | Linha 1: | ||
<div class="section-full section-{{{type|light}}}"> | <includeonly><div class="section-full section-{{{type|light}}}"> | ||
<div class="section-inner"> | <div class="section-inner"> | ||
== {{{title}}} == | == {{{title|}}} == | ||
{{{content}}} | {{{content|}}} | ||
</div> | </div> | ||
</div> | </div> | ||
</includeonly><noinclude> | |||
== Uso == | |||
{{Section | |||
|type=light | |||
|title=Exemplo | |||
|content=Texto aqui | |||
}} | |||
< | == TemplateData == | ||
<templatedata> | |||
{ | { | ||
"description": "Seção | "description": "Seção full-width com conteúdo centralizado", | ||
"params": { | "params": { | ||
"type": { | "type": { | ||
"label": "Tipo", | "label": "Tipo", | ||
"type": "string", | "type": "string", | ||
"default": "light", | "default": "light", | ||
"suggestedvalues": ["light", "dark"] | "suggestedvalues": ["light","dark"] | ||
}, | }, | ||
"content": { | "title": { "label": "Título", "type": "string", "required": true }, | ||
"content": { "label": "Conteúdo", "type": "content", "required": true } | |||
} | } | ||
} | } | ||
</templatedata> | |||
== Template Params == | |||
{{#template_params: | |||
type|string|optional; | |||
title|string|required; | |||
content|content|required | |||
}} | }} | ||
== Page Forms == | |||
<pre> | |||
{{{for template|Section}}} | |||
{| class="formtable" | |||
! Tipo: | |||
| {{{field|type|input type=dropdown|values=light,dark}}} | |||
! Título: | |||
| {{{field|title|input type=text}}} | |||
! Conteúdo: | |||
| {{{field|content|input type=textarea}}} | |||
|} | |||
{{{end template}}} | |||
</pre> | |||
</noinclude> | </noinclude> | ||
Edição atual tal como às 15h21min de 14 de abril de 2026
Uso
Exemplo
Texto aqui
TemplateData
Seção full-width com conteúdo centralizado
| Parâmetro | Descrição | Tipo | Estado | |
|---|---|---|---|---|
| Tipo | type | sem descrição
| String | opcional |
| 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 'Section'.
Ela deve ser chamada no seguinte formato:
{{Section
|type=
|string=
|optional;
title=
|required;
content=
|content=
|required=
}}
Edite a página para ver o texto da predefinição.
Page Forms
{{{for template|Section}}}
{| class="formtable"
! Tipo:
| {{{field|type|input type=dropdown|values=light,dark}}}
! Título:
| {{{field|title|input type=text}}}
! Conteúdo:
| {{{field|content|input type=textarea}}}
|}
{{{end template}}}
