« Modèle:ColoredBox » : différence entre les versions
(Page créée avec « <div class="mw-tpl-colorbox {{{class|}}}" style=" {{#if: {{{background-content-color|}}} | background-color: {{{background-content-color|#fff}}}; }} {{{style|}}} "><templatestyles src="Colored box/style.css"/><!-- --><div class="mw-tpl-colorbox-title {{#if: {{{title-link|}}} | mw-tpl-colorbox-title--linked }}" style=" {{#if: {{{background-title-color|}}} | background-color: {{{background-title-color|#eaecf0}}}; }} {{#if: {{{title-color|}}} | color: {{{title-color|#00... ») |
Aucun résumé des modifications |
||
| Ligne 1 : | Ligne 1 : | ||
<div class="mw-tpl-colorbox {{{class|}}}" style=" | <includeonly><div class="mw-tpl-colorbox {{{class|}}}" style=" | ||
{{#if: {{{background-content-color|}}} | {{#if: {{{background-content-color|}}} | ||
| background-color: {{{background-content-color|#fff}}}; | | background-color: {{{background-content-color|#fff}}}; | ||
| Ligne 23 : | Ligne 23 : | ||
</div> | </div> | ||
</div> | </div> | ||
</includeonly> | |||
<noinclude> | <noinclude> | ||
<templatedata> | <templatedata> | ||
{ | { | ||
"params": { | "params": { | ||
"background-content-color": {}, | "background-content-color": {}, | ||
" | "class": { | ||
" | "label": "extra classes", | ||
"description": "Extra CSS classes to apply to the outermost box (space-separated). This is mainly for other templates using TemplateStyles so that they can scope their CSS to the box, but it may be useful in other cases as well.", | |||
"type": "line" | |||
}, | |||
"style": { | |||
"label": "extra styles", | |||
"description": "Extra inline CSS rules to apply to the outermost element. Prefer TemplateStyles and using CSS classes if possible when using this template in another template.", | |||
"type": "line" | |||
}, | |||
"background-title-color": {}, | "background-title-color": {}, | ||
" | "icon": { | ||
" | "type": "wiki-file-name" | ||
"title": { | }, | ||
"title-color": { | |||
"type": "string" | |||
}, | |||
"title": { | |||
"required": true, | |||
"label": "Title text", | |||
"type": "string" | |||
}, | |||
"link-color": {}, | "link-color": {}, | ||
"view-text": {}, | "content": { | ||
"view- | "required": true, | ||
"link2": {}, | "label": "Content", | ||
"content" | "type": "content" | ||
}, | |||
"title-link": { | |||
"label": "Title link", | |||
"description": "Turn title area into a clickable link", | |||
"type": "wiki-page-name" | |||
}, | |||
"view-text": { | |||
"description": "Replace link text for \"view-link\" with something other than \"view\".", | |||
"type": "string" | |||
}, | |||
"view-link": { | |||
"aliases": [ | |||
"link" | |||
], | |||
"description": "Create a \"view\" corner link to a given page.", | |||
"type": "wiki-page-name" | |||
}, | |||
"view-extlink": { | |||
"aliases": [ | |||
"link2" | |||
], | |||
"description": "Create a \"view\" corner link to a external URL. This cannot be used together with \"view-link\".", | |||
"type": "url" | |||
} | |||
}, | |||
"description": { | |||
"en": "This template is for community pages", | |||
"fr": "Le modèle boîte colorée est conçu pour les pages communautaires. Il s'inspire de la page d'accueil de Wikidata. " | |||
}, | |||
"format": "block", | |||
"paramOrder": [ | |||
"background-content-color", | |||
"class", | |||
"style", | |||
"background-title-color", | |||
"icon", | |||
"title", | |||
"title-link", | |||
"title-color", | |||
"view-link", | |||
"view-extlink", | |||
"view-text", | |||
"link-color", | |||
"content" | |||
] | |||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | </noinclude> | ||
Version du 9 octobre 2023 à 10:23
Le modèle boîte colorée est conçu pour les pages communautaires. Il s'inspire de la page d'accueil de Wikidata.
| Paramètre | Description | Type | État | |
|---|---|---|---|---|
| background-content-color | background-content-color | aucune description | Inconnu | facultatif |
| extra classes | class | Extra CSS classes to apply to the outermost box (space-separated). This is mainly for other templates using TemplateStyles so that they can scope their CSS to the box, but it may be useful in other cases as well. | Ligne | facultatif |
| extra styles | style | Extra inline CSS rules to apply to the outermost element. Prefer TemplateStyles and using CSS classes if possible when using this template in another template. | Ligne | facultatif |
| background-title-color | background-title-color | aucune description | Inconnu | facultatif |
| icon | icon | aucune description | Fichier | facultatif |
| Title text | title | aucune description | Chaîne | obligatoire |
| Title link | title-link | Turn title area into a clickable link | Nom de page | facultatif |
| title-color | title-color | aucune description | Chaîne | facultatif |
| view-link | view-link link | Create a "view" corner link to a given page. | Nom de page | facultatif |
| view-extlink | view-extlink link2 | Create a "view" corner link to a external URL. This cannot be used together with "view-link". | URL | facultatif |
| view-text | view-text | Replace link text for "view-link" with something other than "view". | Chaîne | facultatif |
| link-color | link-color | aucune description | Inconnu | facultatif |
| Content | content | aucune description | Contenu | obligatoire |