Template:Icon box

From DisNCord Community Wiki
Revision as of 17:37, 14 January 2023 by Knuxify (talk | contribs) (Created page with "<noinclude> This is a template for a box with an icon, largely inspired by Wikipedia's [https://en.wikipedia.org/wiki/Template:Mbox Template:Mbox]. == Examples == {{Icon box | box-icons = 28px|link=|Icon | box-text = This is an example of the icon box.<br>I can also use HTML tags and MediaWiki syntax, like links. | border-color = #88a | border-width = 3px | background = #f7f8ff }} <pre> {{Icon box | box-icons = File:Disnc...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This is a template for a box with an icon, largely inspired by Wikipedia's Template:Mbox.

Examples

Icon This is an example of the icon box.
I can also use HTML tags and MediaWiki syntax, like links.
{{Icon box
| box-icons = [[File:Disncord wiki icon.png|28px|link=|Icon]]
| box-text = This is an example of the icon box.<br>I can also use HTML tags and MediaWiki syntax, like [[Main Page|links]].
| border-color = #88a
| border-width = 3px
| background = #f7f8ff
}}
Icon This is a box with side margins.
{{Icon box
| box-icons = [[File:Disncord wiki icon.png|20px|link=|Icon]]
| box-text = This is a box with side margins.
| border-color = #ac6600
| border-width = 1px
| background = #f6efe5
| margin = yes
}}

Warning: Make sure to set your icon's size (like in the examples above).

This template was created by knuxify, who dedicates it to the public domain. A slightly different version can also be found on the postmarketOS wiki. Both wikis are licensed under the CC BY-SA 4.0.