Модуль:BotanyStats: различия между версиями

мНет описания правки
Нет описания правки
Строка 32: Строка 32:
      
      
     local description = default(frame.args.description, "Не обладает никакими особыми свойствами") -- Описание
     local description = default(frame.args.description, "Не обладает никакими особыми свойствами") -- Описание
    local mutationId = default(frame.args.mutationId, "")                                          -- Мутации
     local location = default(frame.args.location, "* Нет гарантированных мест спавна")            -- Местонахождение  
     local location = default(frame.args.location, "* Нет гарантированных мест спавна")            -- Местонахождение  
    local mutationId = default(frame.args.mutationId, "")                                          -- Мутации
      
      
     -- Разделение параметра mutationId на слова
     -- Разделение параметра mutationId на слова
Строка 79: Строка 79:
     out = out .. frame:preprocess('* {{tooltip|Освещения|Оптимальный уровень освещения|color=#e1f6ff}}: ' .. '<b>' .. idealLight .. '</b>' .. '\n')
     out = out .. frame:preprocess('* {{tooltip|Освещения|Оптимальный уровень освещения|color=#e1f6ff}}: ' .. '<b>' .. idealLight .. '</b>' .. '\n')
     out = out .. '| ' .. description .. '\n'
     out = out .. '| ' .. description .. '\n'
     out = out .. frame:preprocess('|{{SlideMenu|overlay|color=#e1f6ff|background-color=#2b2b33|border-size=3px|title=Список|content=<p></p> \n' .. location .. '}} \n')
    out = out .. frame:preprocess('|' .. mutationCells .. '\n')
    out = out .. frame:preprocess('!' .. mutationCells .. '\n')
     out = out .. frame:preprocess('|{{SlideMenu|overlay|color=#e1f6ff|background-color=#0e693a|border-color=#094124|border-size=3px|title=Список|content=<p></p> \n' .. location .. '}} \n')
     out = out .. '|- \n'
     out = out .. '|- \n'
      
      
Строка 86: Строка 86:
     if firstRun then
     if firstRun then
         firstRun = false
         firstRun = false
         out = out .. '<div class="customCSS" style="display:none"> .maturation-cell { width: 100%; margin: 5px 0; box-sizing: border-box; text-align: left; background: #096d35; padding: 6px 10px; border-radius: 0.3em; border: 2px solid #0c4729; font-weight: 500; transition: background 0.05s; } .maturation-cell:hover { background: #097137; } </div>'
         out = out .. '<div class="customCSS" style="display:none"> .maturation-cell { width: 100%; margin: 5px 0; box-sizing: border-box; text-align: left; background: #0e693a; padding: 6px 10px; border-radius: 0.3em; border: 2px solid #094124; font-weight: 500; transition: background 0.05s; } .maturation-cell:hover { background: #0f6f3d; } </div>'
     end
     end
     return out
     return out