Template:MessageBox: Difference between revisions
Jump to navigation
Jump to search
(Improved documentation) |
(Fix image alignment) |
||
Line 37: | Line 37: | ||
</noinclude><onlyinclude><includeonly>{| class="messagebox" id="{{{1|messagebox}}}" style="border: 1px solid #A2A9B1; border-left-width: 10px; border-left-color: {{{color|#3366CC}}}; background-color: {{{background-color|#FBFBFB}}};" | </noinclude><onlyinclude><includeonly>{| class="messagebox" id="{{{1|messagebox}}}" style="border: 1px solid #A2A9B1; border-left-width: 10px; border-left-color: {{{color|#3366CC}}}; background-color: {{{background-color|#FBFBFB}}};" | ||
|- | |- | ||
|align="center" width="5%"|[[Image:{{{image|Information icon4.webp}}} | |align="center" width="5%"|[[Image:{{{image|Information icon4.webp}}}|40px]] | ||
|align="left" width="90%"|'''{{{2|Message}}}'''<br>{{{3|}}} | |align="left" width="90%"|'''{{{2|Message}}}'''<br>{{{3|}}} | ||
|}</includeonly></onlyinclude> | |}</includeonly></onlyinclude> | ||
[[Category:Templates]] | [[Category:Templates]] |
Latest revision as of 05:54, 19 December 2023
Format
This template should be used for messageboxes at the top of pages. It has these arguments
{{MessageBox | 1 = The html id of the box | 2 = The title of the box | 3 = The text of the box | color = The color of the left side of the box | background-color = the color of the box background | image = The name of the image to use on the left (should be 40px) }}
Examples
The style of these example boxes was copied from wikipedia:
{{MessageBox|notice|Notice|This is a notice.}}
{{MessageBox|style|Style|This article has style issues.|image=Edit-clear.png|color=#FFCC33}}
{{MessageBox|content|Content|This article has content issues.|image=Ambox important.webp|color=#f28500}}
{{MessageBox|speedy|Speedy Deletion|This article has been marked for speedy deletion.|image=Ambox warning pn.svg.png|color=#B32424|background-color=#FEE7E6|}}