Template:InvSprite/doc: Difference between revisions

Created page with "{{documentation header}} {{lua|Sprite2|data=InvSprite|data2=InvSprite/IDs}} thumb|The spritesheet. This template displays an inventory image. {{subst:..."
 
Line 12: Line 12:
|-
|-
| {{p|1}}
| {{p|1}}
| Sets the sprite. Spaces within this parameter are replaced with dashes and letters are made lowercase.<br>Value may be a name or a number, though names are preferred
| Sets the image.
|-
|-
| {{p|link}}
| {{p|link}}
| Sets the link for the sprite and the optional text. If unset or set to <code>none</code>, no link is added<br>Supports both internal and external links<br>
| Sets the link for the image and the optional text. If unset or set to <code>none</code>, no link is added<br>Supports both internal and external links<br>
|-
|-
| {{p|text}}
| {{p|text}}
| If set, the value is displayed as text after the sprite.
| If set, the value is displayed as text after the image.
|}
|}