Ad placeholder

Template:Item icon/doc: Difference between revisions

Jump to navigation Jump to search
m
(→‎Icon does not show up: add another case to troubleshoot)
Line 74: Line 74:
* Check that the name is provided correctly.
* Check that the name is provided correctly.
: Refer to the template you are using. [[Template:ItemIcon]] requires the name to be provided as the <code>name=</code> parameter, while other templates might use anonymous parameters.
: Refer to the template you are using. [[Template:ItemIcon]] requires the name to be provided as the <code>name=</code> parameter, while other templates might use anonymous parameters.
: Also make sure that the item is spelled correctly. '''ItemIcon''' is unaware of redirects, which can cause a missing icon link when the page link works fine.
* Check that the page exists
* Check that the page exists
: The page must exist and use [[Template:MiscItemPage]], [[Template:EquipmentPage]], [[Template:WeaponPage]], or [[Template:ItemIcon Insert]]. Technically, you could also insert directly into the <code>item_icon</code> Cargo table, but please don't do that without good reason.
: The page must exist and use [[Template:MiscItemPage]], [[Template:EquipmentPage]], [[Template:WeaponPage]], or [[Template:ItemIcon Insert]]. Technically, you could also insert directly into the <code>item_icon</code> Cargo table, but please don't do that without good reason.
: Also make sure that the item is spelled correctly. '''ItemIcon''' is unaware of redirects, which can cause a missing icon link when the page link works fine.
* Check that the parameters are passed to the page-generating templates
* Check that the parameters are passed to the page-generating templates
: '''ItemIcon''' pulls from the page-generating template parameters, particularly <code>rarity</code>, <code>image</code>, and <code>icon</code>. Either <code>image</code> or <code>icon</code> needs to be set for an icon to show.
: '''ItemIcon''' pulls from the page-generating template parameters, particularly <code>rarity</code>, <code>image</code>, and <code>icon</code>. Either <code>image</code> or <code>icon</code> needs to be set for an icon to show.

Navigation menu