Aller au contenu

« Modèle:Divbox » : différence entre les versions

De Observatoire du réemploi des PMCB en Charente
Aucun résumé des modifications
Aucun résumé des modifications
Ligne 7 : Ligne 7 :
|tt=background-color: transparent; color:darkblue; font-family:monospace; border: 1px solid grey;
|tt=background-color: transparent; color:darkblue; font-family:monospace; border: 1px solid grey;
|plain
|plain
|#default=background-color: inherit; border: 1px solid #000000;}} margin: 0.5em; padding: 0.5em; {{#if:{{{radius|}}}|border-radius: {{{radius}}};}} width:{{{width|100%}}};{{#if:{{{height|}}}|height={{{height}}};|}}display:inline-block;">
|#default=background-color: inherit; border: 1px solid #000000;}} margin: 0.5em; padding: 0.5em; {{#if:{{{radius|}}}|border-radius: {{{radius}}};}} width:{{{width|100%}}};{{#if:{{{height|}}}|height:{{{height}}};|}}display:inline-block;">
<div class="center" style="width:auto; margin-left:auto; margin-right:auto;">{{#if:{{{2|}}}|'''{{{2}}}'''}}</div>
<div class="center" style="width:auto; margin-left:auto; margin-right:auto;">{{#if:{{{2|}}}|'''{{{2}}}'''}}</div>
{{{3|}}}
{{{3|}}}

Version du 16 avril 2025 à 12:30

From https://www.mediawiki.org/wiki/Template:Divbox - Mimics the divbox template found on English wikipedia.

Note that not all styles are currently supported. Currently just red, grey, amber, navy, none, tt, and plain (which is the default).