Template:Userbox/doc: Difference between revisions

From MiiWiki
Jump to navigationJump to search
(Created page with "==Usage== <pre> {{Userbox-r |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 }} </pre> ===Container=== This template goes before the userboxes, and contains them. <pre> {{Userbox-r container |color = co...")
 
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
==Usage==
==Usage==
<pre>
<pre>
{{Userbox-r
{{Userbox
|color = color of the userbox; defaults to #dedede
|color = color of the userbox; defaults to #dedede
|border-color = color of the box's border; defaults to black
|border-color = color of the box's border; defaults to black
Line 12: Line 12:


===Container===
===Container===
[[Template:Userbox-r container|This template]] goes before the userboxes, and contains them.
[[Template:Userbox Container|This template]] goes before the userboxes, and contains them.
<pre>
<pre>
{{Userbox-r container
{{Userbox Container
|color = color of the container; defaults to #dedede
|color = color of the container; defaults to #dedede
|shadow = shadow around the container; defaults to the container color
|shadow = shadow around the container; defaults to the container color
Line 23: Line 23:


===Ending===
===Ending===
Place <code><nowiki>{{Userbox-r container bottom}}</nowiki></code> ([[Template:Userbox-r container bottom|this template]]) at the end of the userboxes to end it.
Place <code><nowiki>{{Userbox Container Bottom}}</nowiki></code> ([[Template:Userbox Container Bottom|this template]]) at the end of the userboxes to end it.<noinclude>
[[Category:Template documentation]]
</noinclude>

Latest revision as of 14:57, 4 April 2023

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.