You are viewing an old version of this page. Return to the latest version.
Difference between revisions of "Template:Box Note"
(Tag: 2017 source edit) |
(Tag: 2017 source edit) |
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:
{{{Note text}}}Kopiervorlage:
{{Box_Note|Note text =}}
Box Note/styles.css can be downloaded as part of the template package.
To add standard infoboxes such as notes or related links to a page
Parameter | Description | Type | Status | |
---|---|---|---|---|
Boxtype | boxtype |
Possible values: note, tip, warning, important, example, background
|
String | required |
Note text | Note text |
no description
|
Unknown | optional |
<includeonly><div class="infobox notification-{{{boxtype}}}" {{#if:{{{bgcolor|}}}|style="background:{{{bgcolor}}}"|}}> <span class="boxlabel"> {{#switch: {{{boxtype}}} | note = Note: | tip = Tip: | warning = Warning: | example = Example: | important = Important! | backgroundbox = | #default = Note: }} </span>{{{Note text}}} </div></includeonly> <noinclude> Kopiervorlage: <pre> {{Box_Note|Note text =}} </pre> 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 [[Manual:Template/Template package|template package]]. [[File:template-download-Box_Note.PNG|550x550px|center|alt=screenshot of box note template|thumb|Info box examples]] <templatedata> { "params": { "boxtype": { "description": "Possible values: note, tip, warning, important, example, background", "example": "note", "type": "string", "default": "note", "required": true }, "Note text": {} }, "description": "To add standard infoboxes such as notes or related links to a page" } </templatedata> </noinclude>
Line 1: | Line 1: | ||
− | <div class="infobox notification-{{{boxtype}}}"> | + | <includeonly><div class="infobox notification-{{{boxtype}}}" {{#if:{{{bgcolor|}}}|style="background:{{{bgcolor}}}"|}}> |
<span class="boxlabel"> | <span class="boxlabel"> | ||
{{#switch: {{{boxtype}}} | {{#switch: {{{boxtype}}} | ||
Line 11: | Line 11: | ||
}} | }} | ||
</span>{{{Note text}}} | </span>{{{Note text}}} | ||
− | </div> | + | </div></includeonly> |
<noinclude> | <noinclude> | ||
− | + | 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 [[Manual:Template/Template package|template package]]. | |
− | + | [[File:template-download-Box_Note.PNG|550x550px|center|alt=screenshot of box note template|thumb|Info box examples]] | |
+ | |||
+ | |||
<templatedata> | <templatedata> | ||
{ | { | ||
"params": { | "params": { | ||
"boxtype": { | "boxtype": { | ||
− | "description": "Possible values: note, tip, warning, important, example", | + | "description": "Possible values: note, tip, warning, important, example, background", |
"example": "note", | "example": "note", | ||
"type": "string", | "type": "string", |