User:Jean-francois.royer/sandbox

From wiki
Jump to navigation Jump to search

A place where to store things.

Language of content

Source: GCTools Help Centre

The <multilang> tag is used for selective text display depending on user language settings. The language of the content is dependent on the user's language preferences. Small parts of texts like in templates (where you are forced to use exactly the same template name) can efficiently and easily be made multilingual using the <multilang> tag.

<multilang> 
@en| 
English Text Section 
@fr| 
French Text Section 
</multilang>

Using the <multilang> tag

Use the language setting of your page to toggle the language selection.

If you see this, your language settings are set in English.



Using a userbox

To make a userbox you need to create a new page in the template namespace. You will be using one of three templates that already exist: {{userbox}} (which has no borders), {{userbox2}}, or {{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 gallery by going to GCpedia:Userboxes/Gallery.

Examples

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:

http://www.gcpedia.gc.ca/wiki/Template:UBXexample

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:

{{userbox2|gray|lightblue|[[Image:gnome.png|40px]]|This is a UBXexample.}}

When you save the page, the result will be a template that looks like this:

Gnome.png This is a UBXexample.


Other examples:

{{userbox|red|white|[[image:gnome.png|40px]]|A userbox is a small rectangular box that looks like this.}}

Looks like:

Gnome.png A userbox is a small rectangular box that looks like this.
{{userbox2|red|white|[[image:gnome.png|40px]]|A userbox is a small rectangular box that looks like this.}}

Looks like:

Gnome.png A userbox is a small rectangular box that looks like this.
{{userbox3|red|white|gold|[[image:gnome.png|40px]]|A userbox is a small rectangular box that looks like this.}}

Looks like:

Gnome.png A userbox is a small rectangular box that looks like this.


Testing:

Caf-emblem.png This person works for National Defence.
Caf-emblem.png This person works for National Defence.
Caf-emblem.png Cette personne travaille pour la Défense nationale.
Caf-emblem.png Cette personne travaille pour la Défense nationale.



You should see nothing below this line.