Модуль:Песочница/Pok: различия между версиями

мНет описания правки
мНет описания правки
Строка 58: Строка 58:


     -- Описание и местоположение
     -- Описание и местоположение
     local description = speedDescription .. (frame.args.description or "")
     local description = speedDescription .. (frame.args.description or "") -- Описание
    local location = frame.args.location or ""
  local location = frame.args.location or "" -- Местонахождения
local created = frame.args.created or "" -- Создаётя


     local anchorName = frame.args.anchorName or "" -- Название якоря
     local anchorName = frame.args.anchorName or "" -- Название якоря
Строка 79: Строка 80:
     out = out .. '|class="' .. class .. '" style=""|\n' .. description .. '\n'
     out = out .. '|class="' .. class .. '" style=""|\n' .. description .. '\n'
     out = out .. '|class="' .. class .. '" style=""|\n' .. location .. '\n|-'
     out = out .. '|class="' .. class .. '" style=""|\n' .. location .. '\n|-'
-- Местоположение
out = out .. '|class="' .. class .. '" style=""|\n'
if location ~= "" then
out = out .. frame:preprocess('{{SlideMenu|overlay|color=#e1f6ff|title=Список [[File:Examine.svg.192dpi.png|24x24px]]|content=<p></p>\n' .. location .. '}}\n')
end
-- Создаётся
if created ~= "" then
out = out .. frame:preprocess('{{SlideMenu|overlay|color=#e1f6ff|border-color=#4c4c61|title=Создаётся [[File:hammer.svg.192dpi.png|24x24px]]|content=Создаётся в панели строительства<hr>\n' .. created .. '}}\n')
elseif location == "" then
out = out .. frame:preprocess('{{FrameText|color=#82d1c4|content=Нет гарантированных мест спавна}}\n')
end
out = out .. '|-\n'


     return out
     return out