Template:Name/doc

From Timespinner Wiki
Jump to: navigation, search

Description[edit]

This template is used to place the picture of a named item next to the name, resizes the image to 24px wide, makes the item name a link if there's an available article of the same name, and lastly places the third parameter in parenthesis to signify quantity, relationship or any other secondary detail.

Image size can be adjusted by adding the parameter "size".

Usage[edit]

This template can be used by entering the following onto a relevant page.

{{name|''item name''|''amount''}}

Optional Parameters[edit]

All Optional Parameters if used together with "quantity" should be placed after the quantity value!

  • size: the image size to be displayed (example: size=48)
  • image: an alternative image to display (example: image=Fire Orb.png)
  • link: replace the name with a link to another page
  • class: alternative classes. Currently there is only inline to suppress line break (example: class=inline)

Examples[edit]

{{name|Fire Orb|30}}

When used the parameters are not identified by name, but by order. Example use of this template;

{{name|Fire Orb|30}}

Result: Fire Orb (30)

{{name|Blue Orb|3}}

Result: Blue Orb (3)

Optional parameter examples:

Unlocked at {{name|Blue Orb|Level 9|class=inline}}.

Result: Unlocked at Blue Orb (Level 9).

Size can be defined by using the named parameter "size":

{{name|Blue Orb|size=48}}

Result: Blue Orb

If the size parameter is used together with quantity it should be placed after the quantity number:

{{name|Blue Orb|3|size=48}}

Result: Blue Orb (3)

If the image parameter is used together with quantity it should be placed after the quantity number:

{{name|Blue Orb|3|image=Fire Orb.png}}

Result: Blue Orb (3)

If the link parameter is used together with quantity it should be placed after the quantity number:

{{name|Blue Orb|3|link=Fire Orb}}

Result: Fire Orb (3)

It's also possible to use multiple optional parameters:

{{name|Blue Orb|3|image=Fire Orb.png|size=64|class=inline}}.

Blue Orb (3).