More actions
This module implements {{brewing}}
.
Dependencies
See also
cs:Modul:Brewing
de:Modul:Brauen
es:Módulo:Alquimia
fr:Module:Alchimie
it:Modulo:Distillazione
ja:モジュール:Brewing
ko:모듈:Brewing
lzh:模組:Brewing
pt:Módulo:Brewing
ru:Модуль:Варка
th:มอดูล:Brewing
uk:Модуль:Варіння
zh:Module:Brewing
local p = {}
local i18n = {
defaultBasePotion = 'Awkward Potion',
moduleArgs = [[Module:ProcessArgs]],
moduleRecipe = [[Module:Recipe table]],
type = 'Brewing',
}
p.i18n = i18n
local recipeTable = require( i18n.moduleRecipe ).table
function p.table( f )
local args = f
if f == mw.getCurrentFrame() then
args = require( i18n.moduleArgs ).merge( true )
else
f = mw.getCurrentFrame()
end
args.Input = args[1]
if not args.base then
args.base = i18n.defaultBasePotion
end
if args.showbase then
args.Output1 = args.base2
args.Output2 = args.base
args.Output3 = args.base3
else
args.Output1 = args[3]
args.Output2 = args[2]
args.Output3 = args[4]
end
local out = recipeTable( args, {
uiFunc = 'brewingStand',
type = i18n.type,
ingredientArgs = { 'Input', 'base' },
outputArgs = { 'Output1', 'Output2', 'Output3' },
} )
local title = mw.title.getCurrentTitle()
return out
end
return p