Module:KnightMiner/DeprecatedSprites - minecraft.fandom.com

Treść tej podstrony pochodzi z artykułu „Module:KnightMiner/DeprecatedSprites” w domenie minecraft.fandom.com na licencji CC BY-NC-SA 3.0
[view | edit | history | purge]DocumentationJump to code ↴

This module pulls a list of deprecated sprites from one of the sprite ID modules and displays it in a simply formatted fashion.

Usage[]

To run p.deprecated, simply set the first parameter to the name of a sprite sheet; for example, Block

Example[]

{{#invoke:KnightMiner/DeprecatedSprites|deprecated|Block}}

BlockSprite
  • all-box-of-infinite-books
  • all-cloth
  • all-colored-planks
  • all-tinted-glass
  • an-ant-back
  • an-ant-front
  • an-ant-side
  • an-ant-top
  • an-ant
  • beacon-revision-1
  • beehive-bottom
  • bell-stand
  • black-colored-planks
  • black-tinted-glass
  • block-of-coal-revision-1
  • blue-colored-planks
  • blue-coral-minecon
  • blue-coral-slab-minecon
  • blue-ring-lce1
  • blue-tinted-glass
  • box-of-infinite-books-blue
  • box-of-infinite-books-green
  • box-of-infinite-books-red
  • box-of-infinite-books-yellow
  • box-of-infinite-books
  • bricks-revision-1
  • bricks-revision-2
  • brown-colored-planks
  • brown-tinted-glass
  • calibrated-sculk-sensor-pre
  • capri-cloth
  • chair
  • chartreuse-cloth
  • cheese
  • chest-front
  • cloth
  • cobblestone-revision-1
  • cobblestone-revision-2
  • colored-planks
  • command-block-revision-1
  • conduit-side
  • copper-sink
  • copper-spleaves
  • crying-obsidian-revision-1
  • cursor
  • cyan-cloth
  • cyan-colored-planks
  • cyan-tinted-glass
  • dark-gray-cloth
  • dead-coral-block
  • dead-coral-minecon
  • dead-coral-slab-minecon
  • diamond-block-bottom
  • diamond-block-side
  • diamond-block-top
  • diorite-bell
  • dirt-revision-1
  • dirt-slab
  • dispenser-revision-1
  • end-portal-frame-sideways-empty
  • end-portal-frame-sideways-eye
  • end-portal-frame-sideways
  • etho-slab
  • funky-portal
  • furnace-bottom
  • furniture
  • gear
  • glowstone-revision-1
  • gold-block-bottom
  • gold-block-revision-1
  • gold-block-side
  • gold-block-top
  • golden-chest
  • granite-bell
  • grass-block-revision-1
  • grass-block-revision-2
  • grass-block-side-revision-1
  • grass-block-side-revision-2
  • grass-block-top-revision-1
  • grass-block-top-revision-2
  • gravel-revision-1
  • gravel-revision-2
  • gray-colored-planks
  • gray-tinted-glass
  • green-cloth
  • green-colored-planks
  • green-tinted-glass
  • honey-block-minecon
  • how-did-we-get-here?
  • impulse-command-block-revision-1
  • infinite-lava-source
  • infinite-lava
  • infinite-water-source
  • infinite-water
  • iron-block-bottom
  • iron-block-revision-1
  • iron-block-side
  • iron-block-top
  • lava-flow-revision-1
  • lava-revision-1
  • lava-spawner
  • lava-top-revision-1
  • lectern-revision-1
  • leftover
  • light-blue-colored-planks
  • light-blue-tinted-glass
  • light-gray-cloth
  • light-gray-colored-planks
  • light-gray-tinted-glass
  • lime-colored-planks
  • lime-tinted-glass
  • locked-chest
  • magenta-cloth
  • magenta-colored-planks
  • magenta-coral-minecon
  • magenta-coral-slab-minecon
  • magenta-tinted-glass
  • monster-spawner-revision-1
  • mossy-cobblestone-revision-1
  • mysterious-frame-with-slot-top
  • neither-portal
  • oak-leaves-fast-revision-1
  • oak-leaves-revision-1
  • observer-bottom
  • observer-front-revision-1
  • obsidian-revision-1
  • orange-cloth
  • orange-colored-planks
  • orange-tinted-glass
  • other-portal
  • paeonia
  • pickaxe-block
  • pink-colored-planks
  • pink-tinted-glass
  • piston-side-down
  • piston-side-left
  • piston-side-right
  • place-block
  • planks-revision-0
  • planks-revision-1
  • planks-revision-2
  • polished-granite-bell
  • potted-rose
  • purple-cloth
  • purple-colored-planks
  • purple-tinted-glass
  • rail-horizontal
  • red-cloth
  • red-colored-planks
  • red-tinted-glass
  • rose-be
  • rose-cloth
  • rose-je
  • rose
  • ruby-ore
  • sand-revision-1
  • sapling-revision-1
  • sapling-revision-2
  • shrub-inv
  • silver-tinted-glass
  • sky-portal-frame-empty
  • sky-portal-frame-full
  • sky-portal-frame
  • snow-layer
  • sponge-revision-1
  • spring-green-cloth
  • sticky-piston-side-down
  • sticky-piston-side-left
  • sticky-piston-side-right
  • stone-revision-1
  • structure-block-revision-1
  • sugar-cane-revision-1
  • swaggiest-stairs-ever
  • table
  • the-zone
  • tinted-glass-april-fools
  • torch-(burnt-out)
  • ultramarine-cloth
  • usb-charger-block-bottom
  • usb-charger-block-side
  • usb-charger-block-top
  • usb-charger-block
  • violet-cloth
  • water-flow-revision-1
  • water-revision-1
  • water-spawner
  • water-top-revision-1
  • waterlogged-conduit-side
  • waterlogged-conduit-top
  • wax
  • white-cloth
  • white-colored-planks
  • white-tinted-glass
  • yellow-cloth
  • yellow-colored-planks
  • yellow-coral-minecon
  • yellow-coral-slab-minecon
  • yellow-ring-lce1
  • yellow-tinted-glass
[view | edit | history | purge]The above documentation is transcluded from Module:KnightMiner/DeprecatedSprites/doc.
local p = {}
function p.deprecated( f )
	local name = f.args[1] .. 'Sprite'
	
	-- Load the list of sprites based on the name given
	local data = mw.loadData( 'Module:' .. name ).ids
	
	-- Go over every sprite to check for deprecated sprites
	local output = {}
	for k, v in pairs( data ) do
		if v.deprecated then
			table.insert( output, '<code>' .. k .. '</code>' )
		end
	end

	-- If we have results, then format them a bit and return results
	if #output > 0 then
		table.sort( output )

		-- Add a dummy item to make the list easier
		table.insert( output, 1, '' )

		local div = mw.html.create( 'div' ):css{
			        ['column-width'] = '15em',
			   ['-moz-column-width'] = '15em',
			['-webkit-column-width'] = '15em'
		}:wikitext( table.concat( output, '\n* ' ) )
		
		return '; [[Template:' .. name .. '|' .. name .. ']] \n' .. tostring( div )
	end
end

return p