Bearbeiten von „Modul:CraftingParser

Aus Eco - Deutsches Wiki
Wechseln zu:Navigation, Suche

Deine Änderungen werden angezeigt, sobald ein dazu berechtigter Benutzer sie akzeptiert hat. (Hilfe)

Warnung: Du bist nicht angemeldet. Deine IP-Adresse wird bei Bearbeitungen öffentlich sichtbar. Melde dich an oder erstelle ein Benutzerkonto, damit Bearbeitungen deinem Benutzernamen zugeordnet werden. Ein eigenes Benutzerkonto hat eine ganze Reihe von Vorteilen.

Die Bearbeitung kann rückgängig gemacht werden. Bitte prüfe den Vergleich unten, um sicherzustellen, dass du dies tun möchtest, und veröffentliche dann unten deine Änderungen, um die Bearbeitung rückgängig zu machen.

Aktuelle Version Dein Text
Zeile 1: Zeile 1:
-- Module:CraftingParser (https://wiki.play.eco/en/Module:CraftingParser)
-- Modul:CraftingParser (https://wiki.play.eco/en/Modul:CraftingParser)
local p = {}
local p = {}


local Utils = require('Module:Utils')
local Utils = require('Modul:Utils')
local L = require('Module:Localization')
local L = require('Modul:Localization')


-- Compares two recipes ( a < b ? true : false )
-- Compares two recipes ( a < b ? true : false )
Zeile 80: Zeile 80:


-- Called from Template:RecipeTable
-- Called from Template:RecipeTable
-- Calls Module:RecipeTable
-- Calls Modul:RecipeTable
-- Returns the wikitext returned by Module:RecipeTable
-- Returns the wikitext returned by Modul:RecipeTable
function p.raw( f )
function p.raw( f )
     -- get args from the Template, parse them into recipes
     -- get args from the Template, parse them into recipes
Zeile 90: Zeile 90:


     -- Call RecipeTable
     -- Call RecipeTable
     local recipeTable = require( "Module:RecipeTable" )
     local recipeTable = require( "Modul:RecipeTable" )
     return recipeTable.main( recipes )
     return recipeTable.main( recipes )
end
end




-- Called from Module:GetRecipes
-- Called from Modul:GetRecipes
-- Calls Module:RecipeTable
-- Calls Modul:RecipeTable
-- Returns the wikitext returned by Module:RecipeTable
-- Returns the wikitext returned by Modul:RecipeTable
function p.formattedItem( products, ingredients, item )
function p.formattedItem( products, ingredients, item )
     -- Format the recipes, and call RecipeTable on each table
     -- Format the recipes, and call RecipeTable on each table
     local recipeTable = require( "Module:RecipeTable" )
     local recipeTable = require( "Modul:RecipeTable" )
     local returnVal = '=== '..L.t('Crafting Recipes')..' ===\n\n'
     local returnVal = '=== '..L.t('Crafting Recipes')..' ===\n\n'
      
      
Zeile 119: Zeile 119:




-- Called from Module:GetRecipes
-- Called from Modul:GetRecipes
-- Calls Module:RecipeTable
-- Calls Modul:RecipeTable
-- Returns formatted wikitext, including wikitext returned from Module:RecipeTable
-- Returns formatted wikitext, including wikitext returned from Modul:RecipeTable
function p.formattedTable( recipes, table )
function p.formattedTable( recipes, table )
     -- Format the recipes, and call RecipeTable
     -- Format the recipes, and call RecipeTable
     local recipeTable = require( "Module:RecipeTable" )
     local recipeTable = require( "Modul:RecipeTable" )
     local returnVal = '=== ' .. L.t('Recipes at %s'):format(table) .. ' ===\n\n'
     local returnVal = '=== ' .. L.t('Recipes at %s'):format(table) .. ' ===\n\n'
     if #recipes == 0 then
     if #recipes == 0 then
Zeile 136: Zeile 136:




-- Called from Module:GetRecipes
-- Called from Modul:GetRecipes
-- Calls Module:RecipeTable
-- Calls Modul:RecipeTable
-- Returns formatted wikitext, including wikitext returned from Module:RecipeTable
-- Returns formatted wikitext, including wikitext returned from Modul:RecipeTable
function p.formattedGroup( recipes, group )
function p.formattedGroup( recipes, group )
     -- Format the recipes, and call RecipeTable
     -- Format the recipes, and call RecipeTable
     local recipeTable = require( "Module:RecipeTable" )
     local recipeTable = require( "Modul:RecipeTable" )
     local returnVal = '=== ' .. L.t('%s Recipes'):format(group) .. ' ===\n\n'
     local returnVal = '=== ' .. L.t('%s Recipes'):format(group) .. ' ===\n\n'
     if #recipes == 0 then
     if #recipes == 0 then
Bitte kopiere keine Webseiten, die nicht deine eigenen sind, benutze keine urheberrechtlich geschützten Werke ohne Erlaubnis des Urhebers!
Du gibst uns hiermit deine Zusage, dass du den Text selbst verfasst hast, dass der Text Allgemeingut (public domain) ist oder dass der Urheber seine Zustimmung gegeben hat. Falls dieser Text bereits woanders veröffentlicht wurde, weise bitte auf der Diskussionsseite darauf hin. Bitte beachte, dass alle Eco - Deutsches Wiki-Beiträge automatisch unter der „CC BY-NC-SA 4.0“ stehen (siehe Eco:Urheberrechte für Einzelheiten). Falls du nicht möchtest, dass deine Arbeit hier von anderen verändert und verbreitet wird, dann klicke nicht auf „Seite speichern“.

Um das Wiki vor automatisiertem Bearbeitungsspam zu schützen, bitten wir dich, das folgende hCaptcha zu lösen:

Abbrechen Bearbeitungshilfe (wird in einem neuen Fenster geöffnet)

Die folgende Vorlage wird auf dieser Seite verwendet: