« Modèle:ColoredBox » : différence entre les versions
Aucun résumé des modifications |
Aucun résumé des modifications Balise : Révoqué |
||
| Ligne 13 : | Ligne 13 : | ||
{{#if: {{{title-color|}}} | color: {{{title-color|#000000}}}; }}" | {{#if: {{{title-color|}}} | color: {{{title-color|#000000}}}; }}" | ||
">{{#if: {{{icon|}}} | [[File:{{{icon}}}|20px|class=mw-tpl-colorbox-title-icon|link={{{title-link|}}}|alt=]]  }}<!-- | ">{{#if: {{{icon|}}} | [[File:{{{icon}}}|20px|class=mw-tpl-colorbox-title-icon|link={{{title-link|}}}|alt=]]  }}<!-- | ||
--> | -->[[{{{title-link|}}}|<strong>{{{title}}}</strong>]]<!-- | ||
-->{{#if: {{{view-link|{{{link|}}}}}} | -->{{#if: {{{view-link|{{{link|}}}}}} | ||
|<div class="mw-tpl-colorbox-title-corner">[[{{{view-link|{{{link|}}}}}}|<span style="{{#if: {{{link-color|{{{title-color|}}}}}} | color: {{{link-color|{{{title-color|}}}}}}; }}">{{{view-text|view}}}</span>]]</div> | |<div class="mw-tpl-colorbox-title-corner">[[{{{view-link|{{{link|}}}}}}|<span style="{{#if: {{{link-color|{{{title-color|}}}}}} | color: {{{link-color|{{{title-color|}}}}}}; }}">{{{view-text|view}}}</span>]]</div> | ||
Version du 16 octobre 2023 à 05:04
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 |