Änderungen

Wechseln zu: Navigation, Suche

Modul:Recipes

554 Bytes hinzugefügt, vor 2 Jahren
Übersetzt. // Translated.
local itemLink = function(name, args)
local args = args or {}
local namede = frame:expandTemplate{ title = 'tr', args = { name, en = 'y' } } -- get German name of the item through {{tr|name|en=y}}
args[1] = namenamede
args['small'] = 'y'
return item_link(currentFrame, args)
for _, itemname in ipairs(split(item)) do
if s then
s = s .. " ''oroder'' " .. itemLink(itemname)
else
s = itemLink(itemname)
local stationCell = function(station)
if station == 'By Hand' then
return '[[Bykein HandObjekt]]'
elseif station == 'Furnace' or station == 'Work Bench' or station == 'Sawmill' or station == "Tinkerer's Workshop" or station == 'Dye Vat'
or station == 'Loom' or station == 'Keg' or station == 'Hellforge' or station == 'Bookcase' or station == 'Imbuing Station' or station == 'Lava'
return itemLink(station, {wrap = 'y'})
elseif station == 'Iron Anvil' then
return itemLink('Iron Anvil') .. "<br/>'''''oroder'''''<br/>" .. itemLink('Lead Anvil')
elseif station == 'Adamantite Forge' then
return itemLink('Adamantite Forge') .. "<br/>'''''oroder'''''<br/>" .. itemLink('Titanium Forge')
elseif station == 'Mythril Anvil' then
return itemLink('Mythril Anvil') .. "<br/>'''''oroder'''''<br/>" .. itemLink('Orichalcum Anvil')
elseif station == 'Demon Altar' then
return itemLink('Demon Altar') .. "<br/>'''''oroder'''''<br/>" .. itemLink('Crimson Altar')
elseif station == 'Cooking Pot' then
return itemLink('Cooking Pot') .. "<br/>'''''oroder'''''<br/>" .. itemLink('Cauldron')
elseif station == 'Placed Bottle' then
return itemLink('Placed Bottle') .. "<br/>'''''oroder'''''<br/>" .. itemLink('Alchemy Table', {wrap = 'y'})
elseif station == 'Water' then
return itemLink('Water') .. "<br/>'''''oroder'''''<br/>" .. itemLink('Sink', {wrap = 'y'})
elseif station == 'Table and Chair' then
return itemLink('Table') .. " '''andund''' " .. itemLink('Chair')
elseif station == 'Work Bench and Chair' then
return itemLink('Work Bench') .. " '''andund''' " .. itemLink('Chair')
elseif station == 'Crystal Ball and Lava' then
return itemLink('Crystal Ball') .. " '''andund''' " .. itemLink('Lava')
elseif station == 'Crystal Ball and Honey' then
return itemLink('Crystal Ball') .. " '''andund''' " .. itemLink('Honey')
elseif station == 'Crystal Ball and Water' then
return itemLink('Crystal Ball') .. " '''andund''' ".. '<span class="water">' .. itemLink('Water') .. "<br/>'''''oroder'''''<br/>" .. itemLink('Sink', {wrap = 'y'}) .. '</span>'
elseif station == 'Sky Mill and Water' then
return itemLink('Sky Mill', {wrap = 'y'}) .. " '''andund''' ".. '<span class="water">' .. itemLink('Water') .. "<br/>'''''oroder'''''<br/>" .. itemLink('Sink', {wrap = 'y'}) .. '</span>'
elseif station == 'Sky Mill and Snow Biome' then
return itemLink('Sky Mill', {wrap = 'y'}) .. " '''andund''' ".. '[[Snow BiomeTundra]]'
elseif station == 'Placed Bottle only' then
return itemLink('Placed Bottle')
local addCate, cateStr = (function()
local cate = {
['Lead Anvil'] = 'IronEisen- oroder Lead AnvilBleiamboss',
['Iron Anvil'] = 'IronEisen- oroder Lead AnvilBleiamboss',
['Orichalcum Anvil'] = 'MythrilMithril- oroder Orichalcum AnvilOreichalkosamboss',
['Mythril Anvil'] = 'MythrilMithril- oroder Orichalcum AnvilOreichalkosamboss',
['Demon Altar'] = 'DemonDämonen- or Crimsonoder Purpur-Altar',
['Crimson Altar'] = 'DemonDämonen- or Crimsonoder Purpur-Altar',
['Altar'] = 'DemonDämonen- or Crimsonoder Purpur-Altar',
['Titanium Forge'] = 'AdamantiteAdamantit- oroder Titanium ForgeTitanschmiede',
['Adamantite Forge'] = 'AdamantiteAdamantit- oroder Titanium ForgeTitanschmiede',
['Cauldron'] = 'CookingKochtopf Potoder or CauldronKessel',
['Cooking Pot'] = 'CookingKochtopf Potoder or CauldronKessel',
['Bottle only'] = 'PlacedPlatzierte BottleFlasche',
['Placed Bottle only'] = 'PlacedPlatzierte BottleFlasche',
['Bottle'] = 'PlacedPlatzierte BottleFlasche oroder Alchemy TableAlchemietisch',
['Placed Bottle'] = 'PlacedPlatzierte BottleFlasche oroder Alchemy TableAlchemietisch',
['Alchemy Table'] = 'PlacedPlatzierte BottleFlasche oroder Alchemy TableAlchemietisch',
['Water'] = 'WaterWasser oroder SinkWaschbecken',
['Sink'] = 'WaterWasser oroder SinkWaschbecken',
['Crystal Ball and Water'] = 'CrystalKristallkugel Ballund andWasser Wateroder or SinkWaschbecken',
['Sky Mill and WaterSnow Biome'] = 'Sky Mill and WaterHimmelsmühle orund SinkTundra',
['Sky Mill and Water'] = 'Himmelsmühle und Wasser oder Waschbecken',
['Crystal Ball and Lava'] = 'Kristallkugel und Lava',
['Crystal Ball and Honey'] = 'Kristallkugel und Honig',
}
local cateCache = {}
local str = ''
for station, _ in pairs(cateCache) do
str = str .. '[[Category:'..currentFrame:preprocess(cate[station] or '{{tr|'..station..'|en=y}}')..']]'
end
if str ~= '' then
str = '[[Category:Craftable itemsHerstellbare Gegenstände]]' .. str
end
return str
_field = 'col-A-' .. _i
end
str = str .. '<th class="result">' .. (getArg('header-result') or 'ResultResultat') .. '</th>'
_i = 1
_field = 'col-B-1'
_field = 'col-B-' .. _i
end
str = str .. '<th class="ingredients">' .. (getArg('header-ingredients') or 'IngredientsZutaten') .. '</th>'
_i = 1
_field = 'col-C-1'
_field = 'station-col-before-' .. _i
end
str = str .. '<th class="station">' .. (getArg('header-station') or '[[Crafting stationHerstellungsobjekt]]') .. '</th>'
_i = 1
_field = 'station-col-after-1'
 
local tableEnd = function(rows_count, expectedrows)
local str = '</table><div style="display: none">total: '..rows_count..' rowZeile(sn)</div></div></div>'
if expectedrows and rows_count ~= expectedrows then
str = str .. '[[Category:RecipesRezepte-Tabelle tablemit withunerwarteter unexceptedGesamtzahl totalan number of rowsZeilen]]'
end
if rows_count == 0 then
str = str .. '[[Category:RecipesRezepte-Tabelle tableohne with no rowZeilen]]'
end
return str
-- cate:
if needCate then
if needCate == 2 or rootpagename == currentFrame:expandTemplate{title='tr', args= {row['result'], en='y'}} then
addCate(row['station'])
end
3.577

Bearbeitungen