[créer | historique | purger]Documentation
Ce module n'a pas de documentation. Si vous savez comment l'utiliser, merci de la créer.local p = {}
local i18n = {
categoryUpcoming = 'Catégorie:Fonctionnalité à venir',
defaultFuel = 'Tout combustible',
moduleArgs = [[Module:ProcessArgs]],
moduleRecipe = [[Module:Tableau de recette]],
type = 'Cuisson',
}
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['ingrédient'] = args[1]
args['résultat'] = args[2]
args['expérience'] = args[3]
args.combustible = args.Combustible or i18n.defaultFuel
local out = recipeTable( args, {
uiFunc = 'furnace',
type = i18n.type,
ingredientArgs = { 'ingrédient', 'combustible' },
outputArgs = { 'résultat' },
} )
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