Jump to: navigation, search

Template:BlockSprite/doc: Difference between revisions

m (1 revision)
 
m (Updated documentation)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{doc/start}}
{{doc/start}}
{{lua|Sprite}}
{{lua|Sprite|data=BlockSprite|data2=BlockSprite/IDs}}
This template displays a block sprite from the following sprite sheet:
This template displays a block sprite from the following sprite sheet:


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


== Examples ==
== Examples ==
{| class="wikitable"
{| class="wikitable"
! Code
! Code
Line 18: Line 19:
|-
|-
| <code><nowiki>{{BlockSprite|grass-block}}</nowiki></code> || {{BlockSprite|grass-block}}
| <code><nowiki>{{BlockSprite|grass-block}}</nowiki></code> || {{BlockSprite|grass-block}}
|-
| <code><nowiki>{{BlockSprite|46}}</nowiki></code> || {{BlockSprite|46}}
|}
|}


== Full List ==
== Full List ==
Here is a full list of blocks:
Here is a full list of blocks:
 
{{#invoke: Sprite | doc | BlockSprite }}
<div style="float: left; min-width: 225px; width: 25%">
{{BlockSprite/entry|grass-block-top}}
{{BlockSprite/entry|stone|monster-egg}}
{{BlockSprite/entry|dirt}}
{{BlockSprite/entry|podzol-top}}
{{BlockSprite/entry|podzol|podzol-side}}
{{BlockSprite/entry|grass-block-side|grass-block}}
{{BlockSprite/entry|wooden-planks|wood-plank}}
{{BlockSprite/entry|all-wooden-planks}}
{{BlockSprite/entry|double-slab-side}}
{{BlockSprite/entry|stone-slab-top}}
{{BlockSprite/entry|brick|bricks}}
{{BlockSprite/entry|tnt}}
{{BlockSprite/entry|tnt-top}}
{{BlockSprite/entry|tnt-bottom}}
{{BlockSprite/entry|spider-web|cobweb|web}}
{{BlockSprite/entry|red-flower|rose}}
{{BlockSprite/entry|yellow-flower|dandelion}}
{{BlockSprite/entry|poppy}}
{{BlockSprite/entry|blue-orchid}}
{{BlockSprite/entry|allium}}
{{BlockSprite/entry|azure-bluet}}
{{BlockSprite/entry|red-tulip}}
{{BlockSprite/entry|orange-tulip}}
{{BlockSprite/entry|white-tulip}}
{{BlockSprite/entry|pink-tulip}}
{{BlockSprite/entry|oxeye-daisy}}
{{BlockSprite/entry|sunflower}}
{{BlockSprite/entry|lilac}}
{{BlockSprite/entry|rose-bush}}
{{BlockSprite/entry|peony|paeonia}}
{{BlockSprite/entry|sapling|saplings}}
{{BlockSprite/entry|brick-slab}}
{{BlockSprite/entry|sandstone-slab}}
{{BlockSprite/entry|cobblestone-slab}}
{{BlockSprite/entry|bed}}
{{BlockSprite/entry|doors}}
{{BlockSprite/entry|pressure-plates}}
{{BlockSprite/entry|wood-pressure-plate|wooden-pressure-plate}}
{{BlockSprite/entry|stairs}}
{{BlockSprite/entry|sandstone-stairs}}
{{BlockSprite/entry|cobblestone-stairs}}
{{BlockSprite/entry|stone-brick-stairs}}
{{BlockSprite/entry|brick-stairs}}
{{BlockSprite/entry|weighted-pressure-plates}}
{{BlockSprite/entry|cobblestone}}
{{BlockSprite/entry|bedrock}}
{{BlockSprite/entry|sand}}
{{BlockSprite/entry|red-sand}}
{{BlockSprite/entry|gravel}}
{{BlockSprite/entry|wood}}
{{BlockSprite/entry|wood-top}}
{{BlockSprite/entry|block-of-iron|iron-block}}
{{BlockSprite/entry|block-of-gold|gold-block}}
{{BlockSprite/entry|block-of-diamond|diamond-block}}
{{BlockSprite/entry|block-of-emerald|emerald-block}}
{{BlockSprite/entry|block-of-redstone|redstone-block}}
{{BlockSprite/entry|red-mushroom}}
{{BlockSprite/entry|brown-mushroom}}
{{BlockSprite/entry|sapling-jungle}}
{{BlockSprite/entry|air}}
{{BlockSprite/entry|stone-brick-slab}}
{{BlockSprite/entry|wooden-slab}}
{{BlockSprite/entry|stone-slab}}
{{BlockSprite/entry|cake}}
{{BlockSprite/entry|portal|nether-portal}}
{{BlockSprite/entry|fence}}
{{BlockSprite/entry|nether-brick-fence}}
{{BlockSprite/entry|nether-brick-slab}}
{{BlockSprite/entry|nether-brick-stairs}}
{{BlockSprite/entry|gold-ore}}
{{BlockSprite/entry|iron-ore}}
{{BlockSprite/entry|coal-ore}}
{{BlockSprite/entry|bookshelf}}
{{BlockSprite/entry|moss-stone}}
{{BlockSprite/entry|obsidian}}
{{BlockSprite/entry|dead-shrub-inv|dead-bush-inv}}
{{BlockSprite/entry|tall-grass|grass}}
{{BlockSprite/entry|double-tallgrass}}
{{BlockSprite/entry|beacon-inside}}
{{BlockSprite/entry|crafting-table-top}}
{{BlockSprite/entry|furnace}}
{{BlockSprite/entry|furnace-side}}
{{BlockSprite/entry|dispenser}}
{{BlockSprite/entry|dropper}}
{{BlockSprite/entry|redstone-torch-on-alt|redstone-torch}}
{{BlockSprite/entry|redstone-torch-off-alt}}
{{BlockSprite/entry|redstone-repeater|repeater}}
{{BlockSprite/entry|button}}
{{BlockSprite/entry|torch-alt}}
{{BlockSprite/entry|lever-alt}}
{{BlockSprite/entry|gear}}
{{BlockSprite/entry|redstone-comparator}}
{{BlockSprite/entry|sponge}}
{{BlockSprite/entry|glass}}
{{BlockSprite/entry|diamond-ore}}
{{BlockSprite/entry|redstone-ore}}
{{BlockSprite/entry|leaves}}
{{BlockSprite/entry|leaves-fast}}
{{BlockSprite/entry|stone-brick}}
{{BlockSprite/entry|dead-shrub|dead-bush}}
{{BlockSprite/entry|fern|shrub}}
</div>
 
<div style="float: left; min-width: 225px; width: 25%">
{{BlockSprite/entry|large-fern}}
{{BlockSprite/entry|daylight-sensor-on}}
{{BlockSprite/entry|daylight-sensor-off}}
{{BlockSprite/entry|crafting-table-side}}
{{BlockSprite/entry|crafting-table}}
{{BlockSprite/entry|furnace-active}}
{{BlockSprite/entry|furnace-bottom}}
{{BlockSprite/entry|sapling-spruce}}
{{BlockSprite/entry|flowers}}
{{BlockSprite/entry|mushrooms}}
{{BlockSprite/entry|sign}}
{{BlockSprite/entry|fire}}
{{BlockSprite/entry|tulips}}
{{BlockSprite/entry|lava}}
{{BlockSprite/entry|water}}
{{BlockSprite/entry|wool|carpet}}
{{BlockSprite/entry|monster-spawner}}
{{BlockSprite/entry|snow|snow-(cover)|snow-block}}
{{BlockSprite/entry|ice}}
{{BlockSprite/entry|packed-ice}}
{{BlockSprite/entry|snow-side}}
{{BlockSprite/entry|cactus-top}}
{{BlockSprite/entry|cactus-side|cactus}}
{{BlockSprite/entry|cactus-cut}}
{{BlockSprite/entry|clay|clay-(block)}}
{{BlockSprite/entry|sugar-cane}}
{{BlockSprite/entry|note-block|jukebox-side}}
{{BlockSprite/entry|jukebox|jukebox-top}}
{{BlockSprite/entry|lily|lily-pad}}
{{BlockSprite/entry|mycelium|mycelium-side}}
{{BlockSprite/entry|mycelium-top}}
{{BlockSprite/entry|sapling-birch}}
{{BlockSprite/entry|piston-side-left}}
{{BlockSprite/entry|piston-side-down}}
{{BlockSprite/entry|piston-side-right}}
{{BlockSprite/entry|piston-side-up}}
{{BlockSprite/entry|huge-mushroom|huge-mushrooms}}
{{BlockSprite/entry|cobweb-w/background|web-w/background}}
{{BlockSprite/entry|cyan-flower}}
{{BlockSprite/entry|crying-obsidian}}
{{BlockSprite/entry|torch}}
{{BlockSprite/entry|door-wood-top}}
{{BlockSprite/entry|door-iron-top}}
{{BlockSprite/entry|ladder}}
{{BlockSprite/entry|trapdoor|hatch}}
{{BlockSprite/entry|iron-bars}}
{{BlockSprite/entry|farmland-humid}}
{{BlockSprite/entry|farmland|farmland-arid}}
{{BlockSprite/entry|wheat1}}
{{BlockSprite/entry|wheat2}}
{{BlockSprite/entry|wheat3}}
{{BlockSprite/entry|wheat4}}
{{BlockSprite/entry|wheat5}}
{{BlockSprite/entry|wheat6}}
{{BlockSprite/entry|wheat7}}
{{BlockSprite/entry|wheat8|wheat|crops}}
{{BlockSprite/entry|brewing-stand}}
{{BlockSprite/entry|camera}}
{{BlockSprite/entry|fence-gate}}
{{BlockSprite/entry|birch-leaves}}
{{BlockSprite/entry|birch-leaves-fast}}
{{BlockSprite/entry|chest}}
{{BlockSprite/entry|ender-chest}}
{{BlockSprite/entry|end-portal}}
{{BlockSprite/entry|lever}}
{{BlockSprite/entry|door-wood-bottom}}
{{BlockSprite/entry|door-iron-bottom}}
{{BlockSprite/entry|redstone-torch-on}}
{{BlockSprite/entry|stone-brick-mossy|mossy-stone-brick}}
{{BlockSprite/entry|stone-brick-cracked|cracked-stone-brick}}
{{BlockSprite/entry|pumpkin-top}}
{{BlockSprite/entry|netherrack}}
{{BlockSprite/entry|soul-sand|soulsand}}
{{BlockSprite/entry|glowstone}}
{{BlockSprite/entry|piston-face-sticky}}
{{BlockSprite/entry|piston-face}}
{{BlockSprite/entry|piston|piston-side}}
{{BlockSprite/entry|piston-bottom}}
{{BlockSprite/entry|piston-slot|piston-top}}
{{BlockSprite/entry|stem}}
{{BlockSprite/entry|cocoa|cocoa-pod|cocoa-plant}}
{{BlockSprite/entry|chest-top}}
{{BlockSprite/entry|chest-side}}
{{BlockSprite/entry|locked-chest|chest-front}}
{{BlockSprite/entry|chest-left}}
{{BlockSprite/entry|chest-right}}
{{BlockSprite/entry|chest-back-left}}
{{BlockSprite/entry|chest-back-right}}
{{BlockSprite/entry|rail-turn|rail-corner|rail-ne|rail-north-east}}
{{BlockSprite/entry|wool-black}}
{{BlockSprite/entry|wool-dark-gray}}
{{BlockSprite/entry|redstone-torch-off}}
{{BlockSprite/entry|wood-spruce|wood-pine}}
{{BlockSprite/entry|wood-birch}}
{{BlockSprite/entry|pumpkin-side}}
{{BlockSprite/entry|pumpkin|pumpkin-off}}
</div>
 
<div style="float: left; min-width: 225px; width: 25%">
{{BlockSprite/entry|jack-o'lantern|jack-'o'-lantern|pumpkin-on}}
{{BlockSprite/entry|cake-top}}
{{BlockSprite/entry|cake-side}}
{{BlockSprite/entry|cake-side-sliced}}
{{BlockSprite/entry|cake-bottom}}
{{BlockSprite/entry|huge-mushroom-red}}
{{BlockSprite/entry|huge-mushroom-brown}}
{{BlockSprite/entry|stem-grown}}
{{BlockSprite/entry|dirt-slab}}
{{BlockSprite/entry|unused}}
{{BlockSprite/entry|ruby-ore}}
{{BlockSprite/entry|sky-portal-frame-empty|sky-portal-frame-unactive}}
{{BlockSprite/entry|sky-portal-frame-full|sky-portal-frame-active}}
{{BlockSprite/entry|wood-stairs}}
{{BlockSprite/entry|wood-slabs}}
{{BlockSprite/entry|chair}}
{{BlockSprite/entry|rails|rail|rail-straight|rail-vertical|rail-straight-vertical}}
{{BlockSprite/entry|wool-red}}
{{BlockSprite/entry|wool-pink}}
{{BlockSprite/entry|redstone-repeater-off}}
{{BlockSprite/entry|pine-leaves|spruce-leaves}}
{{BlockSprite/entry|pine-leaves-fast|spruce-leaves-fast}}
{{BlockSprite/entry|bed-top-foot}}
{{BlockSprite/entry|bed-top-head}}
{{BlockSprite/entry|melon|melon-(block)|melon-side}}
{{BlockSprite/entry|melon-top}}
{{BlockSprite/entry|cauldron-top}}
{{BlockSprite/entry|cauldron-bottom}}
{{BlockSprite/entry|huge-mushroom-stalk}}
{{BlockSprite/entry|huge-mushroom-pores}}
{{BlockSprite/entry|ivy|vines}}
{{BlockSprite/entry|enchantment-table-side-book}}
{{BlockSprite/entry|block-36}}
{{BlockSprite/entry|redstone-dot-on}}
{{BlockSprite/entry|redstone-dot-off}}
{{BlockSprite/entry|cobblestone-wall|cobble-wall}}
{{BlockSprite/entry|mossy-cobblestone-wall|mossy-cobble-wall|moss-cobblestone-wall|moss-cobble-wall}}
{{BlockSprite/entry|flower-pot}}
{{BlockSprite/entry|lapis-lazuli|lapiz-lazuli-block}}
{{BlockSprite/entry|wool-dark-green}}
{{BlockSprite/entry|wool-green}}
{{BlockSprite/entry|redstone-repeater-on}}
{{BlockSprite/entry|glass-pane}}
{{BlockSprite/entry|bed-foot}}
{{BlockSprite/entry|bed-side-foot}}
{{BlockSprite/entry|bed-side-head}}
{{BlockSprite/entry|bed-head}}
{{BlockSprite/entry|wood-jungle}}
{{BlockSprite/entry|cauldron|cauldron-side}}
{{BlockSprite/entry|cauldron-legs}}
{{BlockSprite/entry|brewing-stand-base}}
{{BlockSprite/entry|brewing-stand-top}}
{{BlockSprite/entry|end-portal-frame|end-portal-(block)|end-portal-frame-empty|end-portal-frame-top}}
{{BlockSprite/entry|end-portal-frame-side}}
{{BlockSprite/entry|lectern}}
{{BlockSprite/entry|skeleton-skull|skeleton-head}}
{{BlockSprite/entry|wither-skeleton-skull|wither-skeleton-head}}
{{BlockSprite/entry|zombie-head}}
{{BlockSprite/entry|head|mob-head}}
{{BlockSprite/entry|creeper-head}}
{{BlockSprite/entry|heads|all-heads}}
{{BlockSprite/entry|beacon-old}}
{{BlockSprite/entry|lapis-lazuli-ore}}
{{BlockSprite/entry|wool-brown}}
{{BlockSprite/entry|wool-yellow}}
{{BlockSprite/entry|powered-rail|powered-rail-off}}
{{BlockSprite/entry|redstone-cross-on}}
{{BlockSprite/entry|redstone-wire|redstone-dust|redstone-line-on}}
{{BlockSprite/entry|enchantment-table-top|enchantment-table}}
{{BlockSprite/entry|dragon-egg}}
{{BlockSprite/entry|emerald-ore}}
{{BlockSprite/entry|tripwire-hook}}
{{BlockSprite/entry|tripwire|tripwire-alt|placed-string|string}}
{{BlockSprite/entry|end-portal-frame-full|end-portal-frame-active|end-portal-frame-eye}}
{{BlockSprite/entry|end-stone|white-stone}}
{{BlockSprite/entry|end-portal-sideways}}
{{BlockSprite/entry|end-portal-sideways-active}}
{{BlockSprite/entry|anvil|anvil-block}}
{{BlockSprite/entry|item-frame-model}}
{{BlockSprite/entry|beacon|beacon-block|beacon-model}}
{{BlockSprite/entry|wooden-button}}
{{BlockSprite/entry|nether-reactor|nether-reactor-core}}
{{BlockSprite/entry|glowing-obsidian}}
{{BlockSprite/entry|sandstone-top}}
{{BlockSprite/entry|beetroot}}
</div>
 
<div style="float: left; min-width: 225px; width: 25%">
{{BlockSprite/entry|wool-blue}}
{{BlockSprite/entry|wool-light-blue}}
{{BlockSprite/entry|powered-rail-on}}
{{BlockSprite/entry|redstone-cross-off}}
{{BlockSprite/entry|redstone-line-off}}
{{BlockSprite/entry|enchantment-table-side}}
{{BlockSprite/entry|enchantment-table-bottom}}
{{BlockSprite/entry|command-block}}
{{BlockSprite/entry|item-frame}}
{{BlockSprite/entry|flower-pot-empty}}
{{BlockSprite/entry|redstone-comparator-off}}
{{BlockSprite/entry|redstone-comparator-on}}
{{BlockSprite/entry|nether-quartz-ore}}
{{BlockSprite/entry|trapped-chest}}
{{BlockSprite/entry|hopper-right}}
{{BlockSprite/entry|hopper|hopper-down}}
{{BlockSprite/entry|hopper-left}}
{{BlockSprite/entry|update-game-block}}
{{BlockSprite/entry|rail-nw|rail-north-west}}
{{BlockSprite/entry|rail-sw|rail-south-west}}
{{BlockSprite/entry|rail-se|rail-south-east}}
{{BlockSprite/entry|sandstone|sandstone-side}}
{{BlockSprite/entry|wool-purple}}
{{BlockSprite/entry|wool-magenta}}
{{BlockSprite/entry|detector-rail}}
{{BlockSprite/entry|jungle-leaves}}
{{BlockSprite/entry|jungle-leaves-fast}}
{{BlockSprite/entry|wooden-planks-pine|wooden-plank-pine|wooden-planks-spruce|wooden-plank-spruce}}
{{BlockSprite/entry|wooden-planks-jungle|wooden-plank-jungle}}
{{BlockSprite/entry|carrot1|potato1}}
{{BlockSprite/entry|carrot2|potato2}}
{{BlockSprite/entry|carrot3|potato3}}
{{BlockSprite/entry|carrots|carrot|carrot4}}
{{BlockSprite/entry|potato|potato4}}
{{BlockSprite/entry|rail-horizontal|rail-straight-horizontal}}
{{BlockSprite/entry|quartz-slab}}
{{BlockSprite/entry|quartz-stairs}}
{{BlockSprite/entry|buttons}}
{{BlockSprite/entry2|brick-old}}
{{BlockSprite/entry2|stonecutter}}
{{BlockSprite/entry2|stonecutter-top}}
{{BlockSprite/entry2|detector-rail-on}}
{{BlockSprite/entry2|sandstone-bottom}}
{{BlockSprite/entry2|wool-cyan}}
{{BlockSprite/entry2|wool-orange}}
{{BlockSprite/entry2|redstone-lamp-off}}
{{BlockSprite/entry2|redstone-lamp}}
{{BlockSprite/entry2|circle-stone-brick|chiseled-stone-brick}}
{{BlockSprite/entry2|wooden-planks-birch|wooden-plank-birch}}
{{BlockSprite/entry2|activator-rail-on}}
{{BlockSprite/entry2|pillar-quartz-block}}
{{BlockSprite/entry2|pillar-quartz-horiz}}
{{BlockSprite/entry2|pillar-quartz-top}}
{{BlockSprite/entry2|hay-bale|hay-block|hay-block-side}}
{{BlockSprite/entry2|hay-block-top}}
{{BlockSprite/entry2|hardened-clay}}
{{BlockSprite/entry2|block-of-coal}}
{{BlockSprite/entry2|nether-brick}}
{{BlockSprite/entry2|wool-gray}}
{{BlockSprite/entry2|nether-wart1}}
{{BlockSprite/entry2|nether-wart2}}
{{BlockSprite/entry2|nether-wart3|nether-wart}}
{{BlockSprite/entry2|sandstone-decorative|chiseled-sandstone}}
{{BlockSprite/entry2|sandstone-smooth|smooth-sandstone}}
{{BlockSprite/entry2|activator-rail|activator-rail-off}}
{{BlockSprite/entry2|block-of-quartz}}
{{BlockSprite/entry2|chiseled-quartz-block}}
{{BlockSprite/entry2|snowfall}}
{{BlockSprite/entry2|oak-wood-horiz}}
{{BlockSprite/entry2|birch-wood-horiz}}
{{BlockSprite/entry2|spruce-wood-horiz}}
{{BlockSprite/entry2|jungle-wood-horiz}}
{{BlockSprite/entry2|acacia-wood-horiz}}
{{BlockSprite/entry2|dark-oak-wood-horiz}}
{{BlockSprite/entry2|granite}}
{{BlockSprite/entry2|bounce-block|bouncy-block}}
{{BlockSprite/entry2|infinite-water-block|infinite-water}}
{{BlockSprite/entry2|infinite-lava-block|infinite-lava}}
{{BlockSprite/entry2|white-colored-wood-planks}}
{{BlockSprite/entry2|orange-colored-wood-planks}}
{{BlockSprite/entry2|magenta-colored-wood-planks}}
{{BlockSprite/entry2|light-blue-colored-wood-planks}}
{{BlockSprite/entry2|yellow-colored-wood-planks}}
{{BlockSprite/entry2|light-green-colored-wood-planks}}
{{BlockSprite/entry2|pink-colored-wood-planks}}
{{BlockSprite/entry2|grey-colored-wood-planks}}
{{BlockSprite/entry2|light-grey-colored-wood-planks}}
{{BlockSprite/entry2|cyan-colored-wood-planks}}
{{BlockSprite/entry2|purple-colored-wood-planks}}
{{BlockSprite/entry2|blue-colored-wood-planks}}
{{BlockSprite/entry2|brown-colored-wood-planks}}
{{BlockSprite/entry2|green-colored-wood-planks}}
{{BlockSprite/entry2|red-colored-wood-planks}}
{{BlockSprite/entry2|black-colored-wood-planks}}
{{BlockSprite/entry2|colored-wood-planks}}
{{BlockSprite/entry2|missing-texture-block}}
{{BlockSprite/entry2|unknown}}
 
</div>
 
{{-}}


== See also ==
== See also ==
Line 424: Line 30:
* {{tl|Blocks}} (navbox)
* {{tl|Blocks}} (navbox)
{{Sprite see also}}
{{Sprite see also}}
 
{{doc/end}}
{{doc/end}}<noinclude>
[[fr:Modèle:BlocSprite/doc]]
[[nl:Template:BlockSprite/doc]]
</noinclude>

Latest revision as of 14:40, 12 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 block 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
{{BlockSprite|grass-block-top}}
{{BlockSprite|cobblestone}}
{{BlockSprite|red-flower}}
{{BlockSprite|grass-block}}

Full List

Here is a full list of blocks: Lua error in ...ribunto/includes/engines/LuaCommon/lualib/mwInit.lua at line 23: bad argument #1 to 'old_ipairs' (table expected, got 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.