Sjabloon:Tmbox: verschil tussen versies

Uit Wiki Raamsdonks Historie
(Nieuwe pagina aangemaakt met '{{#invoke:Message box|tmbox}}<noinclude> {{documentation}} <!-- Categories go on the /doc subpage, and interwikis go on Wikidata. --> </noinclude>')
 
k (1 versie geïmporteerd)
 
(Een tussenliggende versie door een andere gebruiker niet weergegeven)
Regel 1: Regel 1:
{{#invoke:Message box|tmbox}}<noinclude>
{{#invoke:Message box|tmbox}}<noinclude>
{{documentation}}
{{Gebruikt Lua|Message box}}
<!-- Categories go on the /doc subpage, and interwikis go on Wikidata. -->
{{Documentatie|1=
 
Dit is het '''Tmbox''' ('''T'''alk page '''m'''essage '''box''') sjabloon. Dit sjabloon kan direct of door andere sjablonen gebruikt worden om een consistente layout te creëren op voor standaard berichten op overlegpagina's. Er zijn diverse kleuren en afbeeldingen beschikbaar voor verschillende soorten berichten.
 
== Gebruik ==
 
<syntaxhighlight lang="html+handlebars">
{{tmbox | text = Een berichtje.}}
</syntaxhighlight>
{{tmbox | text = Een berichtje.}}
 
<syntaxhighlight lang="html+handlebars">
{{tmbox | type = style | image  = [[File:Emblem-question-yellow.svg|40px|link=|alt=]] | style = width: 400px; | textstyle = color: red; font-weight: bold; font-style: italic; | text  = De tekst van het bericht.
}}
</syntaxhighlight>
{{tmbox
| type      = style
| image    = [[File:Emblem-question-yellow.svg|40px|link=|alt=]]
| style    = width: 400px;
| textstyle = color: red; font-weight: bold; font-style: italic;
| text      = De tekst van het bericht.
}}
 
====TemplateData====
<templatedata>
{
"params": {
"name": {
"description": "Name of the template. This adds a CSS class to the HTML element, for use by bots or scripts",
"type": "line",
"suggested": true
},
"small": {
"description": "Makes it a smaller right floating message box",
"type": "boolean"
},
"type": {
"description": "Formats the box based on its type",
"suggestedvalues": [
"speedy",
"delete",
"content",
"style",
"notice",
"move",
"protection"
],
"default": "notice",
"suggested": true
},
"image": {
"description": "Replaces the default left-side image",
"type": "wiki-file-name",
"suggested": true
},
"imageright": {
"description": "Adds an image on the right",
"type": "wiki-file-name"
},
"style": {
"description": "Optional CSS values used by the entire message box table",
"type": "unknown"
},
"textstyle": {
"description": "Optional CSS values used by the text cell"
},
"plainlinks": {
"description": "Set to \"no\" to show the external link icon for external links",
"type": "boolean",
"default": "yes"
},
"text": {
"description": "The message body text",
"suggested": true,
"type": "unbalanced-wikitext"
},
"smallimage": {
"label": "Small image",
"description": "Left-side image used for the small version of the box",
"type": "wiki-file-name"
},
"smallimageright": {
"label": "Small image right",
"description": "Right-side image used for the small version of the box",
"type": "wiki-file-name"
},
"smalltext": {
"label": "Small text",
"description": "Text used for the small version of the box",
"type": "unbalanced-wikitext"
}
},
"description": "A meta-template called by other templates to produce consistently formatted talk page message boxes.",
"paramOrder": [
"name",
"type",
"image",
"imageright",
"style",
"textstyle",
"plainlinks",
"text",
"small",
"smallimage",
"smallimageright",
"smalltext"
],
"format": "inline"
}
</templatedata>
 
 
}}
[[Categorie:Wikipedia:Sjablonen boodschap]]
</noinclude>
</noinclude>

Huidige versie van 23 mrt 2024 om 18:38

[[Category:]]

Sjabloondocumentatie​

Dit is het Tmbox (Talk page message box) sjabloon. Dit sjabloon kan direct of door andere sjablonen gebruikt worden om een consistente layout te creëren op voor standaard berichten op overlegpagina's. Er zijn diverse kleuren en afbeeldingen beschikbaar voor verschillende soorten berichten.

Gebruik

{{tmbox | text = Een berichtje.}}
[[Category:]]
{{tmbox | type = style | image  = [[File:Emblem-question-yellow.svg|40px|link=|alt=]] | style = width: 400px; | textstyle = color: red; font-weight: bold; font-style: italic; | text  = De tekst van het bericht.
}}
[[Category:]]

TemplateData

<templatedata> { "params": { "name": { "description": "Name of the template. This adds a CSS class to the HTML element, for use by bots or scripts", "type": "line", "suggested": true }, "small": { "description": "Makes it a smaller right floating message box", "type": "boolean" }, "type": { "description": "Formats the box based on its type", "suggestedvalues": [ "speedy", "delete", "content", "style", "notice", "move", "protection" ], "default": "notice", "suggested": true }, "image": { "description": "Replaces the default left-side image", "type": "wiki-file-name", "suggested": true }, "imageright": { "description": "Adds an image on the right", "type": "wiki-file-name" }, "style": { "description": "Optional CSS values used by the entire message box table", "type": "unknown" }, "textstyle": { "description": "Optional CSS values used by the text cell" }, "plainlinks": { "description": "Set to \"no\" to show the external link icon for external links", "type": "boolean", "default": "yes" }, "text": { "description": "The message body text", "suggested": true, "type": "unbalanced-wikitext" }, "smallimage": { "label": "Small image", "description": "Left-side image used for the small version of the box", "type": "wiki-file-name" }, "smallimageright": { "label": "Small image right", "description": "Right-side image used for the small version of the box", "type": "wiki-file-name" }, "smalltext": { "label": "Small text", "description": "Text used for the small version of the box", "type": "unbalanced-wikitext" } }, "description": "A meta-template called by other templates to produce consistently formatted talk page message boxes.", "paramOrder": [ "name", "type", "image", "imageright", "style", "textstyle", "plainlinks", "text", "small", "smallimage", "smallimageright", "smalltext" ], "format": "inline" } </templatedata>