The Sims Wiki:Userboxes/Country

From The Sims Wiki, a collaborative database for The Sims series
Jump to navigation Jump to search

Country userboxes are a great way of letting people know where you're from. To include one on your userpage, simply add it like you would with a normal userbox. You need to check if a userbox for your country already exists; if not, you can create it.

List of existing country userboxes[edit source]

How to create a country userbox[edit source]

If you are certain that a userbox for your country has not been made yet, follow these steps:


1. Find the flag of your country

Search Wikimedia Commons for your flag. A typical search query would by 'File:Flag of -YOUR COUNTRY-' When you find the flag it will probably be in .SVG format, this is a good thing. Be sure to 'Save Link As...' and NOT 'Save Image As...' since we want the .SVG file. Upload it to The Sims Wiki, remember to add licensing information. Most flags are in the Public Domain ({{PD}}). See Help:Add images for help.


2. Create a new template

Replace '???' with the name of your country (eg. spain or england). Remember to include a space between 'Userbox' and your country.


3. Copy the following text to the new template page and edit accordingly
{{Userbox
  |id       = IMAGE
  |id-c     = id background color
  |id-fc    = id font color
  |id-s     = id text size
  |id-p     = 0
  |id-lh    = id line height 
  |id-op    = id other parameter (CSS)
  |id-w     = id box width
  |id-h     = id box height
  |info     = '''This user is COUNTRY.'''
  |info-c   = white
  |info-fc  = #C60B1E
  |info-s   = 8
  |info-p   = info padding (distance between cell contents & cell border)
  |info-lh  = info line height (or distance in between text lines)
  |info-op  = info other (CSS) parameter(s)
  |border-c = #FFC400
  |border-s = 2
}}<includeonly>{{#ifeq:{{NAMESPACE}}|User|[[Category:Users/COUNTRY]]|<!--Not in User: namespace-->}}</includeonly><noinclude>[[Category:Country userboxes|COUNTRY]]</noinclude>

These lines are the ones we're focusing on: id, info, info-c, info-fc, border-c.

Code Explanation Example
id Image link [[File:Flag spain.svg]]
info Displayed text This user is Spanish.
info-c Background color white
info-fc Font color blue
border-c Border color black

SVG files are usually very big, so we need to scale it down by adding width to the image. Most flags are good around 80-100px depending on their ratio. Short flags like the american flag need 100px while most european flags are good at 80px.

Basic colors can be in simple text format (blue, orange, white), for more advanced coloring you need to use hex colors. See Help:Colors for help.

At the bottom of the text, you will see the 'includeonly' line:

<includeonly>{{#ifeq:{{NAMESPACE}}|User|[[Category:Users/COUNTRY]]|<!--Not in User: namespace-->}}</includeonly><noinclude>[[Category:Country userboxes|COUNTRY]]</noinclude>

Here you need to replace 'COUNTRY' with your country, eg. Spain, in two places.


4. You're done

Click 'Save page' and test it on your userpage. If it doesn't work, try editing it and find the error. If it all goes wrong, contact an active administrator on his or her talk page.

Userboxes
Personal info: Wiki-related · Zodiac · Aspirations · Traits · Country · Babel / Language · Appearance · Beliefs · Operating Systems · Web Browsers · Other sites · Misc. personal info
Favorites: Colors · Food · Music
Game related: Games · Fan · Theories