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

imported>Atlanta-Ned
м Templates are hard mmmmmkay?
мНет описания правки
 
(не показаны 23 промежуточные версии 6 участников)
Строка 1: Строка 1:
<noinclude><code>
<includeonly><templatestyles src="JobPageHeader/styles.css" />
</noinclude>{|width="100%" cellspacing="0" cellpadding="2"
<div class="jobpageheader mobile-support-new {{#ifeq:{{{theme|}}}|Rainbow|rgb|tgui-background}}" {{#ifeq:{{{theme|}}}|Rainbow||style="{{ColorPaletteStyles|{{{color}}}}}"}}>
|bgcolor="{{{headerbgcolor|#bbbbbb}}}" align="center" colspan=2|<font color="{{{headerfontcolor|#000000}}}">'''{{{stafftype|UNDEFINED}}} STAFF'''</font>
  <div class="jobpageheader-title">{{{stafftype}}}</div>
|-
  <div class="jobpageheader-content">
|width = 150 align=center bgcolor="{{{imagebgcolor|#cccccc}}}"|{{#if:{{{img_generic|}}}| [[File:{{{img_generic|{{{jobtitle}}}.png}}}|50px]] | }} {{#if:{{{img|}}}| [[File:{{{img|{{{jobtitle}}}.png}}}|50px]] | }} {{#if:{{{img|}}} | <br> | {{#if:{{{img_generic|}}} | <br> | }} }} '''{{{jobtitle|Job}}}'''
    <div class="jobpageheader-preview">
|'''Access:''' {{{access|Not defined}}}<br>'''[[Terminology#Additional_Access | Additional Access]]:''' {{{additional|Not defined}}}<br>'''Difficulty:''' {{{difficulty|Not defined}}}<br>'''Supervisors:''' {{{superior|Not defined}}}<br>'''Duties:''' {{{duties|Not defined}}}<br>'''Guides:''' {{{guides|Not defined}}} {{#if: {{{quote|}}} | <br>'''Quote:''' ''{{{quote}}}''}}
      <div class="jobpageheader-preview-title">{{{jobtitle}}}</div>
|}
      <div class="jobpageheader-preview-image">{{#if:{{{img|}}}|[[File:{{{img}}}|64px]]|{{Icon|question|size=4.5}}}}</div>
<noinclude></code>
    </div>
This template is intended to be at the top of each of the jobs pages to provide a basic overview of each job.
    <div class="jobpageheader-info" tabindex="0">
      <div class="jobpageheader-info-wrapper">
        {| style="background: transparent;"
        | '''Глава:'''      || {{{superior|Не указан}}}
        |-
        | '''Сложность:'''  || {{{difficulty|Не указано}}}
        |-
        | '''Руководства:''' || {{{guides|Не указано}}}
        |-
        | '''Обязанности:''' || {{{duties|Не указано}}}
        |-
        {{#if:{{{quote|}}}|{{!}} '''Цитата:''' {{!}}{{!}} {{{quote}}}|}}
        |}
      </div>
    </div>
  </div>
  <div class="jobpageheader-more" tabindex="0">{{Icon|angle-down}}Другие отделы</div>
  <div class="jobpageheader-tabs">{{DepartmentTabs}}</div>
  {{#ifeq:{{{theme|}}}|Rainbow|<div class="rainbow"></div>|}}
</div>{{SEO}}</includeonly><noinclude>
Этот шаблон должен быть сверху страниц ролей.  


== Meaning of parameters ==
== Параметры ==
 
'''theme''' - Цвет всего шаблона, все цвета можно посмотреть [[ColorPalette | тут]]<br>
'''headerbgcolor''' is the background color of the upper part which spans the entire width of the screen. This should be a dark color.<br>
'''img''' - Добавляет любое изображение, без использования <nowiki>[[File:]]</nowiki>. Расширение и размер всё ещё стоит указывать.<br>
'''headerfontcolor''' is the font color of the same part as headerbgcolor<br>
'''stafftype''' - К какому отделу принадлежит роль? Текст в заголовке<br>
'''stafftype''' is the word that is added before STAFF. So adding the word MAINTENANCE here yields MAINTENANCE STAFF. Intended to be in caps.<br>
'''jobtitle''' - Название джобки<br>
'''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>
'''access''' - Имеющийся доступ<br>
'''img''' is the in-action image file, without the "File:" or "Image:" prefix. (see examples below)
'''difficulty''' - Сложность игры на данной роли<br>
'''img_generic''' is the generic image file, without the "File:" or "Image:" prefix. (see examples below)
'''guides''' - Руководство для данной роли<br>
'''jobtitle, access, difficulty, guides and duties''' are self-explanatory. '''quote''' will only show if the parameter is specified
'''duties''' - Обязаности данной роли<br>
 
'''quote''' - Цитата
== Usage ==
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
 
No image defined:


== Пример использования ==
{{JobPageHeader
{{JobPageHeader
|headerbgcolor = darkblue
|theme = Command
|headerfontcolor = white
|stafftype = Командование
|stafftype = COMMAND
|jobtitle = Капитан
|imagebgcolor = lightblue
|access = Везде
|jobtitle = Captain
|difficulty = Очень сложно
|access = All
|superior = Космический закон и офицеры ЦК
|additional = N/A
|duties = Управлять станцией, защищать ядерный диск, останавливать революции, умереть от всего ранее перечисленного
|difficulty = Very hard
|guides = Нет отдельного руководства
|superior = Space Law and Nanotrasen Officials
|quote = Вау, я ещё живой!
|duties = Command the ship, protect the nuke disk, stop revolutions, get killed for all mentioned before.
|guides = no separate guides
|quote = Look at me, I am the captain now.
}}
}}
Only in-action image defined:
{{JobPageHeader
|headerbgcolor = darkblue
|headerfontcolor = white
|stafftype = COMMAND
|imagebgcolor = lightblue
|img = Captain_action.png
|jobtitle = Captain
|access = All
|additional = N/A
|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
|additional = N/A
|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
|theme = Rainbow
|headerfontcolor = white
|img = Generic_captain.png
|stafftype = COMMAND
|stafftype = Командование
|imagebgcolor = lightblue
|jobtitle = Капитан
|img = Captain_action.png
|access = Везде
|img_generic = Generic_captain.png
|difficulty = Очень сложно
|jobtitle = Captain
|superior = Космический закон и офицеры ЦК
|access = All
|duties = Управлять станцией, защищать ядерный диск, останавливать революции, умереть от всего ранее перечисленного
|additional = N/A
|guides = Нет отдельного руководства
|difficulty = Very hard
|quote = Вау, я ещё живой!
|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
}}
}}


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

Текущая версия от 11:57, 5 июня 2025

Этот шаблон должен быть сверху страниц ролей.

Параметры

theme - Цвет всего шаблона, все цвета можно посмотреть тут
img - Добавляет любое изображение, без использования [[File:]]. Расширение и размер всё ещё стоит указывать.
stafftype - К какому отделу принадлежит роль? Текст в заголовке
jobtitle - Название джобки
access - Имеющийся доступ
difficulty - Сложность игры на данной роли
guides - Руководство для данной роли
duties - Обязаности данной роли
quote - Цитата

Пример использования

Командование
Капитан
Глава: Космический закон и офицеры ЦК
Сложность: Очень сложно
Руководства: Нет отдельного руководства
Обязанности: Управлять станцией, защищать ядерный диск, останавливать революции, умереть от всего ранее перечисленного
Цитата: Вау, я ещё живой!
Другие отделы
Командование
Капитан
Глава: Космический закон и офицеры ЦК
Сложность: Очень сложно
Руководства: Нет отдельного руководства
Обязанности: Управлять станцией, защищать ядерный диск, останавливать революции, умереть от всего ранее перечисленного
Цитата: Вау, я ещё живой!
Другие отделы