Перейти к содержанию

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

Материал из Tau Ceti Station Wiki
Нет описания правки
Richard Jones (обсуждение | вклад)
Нет описания правки
 
(не показано 18 промежуточных версий 6 участников)
Строка 1: Строка 1:
<noinclude><code>
<noinclude><code>
</noinclude>{|width="100%" cellspacing="0" cellpadding="2"
</noinclude><templatestyles src="Template:JobPageHeader/styles.css" />
|bgcolor="{{{headerbgcolor|#bbbbbb}}}" align="center" colspan=2|<font color="{{{headerfontcolor|#000000}}}">'''{{{stafftype|UNDEFINED}}} STAFF'''</font>
{|width="100%" class="jobpageheader" cellspacing="0" cellpadding="2" style="border: 1px solid {{ColorPalette|{{{department}}}|Light}}; border-radius: .4em;"
| style="background:{{ColorPalette|{{{department}}}|Opaque}};" align="center" colspan=2|<span style="color:white">'''{{{stafftype|Класс сотрудника}}}'''</span>
|-
|-
|width = 150 align=center bgcolor="{{{imagebgcolor|#cccccc}}}"|{{#if:{{{img_generic|}}}| [[File:{{{img_generic|{{{jobtitle}}}.png}}}]] | }} {{#if:{{{img|}}}| [[File:{{{img|{{{jobtitle}}}.png}}}]] | }} {{#if:{{{img|}}} | <br> | {{#if:{{{img_generic|}}} | <br> | }} }} '''{{{jobtitle|Job}}}'''
|width = 150 align=center style="background:{{ColorPalette|{{{department}}}|Secondary}};"|{{#if:{{{img_generic|}}}| [[File:{{{img_generic|{{{jobtitle}}}.png}}}|{{{img_size|64px}}}|class=pageimage|{{{jobtitle|Job}}}]] | }} {{#if:{{{img|}}}| [[File:{{{img|{{{jobtitle}}}.png}}}|class=pageimage]] | }} {{#if:{{{img|}}} | <br> | {{#if:{{{img_generic|}}} | <br> | }} }} '''{{{jobtitle|Job}}}'''
|'''Доступ:''' {{{access|Not defined}}}<br>'''Сложность:''' {{{difficulty|Not defined}}}<br>'''Начальство:''' {{{superior|Not defined}}}<br>'''Задачи:''' {{{duties|Not defined}}}<br>'''Гайды:''' {{{guides|Not defined}}}
| style="background:{{ColorPalette|{{{department}}}|Transparent}}"|'''Доступ:''' {{{access|Отсеки, к которым есть доступ у данной профессии}}}<br>'''Сложность:''' {{{difficulty|Сложность профессии}}}<br>'''Начальство:''' {{{superior|Вышестоящие лица, которые могут давать непосредственные приказы}}}<br>'''Задачи:''' {{{duties|Задачи данной профессии}}}<br>'''Гайды:''' {{{guides|Список гайдов для данной профессии}}}
|}
|}
<noinclude></code>
<noinclude></code>
This template is intended to be at the top of each of the jobs pages to provide a basic overview of each job.
Используйте этот шаблон в шапке страниц профессий.


== Meaning of parameters ==
== Использование ==
Ниже представлен готовый фрагмент кода и его внешний вид.


'''headerbgcolor''' is the background color of the upper part which spans the entire width of the screen. This should be a dark color.<br>
<pre><code>{{JobPageHeader
'''headerfontcolor''' is the font color of the same part as headerbgcolor<br>
|department = Command (какую палитру используем в ColorPalette, отвечает за цвета)
'''stafftype''' is the word that is added before STAFF. So adding the word MAINTENANCE here yields MAINTENANCE STAFF. Intended to be in caps.<br>
|stafftype = Глава (тип роли)
'''imagebgcolor''' is the background color of the space behind the image and the job title. this should be a light color as the job title is always black.<br>
|img_generic = Captain.png (картинка роли)
'''img''' is the in-action image file, without the "File:" or "Image:" prefix. (see examples below)
|img_size = 64px (Размер картинки)
'''img_generic''' is the generic image file, without the "File:" or "Image:" prefix. (see examples below)
|jobtitle = Капитан (название роли)
'''jobtitle, access, difficulty, guides and duties''' are self-explanatory.
|access = Полный (доступ)
 
|difficulty = Очень сложно (сложность)
== Usage ==
|superior = Space Law и Nanotrasen Officials (начальство, руководство к действию)
Example of the finished product. Check the source code for the code that generated the thing below. Please document any changes you make to the template code in the parameters and usage sections
|duties = Коммандовать кораблем, защищать ядерный диск, останавливать революции, убить всех, кто угрожает станции. (задачи)
 
|guides = нет отдельных гайдов (ссылки на гайды)
No image defined:
}}</code></pre>
 
{{JobPageHeader
|headerbgcolor = darkblue
|headerfontcolor = white
|stafftype = COMMAND
|imagebgcolor = lightblue
|jobtitle = Captain
|access = All
|difficulty = Very hard
|superior = Space Law and Nanotrasen Officials
|duties = Command the ship, protect the nuke disk, stop revolutions, get killed for all mentioned before.
|guides = no separate guides
}}
 
Only in-action image defined:
 
{{JobPageHeader
|headerbgcolor = darkblue
|headerfontcolor = white
|stafftype = COMMAND
|imagebgcolor = lightblue
|img = Captain.png
|jobtitle = Captain
|access = All
|difficulty = Very hard
|superior = Space Law and Nanotrasen Officials
|duties = Command the ship, protect the nuke disk, stop revolutions, get killed for all mentioned before.
|guides = no separate guides
}}
 
Only generic image defined:
 
{{JobPageHeader
|headerbgcolor = darkblue
|headerfontcolor = white
|stafftype = COMMAND
|imagebgcolor = lightblue
|img_generic = Generic_captain.png
|jobtitle = Captain
|access = All
|difficulty = Very hard
|superior = Space Law and Nanotrasen Officials
|duties = Command the ship, protect the nuke disk, stop revolutions, get killed for all mentioned before.
|guides = no separate guides
}}
 
Both images defined:


{{JobPageHeader
{{JobPageHeader
|headerbgcolor = darkblue
|department = Command
|headerfontcolor = white
|stafftype = Глава
|stafftype = COMMAND
|img_generic = Captain.png
|imagebgcolor = lightblue
|img_size = 64px
|img = Captain.png
|jobtitle = Капитан
|img_generic = Generic_captain.png
|access = Полный
|jobtitle = Captain
|difficulty = Очень сложно
|access = All
|superior = Space Law и Nanotrasen Officials  
|difficulty = Very hard
|duties = Коммандовать кораблем, защищать ядерный диск, останавливать революции, убить всех, кто угрожает станции.  
|superior = Space Law and Nanotrasen Officials
|guides = нет отдельных гайдов
|duties = Command the ship, protect the nuke disk, stop revolutions, get killed for all mentioned before.
|guides = no separate guides
}}
}}


[[Category:Templates]]
[[Category:Templates]]
</noinclude>
</noinclude>

Текущая версия от 09:37, 10 января 2026

Класс сотрудника
Job Доступ: Отсеки, к которым есть доступ у данной профессии
Сложность: Сложность профессии
Начальство: Вышестоящие лица, которые могут давать непосредственные приказы
Задачи: Задачи данной профессии
Гайды: Список гайдов для данной профессии

Используйте этот шаблон в шапке страниц профессий.

Использование

Ниже представлен готовый фрагмент кода и его внешний вид.

<code>{{JobPageHeader
|department = Command (какую палитру используем в ColorPalette, отвечает за цвета)
|stafftype = Глава (тип роли)
|img_generic = Captain.png (картинка роли)
|img_size = 64px (Размер картинки)
|jobtitle = Капитан (название роли)
|access = Полный (доступ)
|difficulty = Очень сложно (сложность)
|superior = Space Law и Nanotrasen Officials (начальство, руководство к действию)
|duties = Коммандовать кораблем, защищать ядерный диск, останавливать революции, убить всех, кто угрожает станции. (задачи)
|guides = нет отдельных гайдов (ссылки на гайды)
}}</code>
Глава
Капитан
Капитан
Доступ: Полный
Сложность: Очень сложно
Начальство: Space Law и Nanotrasen Officials
Задачи: Коммандовать кораблем, защищать ядерный диск, останавливать революции, убить всех, кто угрожает станции.
Гайды: нет отдельных гайдов