Difference between revisions of "User:Anonymax/Sandbox"

From CWCki
Jump to navigation Jump to search
m
Line 10: Line 10:
|info-bg-col= #003399
|info-bg-col= #003399
|info-border-col = #003399
|info-border-col = #003399
|id= [[Image:Uk-flag.png|50px|Medal of Merit]]
|id= [[Image:Uk-flag.png|55px|Medal of Merit]]
|info= '''Britfag''': I say! This user is a Britfag who, by order of The Queen (God Save Her), is required to use unnecessary vowels. Jolly good!}}
|info= '''Britfag''': I say! This user is a Britfag who, by order of The Queen (God Save Her), is required to use unnecessary vowels. Jolly good!}}
= Help Stuff =
= Help Stuff =
== Templates ==
== Templates ==

Revision as of 15:10, 29 May 2010

Userboxes

Nationality

Britfag

Medal of Merit Britfag: I say! This user is a Britfag who, by order of The Queen (God Save Her), is required to use unnecessary vowels. Jolly good!

Help Stuff

Templates

What are they?

Templates are a simple way to insert content in to an article without having to use a lot of Wiki markup. They are most often used for complex things like navigation boxes at the foot of articles, of fancy infoboxes.

  • Templates are stored in the Template namespace e.g. Template:Captain's Log
  • When a template is updated, the changes are rolled out everywhere the template is used
  • They can make use of variables, to insert information in specified places in the template.

How do I use one?

Inserting a template in to an article varies according to the template being used.

  • For a simple template without any parameters, you use the code {{templatename}}
  • If a template has named parameters, you use the code {{templatename |paramname=Some |paramname2=Content}}
    • Spaces are not needed between parameters, but can help make the template more readable to editors
    • In the template code, named parameters appear as {{{varname}}}. Text you enter for that parameter will be inserted in its place.
  • If the template doesn't have named parameters, any text placed after a vertical pipe | is treated as a numbered parameter: {{templatename|Some|Content}}
    • In the template code, numbered parameters appear as {{{1}}}. Each subsequent pipe adds a new numbered parameter.

Be careful with pipes

Any vertical pipes placed within the template braces {{ }} will be interpreted as the start of a new parameter. If you need to insert a pipe as part of a parameter's content, use: {{!}} (Usage)