Template:Resource link

Resource_link is a template creates links to resources (or goods) on the wiki and includes an icon for improved recognition. Reuses standardizes icon size templates for consistency.

The Template:rl is a shortcut to this template.

Overview
This template should be used liberally across the wiki, wherever the names of goods are mentioned in paragraphs or in tables. The accompanying icons will help skimming for expert players and orientation for new players.

Since the rendering of the template ends in a standard wikilink, you can append an s after the template to write the plural of the good if it isn't already plural. Just like a regular wiki link,  yields s, plural, with the s included in the link text.

For in-paragraph display, which is presumed to be the most common utilization, the default icon size is, or  from Template:ImgS. For use in tables where more spacing between lines doesn't hurt readability or aesthetics, it is recommended to use, which will increase the size of the icons to  (from Template:ImgM).

Use your judgment when writing content. The first mention of a resource in a paragraph should probably be done with this template. But you may find that paragraphs densely mentioning resources become harder not easier to read. You may decide that after the first mention of the resource, it's better for subsequent references to be in plain text or with this template but without an icon.

Parameters
Only the first parameter,  is required, and it must be spelled correctly to match the in-game name of the resource or good. The other parameter is optional but improve this template's applicability to more instances of its use. You may include or omit any parameters' names.

Errors
When the template is called without a resource name, the template reminds you that it is required.

Example:

Yields:



When providing the name of a good, it is important that it is spelled correctly, including any punctuation or spaces. Otherwise, you will see an error message:

Example:

Broken:



Fixed:

Additional Examples and Errors
Here are ways to call the template and the expected result:

The following are generated by calling the template.

1  yields:

2.  yields:

3.  yields:

4.  yields:

5.  yields:

The following are additional incorrect usages of the template:

6. With no resource but an icon size,  yields:



Finally, providing an icon size that is not recognized does not break the template. There is a default icon size instead of returning an error.

9. With a valid resource but invalid icon size,  yields: