Template:Userbox: Difference between revisions

From MiiWiki
Jump to navigationJump to search
mNo edit summary
mNo edit summary
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div id="userbox" style="flex: 1; background: {{{color|#dedede}}}; flex-basis: 49%; border-radius: 10px; text-align: center"><!--
<includeonly><div id="userbox" style="flex: 1; background: {{{color|#dedede}}}; flex-basis: 100%; border-radius: 10px; border-style: solid; border-width: {{{border-width|2px}}}; border-color: {{{border-color|black}}}; text-align: center"><!--
--><div style="display: flex; gap: 0px"><!--
--><div style="display: flex; gap: 0px"><!--
--><div style="align-self: center; margin: 5px">{{{image|[[File:Needed.png|50px]]}}}</div><!--
--><div style="align-self: center; margin: 5px">{{{image|[[File:Needed.png|50px]]}}}</div><!--
--><div style="font-size: 1rem; text-align: center; align-self: center; margin: 5px 5px">{{{text|text}}}</div><!--
--><div style="text-align: left; align-self: center; margin: 5px 5px">{{color|{{{text-color|black}}}|{{{text|text}}}}}</div><!--
--></div><!--
--></div><!--
--></div>
--></div><!--
--></includeonly><noinclude>{{doc}}[[category:Userboxes]]</noinclude>

Latest revision as of 13:35, 16 February 2022

Usage

{{Userbox
|color = color of the userbox; defaults to #dedede
|border-color = color of the box's border; defaults to black
|border-width = width of the border; defaults to 2px
|image = image in the box (required)
|text = text in the box (required)
|text-color = color of the text; defaults to black
}}

Container

This template goes before the userboxes, and contains them.

{{Userbox Container
|color = color of the container; defaults to #dedede
|shadow = shadow around the container; defaults to the container color
|align = alignment of the container; defaults to right, but can be set to left
|title = title for userbox container (optional)
}}

Ending

Place {{Userbox Container Bottom}} (this template) at the end of the userboxes to end it.