« Modèle:ColoredBox » : différence entre les versions
Aucun résumé des modifications |
Aucun résumé des modifications Balise : Révocation manuelle |
||
| (12 versions intermédiaires par le même utilisateur non affichées) | |||
| Ligne 5 : | Ligne 5 : | ||
| background-color: {{{background-content-color|#fff}}}; | | background-color: {{{background-content-color|#fff}}}; | ||
}} | }} | ||
{{{style|}}} | {{{style|}}} flex-basis: 15em; flex-grow: 1;flex-wrap: wrap; | ||
"><templatestyles src="Coloredbox/style.css"/><!-- | "><templatestyles src="Coloredbox/style.css"/><!-- | ||
--><div class="mw-tpl-colorbox-title {{#if: {{{title-link|}}} | mw-tpl-colorbox-title--linked }}" style=" | --><div class="mw-tpl-colorbox-title {{#if: {{{title-link|}}} | mw-tpl-colorbox-title--linked }}" style=" | ||
| Ligne 20 : | Ligne 20 : | ||
}} | }} | ||
}} | }} | ||
</div | </div><!-- | ||
--><div class="mw-tpl-colorbox-content"> | --><div class="mw-tpl-colorbox-content"> | ||
{{{content}}} | {{{content}}} | ||
Dernière version du 16 octobre 2023 à 05:10
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 |