Jump to: navigation, search

Template:EnvSprite/doc: Difference between revisions

m (1 revision)
 
(updated documentation)
 
Line 1: Line 1:
{{doc/start}}
{{doc/start}}
{{lua|Sprite}}
{{lua|Sprite|data=EnvSprite|data2=EnvSprite/IDs}}
This template displays an environment sprite from the following sprite sheet:
This template displays an environment sprite from the following sprite sheet:


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


== Examples ==
== Examples ==
Line 20: Line 22:
|}
|}


== Full list ==
Here is a full list of environments:
Here is a full list of environments:
 
{{#invoke: Sprite | doc | EnvSprite }}
{| class="wikitable"
| {{EnvSprite|map}}                  || <code>map</code>
| {{EnvSprite|biomes}}              || <code>biomes</code>
| {{EnvSprite|altitude}}            || <code>altitude</code>
| {{EnvSprite|light}}                || <code>light</code>
|-
| {{EnvSprite|chunks}}              || <code>chunks</code>
| {{EnvSprite|sun}}                  || <code>sun</code>
| {{EnvSprite|moon}}                || <code>moon</code>
| {{EnvSprite|clouds}}              || <code>clouds</code>
|-
| {{EnvSprite|day-night}}            || <code>day-night</code>
| {{EnvSprite|the-overworld}}        || <code>the-overworld</code>
| {{EnvSprite|the-nether}}          || <code>the-nether</code>
| {{EnvSprite|far-lands}}            || <code>far-lands</code>
|-
| {{EnvSprite|sky-dimension}}        || <code>sky-dimension</code>
| {{EnvSprite|the-void}}            || <code>the-void</code>
| {{EnvSprite|cavern}}              || <code>cavern</code>
| {{EnvSprite|dungeon}}              || <code>dungeon</code>
|-
| {{EnvSprite|trees}}                || <code>trees</code>
| {{EnvSprite|blocks}}              || <code>blocks</code>
| {{EnvSprite|fluids}}              || <code>fluids</code>
| {{EnvSprite|items}}                || <code>items</code>
|-
| {{EnvSprite|the-player}}          || <code>the-player</code>
| {{EnvSprite|mobs}}                || <code>mobs</code>
| {{EnvSprite|music}}                || <code>music</code>
| {{EnvSprite|rain}}                || <code>rain</code>
|-
| {{EnvSprite|snowfall}}            || <code>snowfall</code>
| {{EnvSprite|thunderstorm}}        || <code>thunderstorm</code>
| {{EnvSprite|stronghold}}          || <code>stronghold</code>
| {{EnvSprite|huge-mushrooms}}      || <code>huge-mushrooms</code>
|-
| {{EnvSprite|portal}}              || <code>portal</code><br /><code>nether-portal</code>
| {{EnvSprite|nether-fortress}}      || <code>nether-fortress</code>
| {{EnvSprite|abandoned-mine-shaft}} || <code>abandoned-mine-shaft</code>
| {{EnvSprite|renewable-resources}}  || <code>renewable-resources</code>
|-
| {{EnvSprite|npc-villages}}        || <code>npc-villages</code>
| {{EnvSprite|the-end}}              || <code>the-end</code>
| {{EnvSprite|entities}}            || <code>entities</code>
| {{EnvSprite|superflat}}            || <code>superflat</code>
|-
| {{EnvSprite|default-world-type}}  || <code>default-world-type</code>
| {{EnvSprite|large-biomes}}        || <code>large-biomes</code>
| {{EnvSprite|desert-temple}}        || <code>desert-temple</code>
| {{EnvSprite|jungle-temple}}        || <code>jungle-temple</code>
|-
| {{EnvSprite|desert-well}}          || <code>desert-well</code>
| {{EnvSprite|ravine}}              || <code>ravine</code>
| {{EnvSprite|obsidian-pillar}}      || <code>obsidian-pillar</code>
| {{EnvSprite|swamp-hut}}            || <code>swamp-hut</code>
|-
| {{EnvSprite|end-portal}}          || <code>end-portal</code>
| {{EnvSprite|nether-reactor}}      || <code>reactor</code><br /><code>nether-reactor</code>
| {{EnvSprite}}                      || <code>default</code>
|}


== See also ==
== See also ==
Line 87: Line 30:
* {{tl|Environment}} (navbox)
* {{tl|Environment}} (navbox)
{{Sprite see also}}
{{Sprite see also}}
 
{{doc/end}}
{{doc/end}}<noinclude>
<includeonly>
[[fr:Modèle:EnvSprite/doc]]
<!-- Template categories/interwiki -->
[[nl:Template:EnvSprite/doc]]
[[Category:Sprite templates]]
</includeonly>
<noinclude>
<!-- Documentation categories/interwiki -->
</noinclude>
</noinclude>

Latest revision as of 20:12, 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 an environment 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
{{EnvSprite|sun}}
{{EnvSprite|moon}}
{{EnvSprite|day-night}}
{{EnvSprite|map}}

Full list

Here is a full list of environments: 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.