![]() |
VOOZH | about |
This module is deprecated, and is kept only for historical reference. Please use {{version}} to display the latest version.
localp={} localversions=mw.loadJsonData('Module:Version/numbers.json') localprefixes={ ['java']='Java Edition_', ['bedrock']='Bedrock Edition_', ['dungeons']='Minecraft Dungeons:', ['launcher']='Launcher_', ['education']='Minecraft Education_', ['classroom_mode']='Minecraft Education version history/Classroom Mode#', ['code_connection']='Minecraft Education version history/Code Connection#', ['china']='China Edition#', ['bds']='Bedrock Edition beta_', ['legends']='Minecraft Legends:', ['editor']='Bedrock Editor_' } p.version=function(f) localargs=f:getParent().args localtmp=string.lower(args[1]or'') localversion=versions[tmp] ifnotversionthenreturnnilend localseperate=string.find(tmp,'-') localprefix=prefixes[seperateandstring.sub(tmp,0,seperate-1)ortmp] localoutput=prefix..version..'|'..version return(args.nolinkandversion)or(args.plainlinkandoutput)or'[['..output..']]' end returnp