Шаблон: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...»)
 
мНет описания правки
 
(не показаны 24 промежуточные версии этого же участника)
Строка 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" style="background-color:{{{background-color|#393943}}};border:2px solid {{{border-color|#525261}}};>'''{{{serverName|'-'}}}'''</p>
    <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" style="background:{{{background-color|#393943}}}22;border:2px solid {{{border-color|#525261}}}b0;border-top:none;>
     <div class="serverInfoRound" style="margin-bottom: 3px;">
     <div class="serverInfoRound">
       <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">
       <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">
       <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">
       <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">
       <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">
         <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 {
    display: flex;
    flex-direction: column;
    color: lightgrey;
}
.serverTitle {
    font-size: 18px;
    color: lightgrey;
    text-align: center;
    margin: 0;
    padding: 4px 8px;
    border-radius: 0.3em 0.3em 0 0;
    border-bottom: 3px solid #00000055 !important;
}
.serverInfo {
    padding: 6px;
    border-radius: 0 0 0.3em 0.3em;
    box-shadow: inset 0px 0px 8px 0px rgba(0, 0, 0, 0.4);
}
serverInfo > div {
    margin-bottom: 3px;
}
.serverInfo div[class*="Set"] {
    font-size: 14px;
}
.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;
}
}}

Текущая версия от 10:25, 16 октября 2024

'-'

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