Шаблон:ServerStatus/Песочница: различия между версиями

Материал из Space Station 14 Вики
(Новая страница: «<div class="serverStatusFrame" style="border: 2px solid rgba(255, 255, 255, 0.2); border-radius: 8px; padding: 4px; flex: 1 1 calc(16.66% - 10px); margin-bottom: 5px;"> <div class="serverName"> <p class="serverTitle" style="font-size: 18px; font-weight: bold; color: lightgrey; text-align: center; margin: 0;">{{{serverName|'-'}}}</p> <hr style="border: 2px solid rgba(200, 200, 200, 0.5); margin: 3px 0;"> </div> <div class="serverInfo" style="mar...»)
 
Нет описания правки
Строка 1: Строка 1:
<div class="serverStatusFrame" style="border: 2px solid rgba(255, 255, 255, 0.2); border-radius: 8px; padding: 4px; flex: 1 1 calc(16.66% - 10px); margin-bottom: 5px;">
<div class="serverStatusFrame">
   <div class="serverName">
   <div class="serverName">
     <p class="serverTitle" style="font-size: 18px; font-weight: bold; color: lightgrey; text-align: center; margin: 0;">{{{serverName|'-'}}}</p>
     <p class="serverTitle">{{{serverName|'-'}}}</p>
     <hr style="border: 2px solid rgba(200, 200, 200, 0.5); margin: 3px 0;">
     <hr style="border: 2px solid rgba(200, 200, 200, 0.5); margin: 3px 0;">
   </div>
   </div>
   <div class="serverInfo" style="margin-top: 2px;">
   <div class="serverInfo">
     <div class="serverInfoRound" style="margin-bottom: 3px;">
     <div class="serverInfoRound serverFlex">
       <div style="font-weight: bold; color: lightgrey;">Раунд</div>
       <div>'''Раунд'''</div>
       <div class="serverInfoRoundSet" style="font-size: 14px; color: lightgrey;">#{{{round|'-'}}}</div>
       <div class="serverInfoRoundSet">#{{{round|'-'}}}</div>
     </div>
     </div>
     <div class="serverStatus" style="margin-bottom: 3px;">
     <div class="serverStatus serverFlex">
       <div style="font-weight: bold; color: lightgrey;">Статус</div>
       <div>'''Статус'''</div>
       <div class="serverStatusSet" style="font-size: 14px; color: lightgrey;">{{#switch: {{{status|'-'}}} | 0 = Лобби | 1 = Раунд идёт | 2 = Завершение | #default = Неизвестное состояние }}</div>
       <div class="serverStatusSet">{{#switch: {{{status|'-'}}} | 0 = Лобби | 1 = Раунд идёт | 2 = Завершение | #default = Неизвестное состояние }}</div>
     </div>
     </div>
     <div class="serverMap" style="margin-bottom: 3px;">
     <div class="serverMap serverFlex">
       <div style="font-weight: bold; color: lightgrey;">Карта</div>
       <div>'''Карта'''</div>
       <div class="serverMapSet" style="font-size: 14px; color: lightgrey;">{{{map|'-'}}}</div>
       <div class="serverMapSet">{{{map|'-'}}}</div>
     </div>
     </div>
     <div class="serverTime" style="margin-bottom: 3px;">
     <div class="serverTime serverFlex">
       <div style="font-weight: bold; color: lightgrey;">Время раунда</div>
       <div>'''Время раунда'''</div>
       <div class="serverTimeSet" style="font-size: 14px; color: lightgrey;">{{{time|'-'}}}</div>
       <div class="serverTimeSet">{{{time|'-'}}}</div>
     </div>
     </div>
     <div class="serverPreset">
     <div class="serverPreset serverFlex">
       <div style="font-weight: bold; color: lightgrey;">Игровой режим</div>
       <div>'''Игровой режим'''</div>
       <div class="serverPresetSet" style="font-size: 14px; color: lightgrey;">{{{preset|'-'}}}</div>
       <div class="serverPresetSet">{{{preset|'-'}}}</div>
     </div>
     </div>
     <div class="serverConnect" style="margin-bottom: 3px;">
     <div class="serverConnect">
       <div style="font-weight: bold; color: lightgrey;">Прямое подключение</div>
       <div>'''Прямое подключение'''</div>
       <div style="display: flex; align-items: flex-start; margin-top: 3px; min-height: calc(3em + 5px);">
       <div class="serverConnectContainer serverFlex">
         <div class="serverConnectSet" style="font-size: 14px; color: lightgrey; margin-right: 1px; flex-grow: 1; overflow-wrap: break-word;">{{{serverconnect|'-'}}}</div>
         <div class="serverConnectSet">{{{serverconnect|'-'}}}</div>
         <div class="copy-icon" style="cursor: pointer;">📋</div>
         <div class="copy-icon">📋</div>
       </div>
       </div>
     </div>
     </div>
     <div class="serverPlayers" style="margin-bottom: 3px;">
     <div class="serverPlayers">
       <div style="font-weight: bold; color: lightgrey;">Кол-во игроков</div>
       <div>'''Кол-во игроков'''</div>
       <div class="serverPlayersSet" style="font-size: 14px; color: lightgrey;">{{{players|'-'}}}</div>
       <div class="serverPlayersSet">{{{players|'-'}}}</div>
       <div class="progressBarContainer" style="width: 100%; background-color: rgba(150, 150, 150, 0.5); border-radius: 5px; overflow: hidden; margin-top: 3px;">
       <div class="progressBarContainer">
         <div class="progressBar" style="width: {{{percentage|0}}}%; background-color: rgba(100, 200, 100, 0.8); height: 15px; transition: width 0.3s;"></div>
         <div class="progressBar" style="width: {{{percentage|0}}}%;"></div>
       </div>
       </div>
       <div class="percentageDisplay" style="text-align: right; font-size: 12px; color: lightgrey;">{{{percentage|0}}}%</div>
       <div class="percentageDisplay">{{{percentage|0}}}%</div>
     </div>
     </div>
   </div>
   </div>
</div>
</div>
{{#css:
.serverStatusFrame {
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 4px;
  flex: 1 1 calc(16.66% - 10px);
  margin-bottom: 5px;
}
.serverFlex {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 6px;
}
.serverTitle {
  font-size: 18px;
  color: lightgrey;
  text-align: center;
  margin: 0;
}
.serverInfo div {
  color: lightgrey;
}
.serverInfo div[class*="Set"] {
  font-size: 14px;
  color: lightgrey;
}
.progressBarContainer {
  width: 100%;
  background-color: rgba(150, 150, 150, 0.5);
  border-radius: 5px;
  overflow: hidden;
  margin-top: 3px;
}
.progressBar {
  background-color: rgba(100, 200, 100, 0.8);
  height: 15px;
  transition: width 0.3s;
}
.percentageDisplay {
  text-align: right;
  font-size: 12px;
  color: lightgrey;
}
.copy-icon {
  cursor: pointer;
}
.serverConnectContainer {
  display: flex;
  align-items: flex-start;
  margin-top: 3px;
  min-height: calc(3em + 5px);
}
.serverConnectSet {
  margin-right: 1px;
  flex-grow: 1;
  overflow-wrap: break-word;
}
}}

Версия от 14:41, 15 октября 2024

'-'


Раунд
#'-'
Статус
Неизвестное состояние
Карта
'-'
Время раунда
'-'
Игровой режим
'-'
Прямое подключение
'-'
📋
Кол-во игроков
'-'
0%