Template:UserboxNew: Difference between revisions
Jump to navigation
Jump to search
IIWiki logo
Personal Coat of Arms
Ozycaevias (talk | contribs) No edit summary |
Ozycaevias (talk | contribs) No edit summary |
||
(8 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <includeonly><!-- | ||
<div style="width: | --><div style="width: 250px; float: right; border: solid {{{Border-color|#eeeeee}}}; border-width: 1px 1px 0.2em; background-color: {{{Background-color|#fcfcfc}}}; box-shadow: 0 1px 2px 1px rgba(0,0,0,0.02); padding: 5px; margin: 6px; display: inline-block; text-align: center;"> | ||
<div style="font-size:large;">'''{{{User|}}}'''</div> | <div style="font-size:large; color:{{{User-color|black}}};">'''{{{User|}}}'''</div> | ||
<div style="display: flex; flex-flow: column wrap;">{{{ | <div style="display: flex; flex-flow: column wrap; justify-content: center; align-items: stretch;">{{#if: {{{Image|}}}|[[File:{{{Image}}}|200px]]<br />|}}{{#if: {{{Caption|}}}|<span style="font-size:small; color:{{{Caption-color|#464B54}}};">{{{Caption}}}</span><br />|}}{{{Userboxes|}}}</div> | ||
</div><!-- | |||
--></includeonly><noinclude> | |||
{{Documentation}} | |||
{{ | |||
| | |||
| | |||
}} | |||
</noinclude> | </noinclude> |
Latest revision as of 23:17, 20 January 2020
This is a template for displaying userboxes that uses flexboxes and divs to handle formatting in a more robust way.
Use
{{UserboxNew | User = <!-- Username to be displayed on top. --> | User-color = <!-- Color of the username displayed; default is black. --> | Border-color = <!-- Color of the border surrounding the container; default is #eeeeee. --> | Background-color = <!-- Color of the container's background; default is #fcfcfc. --> | Image = <!-- Image to be displayed at the top of the userbox. Format is "Image.ext". --> | Caption = <!-- Caption to be displayed under the image. --> | Caption-color = <!-- Color of the caption text. Default is #464B54. --> | Userboxes = <!-- Userbox templates listed in order from top to bottom. --> }}
Examples
TestAccount
IIWiki logo
MT | This user is primarily a "Modern Tech" roleplayer. |
This user is proud to be Australian. |
80s |
{{UserboxNew | User = TestAccount | User-color = black | Border-color = #eeeeee | Background-color = #fcfcfc | Image = IIWiki_Logo.png | Caption = IIWiki logo | Userboxes = {{Template:MTUBX}} {{AustralianUBX}} {{User_80s}} {{User_Ajax}} }}
Ozycaevias
Personal Coat of Arms
MT | This user is primarily a "Modern Tech" roleplayer. |
This user contributes using Firefox. |
This user chats on Discord as Ozycaevias. |
{{UserboxNew | User = Ozycaevias | User-color = DarkGreen | Border-color = #90EE90 | Background-color = #d6f6d6 | Image = Ozy_CoA.png | Caption = Personal Coat of Arms | Caption-color = #666666 | Userboxes = {{Template:MTUBX}} {{User_Firefox}} {{User_Discord|account=Ozycaevias}} {{User_Utah}} {{User_Ajax}} }}