Changes

Jump to navigation Jump to search
2,954 bytes added ,  10:05, 13 March 2018
m
1 revision imported: Resources from GCPedia
{{shortcut-multi|UBX}}
{| style="float:right; background:white; border: 1px solid grey;"
|-
|{{userbox|olivedrab|palegreen|[[image:gnome.png|40px]]|A userbox is a small rectangular box that looks like this. Below are more examples.}}
|-
|{{userbox2|blue|lightcyan|[[image:Crystal Clear kdm user male.png|40px]]|Userboxes can come in many different styles and colours.}}
|-
|{{userbox3|pink|mistyrose|salmon|[[image:Crystal Clear kdm user female.png|40px]]|Userboxes can be custom made by users (like these) or you may use pre-made ones from the [[GCPEDIA:Userboxes/Gallery|Gallery]].}}
|}

A '''userbox''' (commonly abbreviated as '''UBX''') is a small coloured box (see examples to the right) designed to appear only on a GCpedian's [[Special:MyPage|user page]]. Userboxes communicate something about the user, in order to directly (or even indirectly) help GCpedians collaborate more effectively on articles.

==Usage==
To place a userbox on your user page:
#Look in the [[GCPEDIA:Userboxes#Gallery|gallery]] and choose a userbox that you want
#Copy the code of the desired userbox (including the wavy brackets on both sides)
#Paste the code somewhere on your userpage and save the page

'''Note:''' Some userboxes such as {{tl|useredits}} and {{tl|User GCPEDIAN for}} require you to add additional information (called a parameter). Please see the documentation in the template you want to use for more information.

The templates {{tl|Userboxtop}}, {{tl|Userboxbreak}}, and {{tl|Userboxbreak}} can be used create a simple column for arranging all of your userboxes, neat and tidy.

== Building your own ==
To make a userbox you need to create a new page in the [[GCPEDIA:Template namespace|template namespace]]. You will be using one of three templates that already exist: {{tl|userbox}} (which has ''no'' borders), {{tl|userbox2}}, or {{tl|userbox3}} (both of these have borders). Documentation on how to use these templates can be found on their respective pages. Don't forget to add new userboxes to the [[GCPEDIA:Userboxes/Gallery|gallery]] by going to [[GCpedia:Userboxes/Gallery]] (editing this page directly will not allow you to add Userboxes to the gallery).

=== Example ===
If you want to make a userbox called "UBXexample" you would put the URL in the box below into your address bar, to create that page:
<pre>http://www.gcpedia.gc.ca/wiki/Template:UBXexample</pre>

To create a userbox that is white on the left, blue on the right, with a picture of a gnome, and the text "This is a UBXexample", include the following generic code on a page:
<pre>{{userbox2|gray|lightblue|[[Image:gnome.png|30px]]|This is a UBXexample.}}</pre>

When you save the page, the result will be a template that looks like this: {{userbox2|gray|lightblue|[[Image:gnome.png|30px]]|This is a UBXexample.}}

==Gallery==
{{GCPEDIA:Userboxes/Gallery}}

[[Category:Userboxes|*Userboxes]]
[[Category:WikiProject Userboxes| ]]
[[Fr:GCPEDIA:Les cases utilisateurs]]

Navigation menu

GCwiki