Template:Item icon/doc: Difference between revisions
(Don't need name column) |
(add in-text example) |
||
Line 1: | Line 1: | ||
<includeonly>''This text is transcluded from [[Template:ItemIcon/doc]]''</includeonly> | <includeonly>''This text is transcluded from [[Template:ItemIcon/doc]].''</includeonly> | ||
This template fetches and displays an icon for an item. The information is uploaded using the standard item descriptions. Use [[Template:ItemIcon Insert]] to add a page that doesn't use [[Template:MiscItemPage]], [[Template:EquipmentPage]], or [[Template:WeaponPage]]. | This template fetches and displays an icon for an item. The information is uploaded using the standard item descriptions. Use [[Template:ItemIcon Insert]] to add a page that doesn't use [[Template:MiscItemPage]], [[Template:EquipmentPage]], or [[Template:WeaponPage]]. | ||
Line 43: | Line 43: | ||
{{ItemIcon/Example|The Red Knight's Final Stratagem|25|true|true}} | {{ItemIcon/Example|The Red Knight's Final Stratagem|25|true|true}} | ||
</table> | </table> | ||
=== In-text === | |||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin tristique ligula vitae turpis varius ullamcorper. Ut sagittis {{ItemIcon|name=Potion of Supreme Healing|size=25|show_rarity=true|show_name=true}} eu dolor accumsan venenatis. Maecenas sit amet ante at ligula efficitur fermentum. Suspendisse ac neque pretium nisi finibus euismod. Suspendisse varius ipsum lorem, vitae consectetur metus mattis sit amet. Proin ornare orci turpis, non blandit lorem scelerisque a. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. {{ItemIcon|name=Titanstring Bow|size=25|show_rarity=true|show_name=true}} in luctus arcu. Proin aliquet lorem quis lacus lacinia molestie. Suspendisse iaculis venenatis nibh, et dapibus augue varius a. | |||
== Related templates == | == Related templates == | ||
{{ItemIcon/Family}} | {{ItemIcon/Family}} |
Revision as of 09:58, 9 September 2023
This template fetches and displays an icon for an item. The information is uploaded using the standard item descriptions. Use Template:ItemIcon Insert to add a page that doesn't use Template:MiscItemPage, Template:EquipmentPage, or Template:WeaponPage.
{{ItemIcon |name=the name of the icon page |size=(optional) the size of the icon |show_name=(optional) Whether to show the name. Any value will show the name of the item as a link. Omit to hide it. |show_rarity=(optional) Whether to add a border and background to the icon according to the item's rarity. Omit to not show it. }}
Templates
Copy-ready template (no item name): {{ItemIcon|name=}}
Copy-ready template (with item name): {{ItemIcon|name=|show_name=true}}
Examples
Result | Size | Show name? | Rarity? | Code |
---|---|---|---|---|
Icon only | ||||
40 |
{{ItemIcon|name=Potion of Healing|size=40|show_name=|show_rarity=}} | |||
25 |
{{ItemIcon|name=Potion of Healing|size=25|show_name=|show_rarity=}} | |||
40 |
{{ItemIcon|name=Potion of Supreme Healing|size=40|show_name=|show_rarity=}} | |||
25 |
{{ItemIcon|name=Potion of Supreme Healing|size=25|show_name=|show_rarity=}} | |||
| 40 |
{{ItemIcon|name=The Red Knight's Final Stratagem|size=40|show_name=|show_rarity=}} | ||
| 25 |
{{ItemIcon|name=The Red Knight's Final Stratagem|size=25|show_name=|show_rarity=}} | ||
Linked icon | ||||
40 | true |
{{ItemIcon|name=Potion of Healing|size=40|show_name=true|show_rarity=}} | ||
25 | true |
{{ItemIcon|name=Potion of Healing|size=25|show_name=true|show_rarity=}} | ||
40 | true |
{{ItemIcon|name=Potion of Supreme Healing|size=40|show_name=true|show_rarity=}} | ||
25 | true |
{{ItemIcon|name=Potion of Supreme Healing|size=25|show_name=true|show_rarity=}} | ||
40 | true |
{{ItemIcon|name=The Red Knight's Final Stratagem|size=40|show_name=true|show_rarity=}} | ||
25 | true |
{{ItemIcon|name=The Red Knight's Final Stratagem|size=25|show_name=true|show_rarity=}} | ||
Rarity icon | ||||
40 | true | true |
{{ItemIcon|name=Potion of Healing|size=40|show_name=true|show_rarity=true}} | |
25 | true | true |
{{ItemIcon|name=Potion of Healing|size=25|show_name=true|show_rarity=true}} | |
40 | true | true |
{{ItemIcon|name=Potion of Supreme Healing|size=40|show_name=true|show_rarity=true}} | |
25 | true | true |
{{ItemIcon|name=Potion of Supreme Healing|size=25|show_name=true|show_rarity=true}} | |
40 | true | true |
{{ItemIcon|name=The Red Knight's Final Stratagem|size=40|show_name=true|show_rarity=true}} | |
25 | true | true |
{{ItemIcon|name=The Red Knight's Final Stratagem|size=25|show_name=true|show_rarity=true}} |
In-text
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin tristique ligula vitae turpis varius ullamcorper. Ut sagittis Potion of Supreme Healing eu dolor accumsan venenatis. Maecenas sit amet ante at ligula efficitur fermentum. Suspendisse ac neque pretium nisi finibus euismod. Suspendisse varius ipsum lorem, vitae consectetur metus mattis sit amet. Proin ornare orci turpis, non blandit lorem scelerisque a. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Titanstring Bow in luctus arcu. Proin aliquet lorem quis lacus lacinia molestie. Suspendisse iaculis venenatis nibh, et dapibus augue varius a.
Related templates
Transcluded from Template:ItemIcon/Family.
Template:ItemIcon
The base ItemIcon with all functionality.
Template:SmItemIcon
A version of ItemIcon that always has a image height of 25px and links the item.
Template:MdItemIcon
A version of ItemIcon that always has a image height of 30px and links the item.
Template:LgItemIcon
A version of ItemIcon that always has an image height of 40px and links the item.
Template:RarityItem
A version of ItemIcon that displays the rarity colors and links the item. Defaults to 25px but can be adjusted.
Template:SmRarityItem
A version of RarityItem that defaults to 20px instead of 25. For use in running texts.
Template:MdRarityItem
A version of RarityItem that defaults to 30px instead of 25. For use on Template:ActionPage, which specifically needs to be passed a template name.
Template:LgRarityItem
A version of RarityItem that defaults to 40px instead of 25. For use on various list pages.
Template:ItemIcon Insert
A utility template that inserts information into the "item_icon" table, which is where all information used to provide ItemIcon functionality is stored. This template should only need to be manually called for pages that are not items, but might want to have an icon associated with them, for example Food Supply Table 4.