Template:SpriteLink/doc
This templates creates a page link with an associated sprite image on the left side using the IDs from one of these templates:
- {{BlockSprite}}
- {{EnvSprite}}
- {{ItemSprite}}
- {{EntitySprite}}
The first parameter must specify one of the sprite templates mentioned above, the second one contains the desired link, which can optionally be named with the third parameter. The sprite can be customized with the parameter id
if it's not recognized correctly.
Examples
Code | Result |
---|---|
{{SpriteLink|MobSprite|Creeper}} |
Creeper |
{{SpriteLink|ItemSprite|Fish|id=cooked-fish}} |
Fish |
{{SpriteLink|BlockSprite|Stone}} |
Stone |
{{SpriteLink|EnvSprite|Sun|Shiny!}} |
Shiny! |
{{SpriteLink|EntitySprite|Player}} |
Player |
See also
- {{BiomeLink}}
- {{BlockLink}}
- {{EffectLink}}
- {{EntityLink}}
- {{EnvLink}}
- {{InvLink}}
- {{ItemLink}}
- Module:Sprite
This is the documentation page, it should be transcluded into the main template page. See Template:Doc for more information.