FANDOM


Userboxes are small boxes designed to appear on user pages to quickly communicate information about a user. While some of them are made for informing another user of who you are or your country, others are only created for humorous purposes.


Introduction

Before making a userbox, you must ask yourself some questions:

  • Is it a useful userbox?
  • Will it offend anyone?
  • Will someone understand the joke? (in case of humorous boxes)
  • And more especially... DO I KNOW HOW TO CREATE IT?

If your answer to the fourth question was a loud "NO", then take a look at the next section.

How to make (and place) a userbox

Userboxes look awesome because they are made using Template:Userbox The template gives you also all instructions of how to make a userbox by using all steps that it gives you. Userbox then are placed on a straight line by using a table, like the ones that SimcountryWiki normally uses for infoboxes, which of course are different from the one's we're looking at here (for instance, that box you see on the right of a person's article, like this one).

Who is who?

With the code above, we can now analyze how the template works:

  • float is where we want the userboxes to appear. In my case, you can see that they're on the right because this command tells them to be there. Therefore, if you want them to the left, you must write float:left.
  • {{Userbox is where our userbox starts.
  • #AAF or #669933 is the hexadecimal notation for the combination of blue, red, and green values (RGB); basically, the HTML code. This defines the color of the border and of the background where the image usually goes.
  • On the other hand, #EEF is the color of the background of the userbox itself.
  • Then, you have the two remaining sections for the image of the userbox (or text, if you wish) and for the description of the userbox.
  • Concluding, we have brackets: }} is where the Userbox template ends and |} is the end of the whole script.

How to construct the box

There are a number of box types to select from when deciding to make a userbox. The most commonly used design is the "Standard box". It has one square shaped area on the left ("id") and a rectangular area on the right ("info").

For ease of use, userboxes are typically made using maker-templates that have a number of parameters.

Template Parameters Meaning Value type
border-c The border color of the userbox. CSS color value (#hex or color name)
border-s The border size of the userbox. Width in pixels
id-c The background color of the id box. CSS color value
id-s The font size of the id box. Size in PostScript points
id-fc The font color of the id box text. CSS color value
id-p The distance between border and content of id box. CSS padding width value. px, pt
id-lh The distance between text lines of id box. CSS relative line height/length value. em
info-c The background color of info box. CSS color value
info-s The font size of info box. Size in PostScript points
info-fc The font color of info box. CSS color value
info-p The distance between border and content of info box. CSS padding width value. px, pt
info-lh The distance between text lines of info box. CSS relative line height/length value. em
id This is the content of the id box. Free-form
info This is the content of info box. Free-form

The id and info boxes can include text, links, and images using the usual Wikipedia syntax. Generally, the id box will contain a few letters or a 43px image, while the info box will contain a sentence with a link or two.

Userbox types

List of userboxes with their code

Titles

List of userboxes showing titles, offices, memberships, and/or Simcountry Wiki staff.

Janitor This user is a janitor.
{{Userbox|#383838|#EEF|[[File:Janitor.jpg|40px]]|This user is a '''janitor'''.}}
Admin This user is a Simcountry Wiki Administrator
{{Userbox|#dcdcdc|#EEF|Admin|This user is a Simcountry Wiki Administrator}}
000000000000000 This user is the Prime Minister of a Country
{{Userbox|#202020|#EEF|[[File:000000000000000.jpg|35px]]|This user is the Prime Minister of a Country}}
Crown This user is the King of a Country
{{Userbox|#DEB887|#EEF|[[File:Crown.jpg|40px]]|This user is the King of a County}}
ImperialCrown This user owns an Empire in Simcountry.
{{Userbox |border-c=#000000 |border-s=1 |id-c=#FFFFFF |info-c=#D4AF37|info-s=10 |id=[[File:ImperialCrown.png|40px]]|This user owns an Empire in Simcountry.}}
Un logo This user is Member of a Organization.
{{Userbox|#383838|#EEF|[[File:Un logo.jpg|40px]]|This user is Member of a Organization.}}
Possible Flag for NATO This user is Member of a Federation.
{{Userbox|#383838|#EEF|[[File:Possible Flag for NATO.png|40px]]|This user is Member of a Federation.}}


You can create your own, the imagination is your limit!

External links

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.