Template:Name

From Fields of Mistria Wiki
Jump to navigation Jump to search


Description

This template is used to place the picture of a named item next to the name, resizes the image to 30px 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".

View or edit this documentation

Template:Name/styles.css

Use

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

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

Optional Parameters

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)
  • 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

{{name|Complete Breakfast|30}}

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

{{name|Corn|30}}

Result:

Corn.png Corn (30)



{{name|Blackberry Jam|3}}

Result:

Blackberry Jam.png Blackberry Jam (3)



Optional parameter examples:

Crafting recipe unlocked at {{name|Mining|Level 9|class=inline}}.

Result: Crafting recipe unlocked at

Cooking craft icon.png Cooking (Level 9)


.

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

{{name|Apple|size=48}}

Result:

Apple.png Apple



{{name|Watermelon|3|size=48}}

Result:

Watermelon.png Watermelon (3)



{{name|Corn|3|link=Grape}}

Result:

Corn.png Grape (3)



Template:Addlanglinks