Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Box: Difference between revisions

Template page
Created page with "<div class="box box-{{type}}"> {{#if: {{{header|}}}| <h3> {{{header}}} </h3> }} <span> {{{content}}} </span> </div> <noinclude> <templatedata> { "params": { "content": { "description": "Content", "type": "content" }, "header": { "type": "string", "aliases": [ "title" ], "description": "Title of the box" }, "type": { "description": "Type of info box", "type": "string", "suggestedvalues": [ "primary", "info", "warning"..."
 
m Fixed type class on div
 
Line 1: Line 1:
<div class="box box-{{type}}">
<div class="box box-{{{type}}}">
{{#if: {{{header|}}}|
{{#if: {{{header|}}}|
<h3>
<h3>

Latest revision as of 00:39, 17 April 2025

{{{content}}}


Create a notice, info, or warning box

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
contentcontent

Content

Contentoptional
headerheader title

Title of the box

Stringoptional
typetype

Type of info box

Suggested values
primary info warning danger
Default
primary
Stringoptional
imageimage

Image to the left of the message

URLoptional
iconicon

Icon to left of text

Stringoptional

Create a box like the one shown above. Use the type parameter to specify what type of box to make. The options are: primary, info, warning, danger.