Template:Infobox Character/requires

This template displays an Items requirement with an amount. It is used to specify what a character requires to talk to them or to use their service(s). This also automatically categorizes the article under Category:Characters with a missing requirement when the specified article doesn't exist yet.

Parameters

 * 1) The pagename of an article from Category:Items or a subcategory (no parameter name but value is case sensitive, defaults to nothing displayed)
 * amount: A number (expression) representing the amount of said requirement (positive numeric, defaults to string "none of:")
 * nocat: Whether or not to suppress categorization in case the specified article doesn't exist (defaults to false, which means auto categorization).

Note: Eventhough the numbered (pagename) parameter is optional, it is required for anything to be displayed at all.

Examples
Common use includes both the filename and amount parameters, with the latter accepting a mathematical expression as well, so these all have the same result:


 * (10x) Kashes

The order in which the parameters are specified is not important, so these all have the same result:


 * (30x) Zlitos

In some cases, it may be desired to specify an alternate text for the link, which you can by using the magic word like this:


 * (500x) Money money money!

You may leave amount undefined (which would not raise any maintenance task, discuss) by not specifying any valid number expression, so these all have the same result (defaulting to "none of:"):


 * none of: Kashes

You may leave "requires" undefined (which would not raise any maintenance task) by not specifying any articlename, so these all have the same result (nothing displayed):

When a nonexisting articlename is specified (which would raise the Characters with a missing requirement maintenanance task), the link will just become red as usual:


 * (10x) Nonexisting Item

The nocat parameter may be used to suppress automatic categorization like this (any value will do):

This would render the same result as the last example above, but would not categorize under Category:Characters with a missing requirement. This feature works on any nonempty nonexisting articlename.