Line 31: |
Line 31: |
| | | |
| * '''link=''link''''' | | * '''link=''link''''' |
− | ** Name of page (without square brackets) that item icon should link to. By default empty, meaning clicking on the icon does nothing. | + | ** Name of page (without square brackets) that item icon should link to. |
| + | ** By default, link is automatically set to ''item_name''. |
| + | ** Setting link to an empty value (<tt>|link=|</tt>) disables the image link (clicking on the item does nothing). |
| | | |
| * '''alt=''alt''''' | | * '''alt=''alt''''' |
− | ** Alt text for item icon. Default value is ''link'' (if non-empty) or ''item_name''. | + | ** Alt text for item icon. Default value is ''link'' or ''item_name''. |
| ** This is not normally directly displayed on the page, but may be used by screen readers or accessibility-aware browsers. | | ** This is not normally directly displayed on the page, but may be used by screen readers or accessibility-aware browsers. |
| + | ** Setting alt to an empty value (<tt>|alt=|</tt>) disables the alt text. Appropriate whenever image is immediately followed by item name to prevent name from being read twice in a row. |
| | | |
| ==Examples== | | ==Examples== |
| <pre>{{Quality|Parsnip|silver}}</pre> | | <pre>{{Quality|Parsnip|silver}}</pre> |
| Result: {{Quality|Parsnip|silver}} | | Result: {{Quality|Parsnip|silver}} |
− | <pre>{{Quality|Kale|Gold|32}}</pre> | + | <pre>{{Quality|Kale|Gold|32|link=Vegetables}}</pre> |
− | Result: {{Quality|Kale|Gold|32}} | + | Result: {{Quality|Kale|Gold|32|link=Vegetables}} |
− | <pre>{{Quality|Potato|size=32|alt=Potato}}</pre> | + | <pre>{{Quality|Potato|size=32|link=}}</pre> |
− | {{Quality|Potato|size=32|alt=Potato}} | + | Result: {{Quality|Potato|size=32|link=}} |
− | <pre>{{Quality|Milk|iridium|size=24|link=Milk}}</pre> | + | <pre>{{Quality|Milk|iridium|size=24|link=|alt=}}</pre> |
− | {{Quality|Milk|iridium|size=24|link=Milk}} | + | Result: {{Quality|Milk|iridium|size=24|link=|alt=}} |
| | | |
| ==Technical Details== | | ==Technical Details== |