Редактирование: Модуль:Infobox Plant
Материал из Eco - Русская Wiki
Правка может быть отменена. Пожалуйста, просмотрите сравнение версий ниже, чтобы убедиться, что это нужная вам правка, и запишите страницу ниже, чтобы отменить правку.
Текущая версия | Ваш текст | ||
Строка 30: | Строка 30: | ||
if args.plant ~= nil then | if args.plant ~= nil then | ||
species = args.plant | species = args.plant | ||
check = ' | check = 'plant' | ||
elseif args.tree ~= nil then | elseif args.tree ~= nil then | ||
species = args.tree | species = args.tree | ||
Строка 74: | Строка 74: | ||
infobox = infobox .. '|- style=\"text-align: center; color: white; background-color: ' | infobox = infobox .. '|- style=\"text-align: center; color: white; background-color: ' | ||
if check == 'plant' then | if check == 'plant' then | ||
infobox = infobox .. 'seagreen;\"\n| colspan=\"2\" | \'\'\' | infobox = infobox .. 'seagreen;\"\n| colspan=\"2\" | \'\'\'Plant\'\'\'[[Category:Plants]]\n' | ||
else | else | ||
infobox = infobox .. 'olivedrab;\"\n| colspan=\"2\" | \'\'\' | infobox = infobox .. 'olivedrab;\"\n| colspan=\"2\" | \'\'\'Tree\'\'\'[[Category:Trees]]\n' | ||
end | end | ||