Редактирование: Модуль:FoodDetails
Материал из Eco - Русская Wiki
Сделанные вами изменения будут показаны читателям после того, как их утвердит уполномоченный участник (подробнее).
Правка может быть отменена. Пожалуйста, просмотрите сравнение версий ниже, чтобы убедиться, что это нужная вам правка, и запишите страницу ниже, чтобы отменить правку.
Текущая версия | Ваш текст | ||
Строка 24: | Строка 24: | ||
header = header .. "<th style=\"color: lightgreen;\">Витамины</th> \n " | header = header .. "<th style=\"color: lightgreen;\">Витамины</th> \n " | ||
header = header .. "<th>Нутриенты</th> \n " | header = header .. "<th>Нутриенты</th> \n " | ||
header = header .. "<th> | header = header .. "<th>Density (/100ккал)</th> \n " | ||
header = header .. "<th> | header = header .. "<th>Skill Point Contribution</th> \n " | ||
header = header .. "<th>Создается в</th> \n " | header = header .. "<th>Создается в</th> \n " | ||
header = header .. "<th>Требует навык</th> \n " | header = header .. "<th>Требует навык</th> \n " | ||
header = header .. "<th data-sort-type=\"number\"> | header = header .. "<th>Skill Level</th> \n " | ||
header = header .. "<th data-sort-type=\"number\">Base Crafting Time(Min)</th> \n " | |||
header = header .. "</tr> \n " | header = header .. "</tr> \n " | ||
Строка 73: | Строка 74: | ||
end | end | ||
if recipe ~= '' then | if recipe ~= '' then | ||
created = recipe.craftStn | created = recipe.craftStn[1] | ||
if recipe.skillNeeds[1] == nil then | if recipe.skillNeeds[1] == nil then | ||
skill = " | skill = "none" -- implies a basic recipe like Campfire Beans | ||
skill_level = '-' | skill_level = '-' | ||
else | else | ||
Строка 113: | Строка 114: | ||
end | end | ||
if (created ~= '' and created ~= ' | if (created ~= '' and created ~= 'none' and created ~= '-') then | ||
created = "[[" .. created .. "]]" | created = "[[" .. created .. "]]" | ||
end | end | ||
Строка 121: | Строка 122: | ||
-- print skill needed or none. | -- print skill needed or none. | ||
row = row .. "<td>" .. tostring(skill) .. "< | row = row .. "<td>" .. tostring(skill) .. "</td> \n" | ||
-- print skill level needed. | |||
row = row .. "<td>" .. tostring(skill_level) .. "</td> \n" | |||
-- print crafting minutes. | -- print crafting minutes. |