Board Thread:Support Requests - Getting Technical/@comment-26437440-20151220210954/@comment-4731443-20151220215310

First example will display a default icon (here, icon.png) unless a different file name is specified for the icon parameter:

Example:

Second example has a collection of predetermined icons that can be used by specifying their name in the template call. It also displays a default icon, but you could make it display nothing instead:

Example:

The main benefit of example 1 is you can use any image whatsoever without changing the template. Its main drawback is that your contributors can use any image whatsoever even if it looks terrible resized as an icon.

The second example is more useful for a specific set of icons that will be used frequently, such as icons taken directly from the game, where you know that your contributors won't need any other icons. It's arguably more user-friendly since they can just type one word instead of a file name.

I've set both to 14 pixels as that is what I use on my wiki for icons used within text and it seems to display decently, but you'll want to adjust that depending on where your icons are displayed. You could also make the icon size a second parameter that could be adjusted for each individual case.