From Minecraft Wiki
Jump to: navigation, search
[edit | history | purge]Documentation
Lua logo.svg
This template uses Module:KnightBot4/SpriteSub, a script written in Lua.
Please see wp:Lua and mw:Extension:Scribunto to learn more.

This template can be used to replace deprecated names in a usage of a sprite template with non-deprecated ones. It should always be substituted.


KnightBot4 simply replaces usages of sprite templates with substituting this module, setting the paraemeter {{{name}}} to the original name. The exact replacement is done by replacing:




This module has the side effect of forcing parameters into the order of {{{id}}}, {{{link}}}, {{{1}}}, {{{2}}}, {{{text}}}, as there is no way to receive parameters in the order they are written without writing much more complicated code off site.