VOOZH about

URL: https://minecraft.wiki/w/Module:Calculator

⇱ Module:Calculator – Minecraft Wiki


Module:Calculator

From Minecraft Wiki
Jump to navigation Jump to search
Documentation[view] [edit] [history] [purge]Jump to code ↴

This module powers Template:Calculator.

Dependencies

[edit source]
[view] [edit] [history] [purge]The above documentation is transcluded from Module:Calculator/doc.
localp={}
functionp.main(frame)
localargs=require([[Module:ProcessArgs]]).norm(frame:getParent().args)
returnp.createTag(args)
end
functionp.createTag(args)
localdiv=mw.html.create('div')
div
:attr('class','mcw-calc searchaux')
:attr('data-type',args[1])
:attr('style',args['style'])
:wikitext('An interactive widget is being loaded. If this does not work for you, please reload the page or check if JavaScript is working or enabled.')
fork,vinpairs(args)do
ifk~=1andk~='style'then
div:attr('data-'..k,v)
end
end
returntostring(div)
end
returnp
Retrieved from "https://minecraft.wiki/w/Module:Calculator?oldid=2918441"

Navigation menu