Template:UserboxNew/doc: Difference between revisions

Jump to navigation Jump to search
No edit summary
No edit summary
Line 12: Line 12:
</pre>
</pre>


=== Example ===
=== Examples ===
<!-- TestUser userbox example. -->
{{UserboxNew
| User            = TestAccount
| User-color      = black
| Border-color    = #eeeeee
| Background-color = #fcfcfc
| Userboxes        = {{Template:MTUBX}} {{AustralianUBX}} {{User_80s}} {{User_Ajax}}
}}
<pre style="overflow:auto;">
<pre style="overflow:auto;">
{{UserboxNew
| User            = TestAccount
| User-color      = black
| Border-color    = #eeeeee
| Background-color = #fcfcfc
| Userboxes        = {{Template:MTUBX}} {{AustralianUBX}} {{User_80s}} {{User_Ajax}}
}}
</pre>
<br /><br />
<!-- Ozycaevias userbox example -->
{{UserboxNew
{{UserboxNew
| User            = Ozycaevias
| User            = Ozycaevias
| User-color      = DarkGreen
| User-color      = DarkGreen
| Border-color    = #eeeeee
| Border-color    = #90EE90
| Background-color = #fcfcfc
| Background-color = #d6f6d6
| Userboxes        = {{Template:MTUBX}} {{User_Firefox}} {{User_Discord|account=Ozycaevias}} {{User_Utah}} {{User_Ajax}}
| Userboxes        = {{Template:MTUBX}} {{User_Firefox}} {{User_Discord|account=Ozycaevias}} {{User_Utah}} {{User_Ajax}}
}}
}}
</pre>
<pre style="overflow:auto;">
 
{{UserboxNew
{{UserboxNew
| User            = Ozycaevias
| User            = Ozycaevias
| User-color      = DarkGreen
| User-color      = DarkGreen
| Border-color    = #eeeeee
| Border-color    = #90EE90
| Background-color = #fcfcfc
| Background-color = #d6f6d6
| Userboxes        = {{Template:MTUBX}} {{User_Firefox}} {{User_Discord|account=Ozycaevias}} {{User_Utah}} {{User_Ajax}}
| Userboxes        = {{Template:MTUBX}} {{User_Firefox}} {{User_Discord|account=Ozycaevias}} {{User_Utah}} {{User_Ajax}}
}}
}}
</pre>

Revision as of 20:55, 18 March 2019

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. -->
| Userboxes        =  <!-- Userbox templates listed in order from top to bottom. -->
}}

Examples

TestAccount
MTThis user is primarily a
"Modern Tech" roleplayer.
Flag of Australia.svgThis user is proud to be Australian.
 80s 
This user was born in the 80s.
Ajax Logo.png
This user is a member of Ajax.
{{UserboxNew
| User             = TestAccount
| User-color       = black
| Border-color     = #eeeeee
| Background-color = #fcfcfc
| Userboxes        = {{Template:MTUBX}} {{AustralianUBX}} {{User_80s}} {{User_Ajax}}
}}



Ozycaevias
MTThis user is primarily a
"Modern Tech" roleplayer.
Firefox logo, 2019.svgThis user contributes using Firefox.
Discord logo mark white.svgThis user chats on Discord as Ozycaevias.
Seal of Utah.svg
This user is from the U.S. State of Utah.
Ajax Logo.png
This user is a member of Ajax.
{{UserboxNew
| User             = Ozycaevias
| User-color       = DarkGreen
| Border-color     = #90EE90
| Background-color = #d6f6d6
| Userboxes        = {{Template:MTUBX}} {{User_Firefox}} {{User_Discord|account=Ozycaevias}} {{User_Utah}} {{User_Ajax}}
}}