Редактирование: Модуль:Infobox Animal
Материал из Eco - Русская Wiki
Правка может быть отменена. Пожалуйста, просмотрите сравнение версий ниже, чтобы убедиться, что это нужная вам правка, и запишите страницу ниже, чтобы отменить правку.
Текущая версия | Ваш текст | ||
Строка 63: | Строка 63: | ||
-- 'General' section header | -- 'General' section header | ||
infobox = infobox .. '|- style=\"background-color: #4688C0; text-align: center;\"\n| colspan=\"2\" | \'\'\' | infobox = infobox .. '|- style=\"background-color: #4688C0; text-align: center;\"\n| colspan=\"2\" | \'\'\'General\'\'\'\n' | ||
-- Health | -- Health | ||
if animalTable.health ~= nil then | if animalTable.health ~= nil then | ||
infobox = infobox .. '|-\n| | infobox = infobox .. '|-\n| Health:\n| style=\"text-align: right; padding: 3px;\" | ' .. animalTable.health .. '\n' | ||
end | end | ||
-- Idle Speed | -- Idle Speed | ||
if animalTable.wanderingSpeed ~= nil then | if animalTable.wanderingSpeed ~= nil then | ||
infobox = infobox .. '|-\n| | infobox = infobox .. '|-\n| Idle Speed:\n| style=\"text-align: right; padding: 3px;\" | ' .. animalTable.wanderingSpeed .. ' mps\n' | ||
end | end | ||
-- Eats | -- Eats | ||
if animalTable.foodSources ~= nil then | if animalTable.foodSources ~= nil then | ||
infobox = infobox .. '|-\n| | infobox = infobox .. '|-\n| Eats:\n| style=\"text-align: right; padding: 3px;\" | ' .. animalTable.foodSources .. '\n' | ||
end | end | ||
Строка 87: | Строка 87: | ||
-- Carbon Released | -- Carbon Released | ||
if animalTable.carbonRelease ~= nil then | if animalTable.carbonRelease ~= nil then | ||
infobox = infobox .. '|-\n| | infobox = infobox .. '|-\n| Carbon Released:\n| style=\"text-align: right; padding: 3px;\" | ' .. animalTable.carbonRelease .. ' ppm \n' | ||
end | end | ||
Строка 96: | Строка 96: | ||
-- Harvest | -- Harvest | ||
if animalTable.resourceItem ~= nil then | if animalTable.resourceItem ~= nil then | ||
infobox = infobox .. '|-\n| | infobox = infobox .. '|-\n| Harvest Item:\n| style=\"text-align: right; padding: 3px;\" | ' .. animalTable.resourceItem .. '\n' | ||
end | end | ||
-- Flees | -- Flees | ||
if animalTable.flees ~= nil then | if animalTable.flees ~= nil then | ||
infobox = infobox .. '|-\n| | infobox = infobox .. '|-\n| Flees:\n| style=\"text-align: right; padding: 3px;\" | Yes \n' | ||
else | else | ||
infobox = infobox .. '|-\n| | infobox = infobox .. '|-\n| Flees:\n| style=\"text-align: right; padding: 3px;\" | No \n' | ||
end | end | ||