Modul:Ofenrezept
[Erstellen | Versionen | Aktualisieren]
Dokumentation
Zum Gebrauch von Lua-Modulen siehe die Modul-Hilfe.
Dieses Modul hat keine Dokumentation. Wenn du weißt, wie es funktioniert, dann erstelle sie bitte.
local p = {}
local i18n = {
categoryUpcoming = 'Kategorie:Neu',
defaultFuel = 'Alle Brennstoffe',
moduleArgs = [[Module:ParameterUmwandeln]],
moduleRecipe = [[Module:Recipe table]],
type = 'Schmelzen',
}
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]
args.Output = args[2]
args.Experience = args[3]
args.Fuel = args.fuel or i18n.defaultFuel
local out = recipeTable( args, {
uiFunc = 'furnace',
type = i18n.type,
ingredientArgs = { 'Input', 'Fuel' },
outputArgs = { 'Output' },
} )
local title = mw.title.getCurrentTitle()
local category
if args.upcoming and args.nocat ~= '1' and title.namespace == 0 and not title.isSubpage then
category = '[[' .. i18n.categoryUpcoming .. ']]'
end
return out, category
end
return p