Template:Userbox

From eRepublik Official Wiki
Jump to: navigation, search
id info

[edit] [purge]

Documentation


Template {{Userbox}} has been created as a standardization tool to create userboxes to be used in the user pages, it will float on the right side of an article while having a smaller box on the left and bigger box on the right. If you want the other way around use Template {{Userbox-r}}.

Userboxes can be also added in a frame to hold all of them together by using template {{Userboxframe}}.

This template needs to be closed off with {{End}}

Creating userbox

To create a userbox, the following code is to be used:

{{Userbox
| border-s  = insert only number which px size of the border you want (insert 0 if no border is needed); default is 1
| border-c  = insert a color code (e.g. #DDD; white; #FF5600) for the color of the border; default is black
| id        = smaller box usually reserved for an image and the image is inserted as [[File:**name of the file**|***logo-size; suggested 40x40px***|****link if any****]]
| id-c      = insert a color code (e.g. #DDD; white; #FF5600) for the smaller box background color
| id-fc     = insert a color code (e.g. #DDD; white; #FF5600) for the smaller box font color; default is black
| info      = the bigger box where usually text is placed
| info-c    = insert a color code (e.g. #DDD; white; #FF5600) for the bigger box background color
| info-fc   = insert a color code (e.g. #DDD; white; #FF5600) for the bigger box font color; default is black
| info-align= align the bigger box; default is left
}}

Usage

{{Userbox
| border-s  = 
| border-c  = 
| id        = 
| id-c      = 
| id-fc     = 
| info      =
| info-c    = 
| info-fc   =
| info-align= 
}}


Samples

Wiki bureaucrat.png This is a userbox where big box is on the right and the text is aligned to the right.
{{Userbox
| border-s  = 2
| border-c  = #999
| id        = [[File:Wiki bureaucrat.png|40px]]
| id-c      = #DDD
| id-fc     = white
| info      = This is a userbox where big box is on the right and the text is aligned to the right.
| info-c    = white
| info-fc   = #FF5600
| info-align= right
}}


This is a userbox where big box is on the left and the text is aligned to the center. The image is also bigger. Exclamation.png
{{Userbox-r
| border-s  = 5
| border-c  = #FF5600
| id        = [[File:Exclamation.png|80px]]
| id-c      = #DDD
| id-fc     = white
| info      = '''This is a userbox where big box is on the left and the text is aligned to the center. The image is also bigger.'''
| info-c    = orange
| info-fc   = green
| info-align= center
}}


Quick userbox with fixed settings

This userbox has preset border size (1) and default font color (black).

{{Userbox|'''border color and background in the smaller box'''|'''the background color of the big box'''|'''content of the small box'''|'''content of the big box'''|}}

Wiki bureaucrat.png This is a text
{{Userbox|#FF5733|yellow|[[File:Wiki bureaucrat.png|40px|link=]]|This is a text|}}

Multiple userboxes in the frame

Users can also put multiple userboxes in a frame by using the following code:
{{Userboxframe|Name of the frame}} following the userboxes and ending with {{End}}

Please note that {{End}} template has to be in the new line.

Example:

These are userboxes in this frame
Clock and calendar.png This user has joined eRepublik Official Wiki 15 years, 2 months and 20 days ago.
Icon-Croatia.png This user lives in Croatia.
ERepublik wiki.png This user is awaiting for a
Mentor from the
Wiki Mentor Program
.
{{Userboxframe|These are userboxes in this frame}}{{Wiki user for|year=2009|month=1|day=9}}{{User country|Croatia}}{{Mentor Request}}
{{End}}

List of already existing user page templates