Template:Userbox/doc: Difference between revisions
mNo edit summary |
added float |
||
| Line 40: | Line 40: | ||
"type": "string", | "type": "string", | ||
"default": "#000000" | "default": "#000000" | ||
}, | |||
"float": { | |||
"label": "Float", | |||
"description": "If specified, the userbox becomes a floating element. Should not be used in a userbox tower.", | |||
"type": "string", | |||
"suggestedvalues": [ | |||
"left", | |||
"right" | |||
], | |||
"default": "none" | |||
} | } | ||
}, | }, | ||
| Line 49: | Line 59: | ||
"image bg color", | "image bg color", | ||
"border color", | "border color", | ||
"text color" | "text color", | ||
"float" | |||
], | ], | ||
"format": "inline" | "format": "inline" | ||
| Line 56: | Line 67: | ||
==Example usage== | ==Example usage== | ||
<pre>{{userbox|BTD6 round HeroIconQuincy.png|This user is a son of Quincy.|bg color=#323232|image bg color=#404040|border color=#c1c1c1|text color=#ffffff}}</pre> | <pre>{{userbox|BTD6 round HeroIconQuincy.png|This user is a son of Quincy.|bg color=#323232|image bg color=#404040|border color=#c1c1c1|text color=#ffffff|float=right}}</pre> | ||
{{userbox|BTD6 round HeroIconQuincy.png|This user is a son of Quincy.|bg color=#323232|image bg color=#404040|border color=#c1c1c1|text color=#ffffff}} | {{userbox|BTD6 round HeroIconQuincy.png|This user is a son of Quincy.|bg color=#323232|image bg color=#404040|border color=#c1c1c1|text color=#ffffff|float=right}} | ||
<includeonly>[[Category:Userboxes]]</includeonly><noinclude>[[Category:Documentation]]</noinclude> | <includeonly>[[Category:Userboxes]]</includeonly><noinclude>[[Category:Documentation]]</noinclude> | ||