Jump to: navigation, search

Template:EffectSprite/doc: Difference between revisions

m (1 revision)
 
(Updated documentation)
 
Line 1: Line 1:
{{doc/start}}
{{doc/start}}
{{lua|Sprite}}
{{lua|Sprite|data=EffectSprite|data2=EffectSprite/IDs}}
This template displays a potion effect sprite from the following sprite sheet:
This template displays a potion effect sprite from the following sprite sheet:


{{Sprite/Preview|EffectsCSS}}
[[File:EffectsCSS.png|thumb|The spritesheet.]]
 
{{Sprite/Parameters}}


== Examples ==
== Examples ==
Line 14: Line 16:
|-
|-
| <code><nowiki>{{EffectSprite|hunger}}</nowiki></code> || {{EffectSprite|hunger}}
| <code><nowiki>{{EffectSprite|hunger}}</nowiki></code> || {{EffectSprite|hunger}}
|-
| <code><nowiki>{{EffectSprite|1}}</nowiki></code> || {{EffectSprite|1}}
|}
|}


== Full list ==


Here is a full list of effects:
Here is a full list of effects:


* {{EffectSprite|speed}} <code>speed</code>
{{#invoke: Sprite | doc | EffectSprite }}
* {{EffectSprite|slow}} <code>slow</code>
* {{EffectSprite|haste}} <code>haste</code>
* {{EffectSprite|fatigue}} <code>fatigue</code>
* {{EffectSprite|strength}} <code>strength</code>
* {{EffectSprite|weakness}} <code>weakness</code>
* {{EffectSprite|poison}} <code>poison</code>
* {{EffectSprite|regeneration}} <code>regeneration</code>
* {{EffectSprite|invisibility}} <code>invisibility</code>
* {{EffectSprite|hunger}} <code>hunger</code>
* {{EffectSprite|jump}} <code>jump</code>
* {{EffectSprite|nausea}} <code>nausea</code>
* {{EffectSprite|nightvision}} <code>nightvision</code>
* {{EffectSprite|blindness}} <code>blindness</code>
* {{EffectSprite|defense}} <code>defense</code>
* {{EffectSprite|fireresistance}} <code>fireresistance</code>
* {{EffectSprite|waterbreathing}} <code>waterbreathing</code>
* {{EffectSprite|wither}} <code>wither</code>
* {{EffectSprite|healthboost}} <code>healthboost</code>
* {{EffectSprite|absorption}} <code>absorption</code>
<br>
* {{EffectSprite|particle-speed}} <code>particle-speed</code>
* {{EffectSprite|particle-slow}} <code>particle-slow</code>
* {{EffectSprite|particle-haste}} <code>particle-haste</code>
* {{EffectSprite|particle-fatigue}} <code>particle-fatigue</code>
* {{EffectSprite|particle-strength}} <code>particle-strength</code>
* {{EffectSprite|particle-weakness}} <code>particle-weakness</code>
* {{EffectSprite|particle-poison}} <code>particle-poison</code>
* {{EffectSprite|particle-regeneration}} <code>particle-regeneration</code>
* {{EffectSprite|particle-invisibility}} <code>particle-invisibility</code>
* {{EffectSprite|particle-hunger}} <code>particle-hunger</code>
* {{EffectSprite|particle-jump}} <code>particle-jump</code>
* {{EffectSprite|particle-nausea}} <code>particle-nausea</code>
* {{EffectSprite|particle-nightvision}} <code>particle-nightvision</code>
* {{EffectSprite|particle-blindness}} <code>particle-blindness</code>
* {{EffectSprite|particle-defense}} <code>particle-defense</code>
* {{EffectSprite|particle-fireresistance}} <code>particle-resistance</code>
* {{EffectSprite|particle-waterbreathing}} <code>particle-waterbreathing</code>
* {{EffectSprite|particle-wither}} <code>particle-wither</code>
* {{EffectSprite|particle-healthboost}} <code>particle-healthboost</code>
* {{EffectSprite|particle-absorption}} <code>particle-absorption</code>
* {{EffectSprite|particle-health}} <code>particle-health</code>
* {{EffectSprite|particle-harm}} <code>particle-harm</code>


== See also ==
== See also ==
* {{tl|EffectLink}}
* {{tl|EffectLink}}
{{Sprite see also}}
{{Sprite see also}}
{{doc/end}}
{{doc/end}}

Latest revision as of 20:14, 19 May 2017

Template-info.png Documentation
Lua logo.svg
This template uses Module:Sprite, a script written in the Lua programming language. Please see wp:Lua and mw:Extension:Scribunto to learn more about Lua.

This template displays a potion effect sprite from the following sprite sheet:

The spritesheet.

Parameters

Name Usage
{{{1}}} Sets the sprite. Spaces within this parameter are replaced with dashes and letters are made lowercase.
Value may be a name or a number, though names are preferred
{{{link}}} Sets the link for the sprite and the optional text. If unset or set to none, no link is added
Supports both internal and external links
{{{text}}} If set, the value is displayed as text after the sprite.

Examples

Code Result
{{EffectSprite|slow}}
{{EffectSprite|hunger}}

Full list

Here is a full list of effects:

Lua error in Module:Sprite at line 252: table index is nil.

See also

This is the documentation page, it should be transcluded into the main template page. See Template:Doc for more information.



Cookies help us deliver our services. By using our services, you agree to our use of cookies.