Шаблон:Wiki navbar: различия между версиями

Материал из Celadon | Wiki Skyrat
Перейти к навигации Перейти к поиску
imported>Quacks
Created this template
 
imported>DefaultD
м фикс cell=2
 
(не показано 25 промежуточных версий 8 участников)
Строка 1: Строка 1:
<div style="border-radius: .2em .2em .5em .5em; margin: 1em 1em 1em 1em; background: {{{BGcolor|#444444}}}; margin-left: auto; margin-right: auto;">
<table style="width:100%; text-align:center; background:#{{ColorPalette‎‎|Marine|Light}}; border-style:outset; border-width:.2em; border-color:#{{ColorPalette‎‎|Marine|Secondary}}; border-radius:.5em;">
<div style="background: {{{BGcolor|#444444}}}; border-radius: .2em; color: #FFF; padding: .4em .8em .5em; font-size: 120%"><center>'''Navigation bar'''</center></div>
<tr>
<div style="border: solid {{{LINEcolor|#000000}}}; border-width: 0 0 .15em 0;"></div>
<td style="font-weight: bold; margin: 1em 1em 1em 1em; margin-left: auto; margin-right: auto; background:#{{ColorPalette‎‎|Marine|Primary}}; border-style:double; border-width:.2em; border-color:#{{ColorPalette‎‎|Marine|Primary Bold}}; border-radius:.2em; color:#{{ColorPalette‎‎|Marine|Header Text}}; font-size: 150%"> <span style="float:left;">{{#fas:compass}}</span>'''Навигационная панель'''<span style="float:right;">{{#fas:compass}}</span>
<div style="display: flex;">
</td>
<!-- Start cell 1 -->
</tr>
<div style="background: {{{C1outBGcolor|#444444}}}; border-radius: {{{C1outBORDRAD|0 0 0 .2em}}}; border: solid {{{C1lineBGcolor|#000000}}}; width: 20%; border-width: {{{C1lineWIDTH|0 0 0 0}}}; box-shadow: {{{C1outSHA|0 0 .3em #999}}};">
<tr style="background:#{{ColorPalette‎‎|Marine|Light}}; display:flex; flex-flow:row wrap; font-weight: bold; hyphens: auto;">
<div style="padding: .5em; background: {{{C1inBGcolor|#444444}}}; margin:.25em; border-radius: .5em; box-shadow: {{{C1inSHA|0 0 0 #999}}};">
{{#if:{{{Cell1|}}}
<center>[[Main Page|<span style="font-size: 300%; color: {{{ICONcolor|#202122}}}; padding: .3em .31em .3em .31em;">{{#fas:home}}</span>]]<br>
|
<span style="font-size:110%">'''[[Main Page|Return to Main page]]'''</span></center>
<td style="color:black; border-style:double; border-width:.2em; border-color:#{{ColorPalette‎‎|Marine|Tertiary}}; border-radius:.3em; box-shadow: 0 0 .3em #999; flex: 1 0 12em;"> [[Заглавная страница|<span style="font-size: 250%; color:black;">{{#fas:home}}</span>]]<br>[[Заглавная страница|<span style="font-size:110%; color:black;">Заглавная страница</span>]]
</div>
</td>
</div>
|
<!-- End cell 1 -->
<td style="background:#{{ColorPalette‎‎|Marine|Primary}}; color:#{{ColorPalette‎‎|Marine|Header Text}}; border-style:double; border-width:.2em; border-color:#{{ColorPalette‎‎|Marine|Primary Bold}}; border-radius:.3em; box-shadow: 0 0 .3em #999; flex: 1 0 12em;"> [[Заглавная страница|<span style="font-size: 250%; color:#{{ColorPalette‎‎|Marine|Header Text}};">{{#fas:home}}</span>]]<br>[[Заглавная страница|<span style="font-size:110%; color:#{{ColorPalette‎‎|Marine|Header Text}};">Заглавная страница</span>]]
<!-- Start cell 2 -->
</td>
<div style="background: {{{C2outBGcolor|#444444}}}; border-radius: {{{C2outBORDRAD|0 0 0 0}}}; border: solid {{{C2lineBGcolor|#000000}}}; width: 20%; border-width: {{{C2lineWIDTH|0 0 0 0}}}; box-shadow: {{{C2outSHA|0 0 .3em #999}}};">
}}
<div style="padding: .5em; background: {{{C2inBGcolor|#444444}}}; margin:.25em; border-radius: .5em; box-shadow: {{{C2inSHA|0 0 0 #999}}};">
{{#if:{{{Cell2|}}}
<center>[[Rules|<span style="font-size: 300%; color: {{{ICONcolor|#202122}}}; padding: .3em .31em .3em .31em;">{{#fas:gavel}}</span>]]<br>
|
<span style="font-size:110%">'''[[Rules|Server rules]]'''</span></center>
<td style="color:black; border-style:double; border-width:.2em; border-color:#{{ColorPalette‎‎|Marine|Tertiary}}; border-radius:.3em; box-shadow: 0 0 .3em #999; flex: 1 0 12em;"> [[Политики|<span style="font-size: 250%; color:black;">{{#fas:gavel}}</span>]]<br>[[Политики|<span style="font-size:110%; color:black;">Основная Информация</span>]]
</div>
</td>
</div>
|
<!-- End cell 2 -->
<td style="background:#{{ColorPalette‎‎|Marine|Primary}}; color:#{{ColorPalette‎‎|Marine|Header Text}}; border-style:double; border-width:.2em; border-color:#{{ColorPalette‎‎|Marine|Primary Bold}}; border-radius:.3em; box-shadow: 0 0 .3em #999; flex: 1 0 12em;"> [[Политики|<span style="font-size: 250%; color:#{{ColorPalette‎‎|Marine|Header Text}};">{{#fas:gavel}}</span>]]<br>[[Политики|<span style="font-size:110%; color:#{{ColorPalette‎‎|Marine|Header Text}};">Основная Информация</span>]]
<!-- Start cell 3 -->
</td>
<div style="background: {{{C3outBGcolor|#444444}}}; border-radius: {{{C3outBORDRAD|0 0 0 0}}}; border: solid {{{C3lineBGcolor|#000000}}}; width: 20%; border-width: {{{C3lineWIDTH|0 0 0 0}}}; box-shadow: {{{C3outSHA|0 0 .3em #999}}};">
}}
<div style="padding: .5em; background: {{{C3inBGcolor|#444444}}}; margin:.25em; border-radius: .5em; box-shadow: {{{C3inSHA|0 0 0 #999}}};">
{{#if:{{{Cell3|}}}
<center>[[Jobs|<span style="font-size: 300%; color: {{{ICONcolor|#202122}}}; padding: .3em .31em .3em .31em;">{{#fas:address-card}}</span>]]<br>
|
<span style="font-size:110%">'''[[Jobs]]'''</span></center>
<td style="color:black; border-style:double; border-width:.2em; border-color:#{{ColorPalette‎‎|Marine|Tertiary}}; border-radius:.3em; box-shadow: 0 0 .3em #999; flex: 1 0 12em;"> [[Роли и должности|<span style="font-size: 250%; color:black;">{{#fas:address-card}}</span>]]<br>[[Роли и должности|<span style="font-size:110%; color:black;">Роли и должности</span>]]
</div>
</td>
</div>
|
<!-- End cell 3 -->
<td style="background:#{{ColorPalette‎‎|Marine|Primary}}; color:#{{ColorPalette‎‎|Marine|Header Text}}; border-style:double; border-width:.2em; border-color:#{{ColorPalette‎‎|Marine|Primary Bold}}; border-radius:.3em; box-shadow: 0 0 .3em #999; flex: 1 0 12em;"> [[Роли и должности|<span style="font-size: 250%; color:#{{ColorPalette‎‎|Marine|Header Text}};">{{#fas:address-card}}</span>]]<br>[[Роли и должности|<span style="font-size:110%; color:#{{ColorPalette‎‎|Marine|Header Text}};">Роли и должности</span>]]
<!-- Start cell 4 -->
</td>
<div style="background: {{{C4outBGcolor|#444444}}}; border-radius: {{{C4outBORDRAD|0 0 0 0}}}; border: solid {{{C4lineBGcolor|#000000}}}; width: 20%; border-width: {{{C4lineWIDTH|0 0 0 0}}}; box-shadow: {{{C4outSHA|0 0 .3em #999}}};">
}}
<div style="padding: .5em; background: {{{C4inBGcolor|#444444}}}; margin:.25em; border-radius: .5em; box-shadow: {{{C4inSHA|0 0 0 #999}}};">
{{#if:{{{Cell4|}}}
<center>[[Guides|<span style="font-size: 300%; color: {{{ICONcolor|#202122}}}; padding: .3em .31em .3em .31em;">{{#fas:info-circle}}</span>]]<br>
|
<span style="font-size:110%">'''[[Guides]]'''</span></center>
<td style="color:black; border-style:double; border-width:.2em; border-color:#{{ColorPalette‎‎|Marine|Tertiary}}; border-radius:.3em; box-shadow: 0 0 .3em #999; flex: 1 0 12em;"> [[Руководства|<span style="font-size: 250%; color:black;">{{#fas:info-circle}}</span>]]<br>[[Руководства|<span style="font-size:110%; color:black;">Руководства</span>]]
</div>
</td>
</div>
|
<!-- End cell 4 -->
<td style="background:#{{ColorPalette‎‎|Marine|Primary}}; color:#{{ColorPalette‎‎|Marine|Header Text}}; border-style:double; border-width:.2em; border-color:#{{ColorPalette‎‎|Marine|Primary Bold}}; border-radius:.3em; box-shadow: 0 0 .3em #999; flex: 1 0 12em;"> [[Руководства|<span style="font-size: 250%; color:#{{ColorPalette‎‎|Marine|Header Text}};">{{#fas:info-circle}}</span>]]<br>[[Руководства|<span style="font-size:110%; color:#{{ColorPalette‎‎|Marine|Header Text}};">Руководства</span>]]
<!-- Start cell 5 -->
</td>
<div style="background: {{{C5outBGcolor|#444444}}}; border-radius: {{{C5outBORDRAD|0 0 .2em 0}}}; border: solid {{{C5lineBGcolor|#000000}}}; width: 20%; border-width: {{{C5lineWIDTH|0 0 0 0}}}; box-shadow: {{{C5outSHA|0 0 .3em #999}}};">
}}
<div style="padding: .5em; background: {{{C5inBGcolor|#444444}}}; margin:.25em; border-radius: .5em; box-shadow: {{{C5inSHA|0 0 0 #999}}};">
{{#if:{{{Cell5|}}}
<center>[[Objects|<span style="font-size: 300%; color: {{{ICONcolor|#202122}}}; padding: .3em .31em .3em .31em;">{{#fas:wrench}}</span>]]<br>
|
<span style="font-size:110%">'''[[Objects]]'''</span></center>
<td style="color:black; border-style:double; border-width:.2em; border-color:#{{ColorPalette‎‎|Marine|Tertiary}}; border-radius:.3em; box-shadow: 0 0 .3em #999; flex: 1 0 12em;"> [[Объекты|<span style="font-size: 250%; color:black;">{{#fas:wrench}}</span>]]<br>[[Объекты|<span style="font-size:110%; color:black;">Объекты</span>]]
</div>
</td>
</div>
|
<!-- End cell 5 -->
<td style="background:#{{ColorPalette‎‎|Marine|Primary}}; color:#{{ColorPalette‎‎|Marine|Header Text}}; border-style:double; border-width:.2em; border-color:#{{ColorPalette‎‎|Marine|Primary Bold}}; border-radius:.3em; box-shadow: 0 0 .3em #999; flex: 1 0 12em;"> [[Объекты|<span style="font-size: 250%; color:#{{ColorPalette‎‎|Marine|Header Text}};">{{#fas:wrench}}</span>]]<br>[[Объекты|<span style="font-size:110%; color:#{{ColorPalette‎‎|Marine|Header Text}};">Объекты</span>]]
</div></div><noinclude>
</td>
=== Parameter description ===
}}
<div style="background: red; color: #FFF"><center><u>'''DO NOT EDIT THIS TEMPLATE UNLESS YOU KNOW EXACTLY WHAT YOU ARE DOING'''</u></center></div>
{{#if:{{{Cell6|}}}
<pre>
|
BGcolor = Controls the main headers background color. Works with # color values.
<td style="color:black; border-style:double; border-width:.2em; border-color:#{{ColorPalette‎‎|Marine|Tertiary}}; border-radius:.3em; box-shadow: 0 0 .3em #999; flex: 1 0 12em;"> [[Навигатор по лору|<span style="font-size: 250%; color:black;">{{#fas:globe-europe}}</span>]]<br>[[Навигатор по лору|<span style="font-size:110%; color:black;">Навигатор по лору</span>]]
LINEcolor = Controls the color of the horizontal line through the template. Works with # color values.
</td>
ICONcolor = Controls the color of all the icons. Works with # color values. (Set to either #202122 or #FFF)
|
 
<td style="background:#{{ColorPalette‎‎|Marine|Primary}}; color:#{{ColorPalette‎‎|Marine|Header Text}}; border-style:double; border-width:.2em; border-color:#{{ColorPalette‎‎|Marine|Primary Bold}}; border-radius:.3em; box-shadow: 0 0 .3em #999; flex: 1 0 12em;"> [[Навигатор по лору|<span style="font-size: 250%; color:#{{ColorPalette‎‎|Marine|Header Text}};">{{#fas:globe-europe}}</span>]]<br>[[Навигатор по лору|<span style="font-size:110%; color:#{{ColorPalette‎‎|Marine|Header Text}};">Навигатор по лору</span>]]
---CELL PARAMETERS--- (C# is the cell number. 1 = left 5 = right)
</td>
 
}}
C#outBGcolor = Controls the color value of the outer background in any given cell
</tr>
C#outSHA = Controls if a shadow is shown or not on the outside of the cell (Use 0 0 .3em #999 for shadow and 0 0 0 #999 for no shadow)
</table>
C#inBGcolor = Controls the color value of the inner background.
<noinclude>
C#lineBGcolor = Controls the color value of the line. (Set to either #FFF or the same as LINEcolor)
C#lineWIDTH = Controls the width of line's between each cell (Set to .2em or .15em)
C#inSHA = Controls if a shadow is shown or not on the inside of the cell (Use 0 0 .3em #999 for shadow and 0 0 0 #999 for no shadow)
C#outBORDRAD = Controls the outside border radius.
</pre>
[[Category:Templates]][[Category:Misc Styling Templates]]
[[Category:Templates]][[Category:Misc Styling Templates]]
</noinclude>
</noinclude>

Текущая версия от 10:31, 1 июня 2025