C.Syde's Wiki

Please be sure to read the wiki's policies and guidelines when editing!

READ MORE

C.Syde's Wiki
Advertisement
C.Syde's Wiki
This page is semi-protected.

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

How to create a country userbox

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 C.Syde's Wiki, remember to add licensing information. Most flags are in the Public Domain ({{PD}}). See Help:Adding 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 colour
|id-fc    = id font colour
|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   = #ffffff
|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 focussing on: id, info, info-c, info-fc, border-c.

Code Explanation Example
id File link [[File:Flag of Spain.svg]]
info Displayed text This user is Spanish.
info-c Background colour #ffffff
info-fc Font colour #0000ff
border-c Border colour #000000

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 colours can be in simple text format (blue, orange, white), for more advanced colouring you need to use hex colours. See Help:Colours 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 or bureaucrat 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
Favourites: Colours · Food · Music
Game related: Games · Fan · Theories
Advertisement