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

De Documentations Patas-monkey
Aller à la navigation Aller à la recherche
en.>Mlink-rodrigue
Aucun résumé des modifications
 
m 1 révision importée
 
(Aucune différence)

Dernière version du 6 octobre 2020 à 16:10


This template creates different types of info boxes on a page. Based on the box type, the label and the color scheme are selected.

The template files (Template:Box Note and Template:Box Note/styles.css can be downloaded as part of the template package.


screenshot of box note template
Info box examples


<templatedata> { "params": { "boxtype": { "description": "Possible values: note, tip, warning, important, example, backgroundbox. If type backgroundbox is chosen, then no label is added before the message.", "example": "note", "type": "string", "default": "note", "required": true, "label": "Type of box" }, "Note text": { "label": "Text message", "type": "content" }, "bgcolor": { "label": "Background color", "description": "Changes the background color of the box.", "type": "string" } }, "description": "To add standard infoboxes such as notes or related links to a page" } </templatedata>