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

Материал из MassMeta Wiki
Перейти к навигации Перейти к поиску
Нет описания правки
Метка: отменено
м Откат правок Glamyr (обсуждение) к последней версии [[User:imported>Aliceee2ch|imported>Aliceee2ch]]
Метка: откат
 
(не показано 7 промежуточных версий этого же участника)
Строка 1: Строка 1:
<includeonly><templatestyles src="Templates:JobPageHeader/styles.css" />
<noinclude><code>
<div class="ss13-job-header">
</noinclude>{|width="100%" cellspacing="0" cellpadding="2"
    <div class="job-header-top-row">
|bgcolor="{{{headerbgcolor|#bbbbbb}}}" align="center" colspan=2|<font color="{{{headerfontcolor|#000000}}}">'''{{{stafftype|UNDEFINED}}} STAFF'''</font>
        <div class="job-header-main-title">
|-
            {{{name|Название Профессии}}}
|width = 150 align=center bgcolor="{{{imagebgcolor|#cccccc}}}"|{{#if:{{{img_generic|}}}| [[File:{{{img_generic|{{{jobtitle}}}.png}}}|64px]] | }} {{#if:{{{img|}}}| [[File:{{{img|{{{jobtitle}}}.png}}}|64px]] | }} {{#if:{{{img|}}} | <br> | {{#if:{{{img_generic|}}} | <br> | }} }} '''{{{jobtitle|Job}}}'''
        </div>
|'''Access:''' {{{access|Not defined}}}<br> {{#if:{{{additional|}}}|'''[[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="job-header-icon-box">
|}
            <div class="job-header-pixel-image">
<noinclude></code>
                [[File:{{{image|Hudno_id.png}}}|86x86px|center|link=]]
This template is intended to be at the top of each of the jobs pages to provide a basic overview of each job.
            </div>
        </div>
    </div>


    <div class="job-header-grid">
== Meaning of parameters ==
        <div class="job-grid-tile access-tile">
            <div class="tile-label">Доступ в отсеки</div>
            <div class="tile-value">{{{access|Базовый}}}</div>
        </div>


        <div class="job-grid-tile difficulty-tile" style="--tile-color: {{{difficulty_color|#8b949e}}};">
'''headerbgcolor''' is the background color of the upper part which spans the entire width of the screen. This should be a dark color.<br>
            <div class="tile-label">Сложность</div>
'''headerfontcolor''' is the font color of the same part as headerbgcolor<br>
            <div class="tile-value" style="color: {{{difficulty_color|var(--text-main)}}};">{{{difficulty|Низкая}}}</div>
'''stafftype''' is the word that is added before STAFF. So adding the word MAINTENANCE here yields MAINTENANCE STAFF. Intended to be in caps.<br>
        </div>
'''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''' is the in-action image file, without the "File:" or "Image:" prefix. (see examples below)
'''img_generic''' is the generic image file, without the "File:" or "Image:" prefix. (see examples below)
'''jobtitle, access, difficulty, guides and duties''' are self-explanatory. '''quote''' will only show if the parameter is specified


        <div class="job-grid-tile dept-tile" style="--tile-color: {{{dept_color|var(--border-color)}}};">
== Usage ==
            <div class="tile-label">Департамент</div>
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
            <div class="tile-value">{{{department|Отдела нет}}}</div>
        </div>


        <div class="job-grid-tile supervisor-tile">
No image defined:
            <div class="tile-label">Начальник</div>
            <div class="tile-value">{{{superior|{{{supervisor|Ментовка}}}}}}</div>
        </div>


        <div class="job-grid-tile duty-tile">
{{JobPageHeader
            <div class="tile-label">Главная цель</div>
|headerbgcolor = darkblue
            <div class="tile-value">{{{duty|Выжить}}}</div>
|headerfontcolor = white
        </div>
|stafftype = COMMAND
    </div>
|imagebgcolor = lightblue
|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
|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:


    <div class="job-header-desc-block">
{{JobPageHeader
        <span class="desc-highlight">Дополнительная Информация:</span> {{{description|Бла Бла Бла.}}}
|headerbgcolor = darkblue
    </div>
|headerfontcolor = white
</div>
|stafftype = COMMAND
</includeonly><noinclude>
|imagebgcolor = lightblue
Шаблон заголовка профессий
|img_generic = Generic_captain.png
[[Category:Templates]]
|jobtitle = Captain
</noinclude>
|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
|name=Атмосферный техник (Atmospheric Technician)
|headerbgcolor = darkblue
|image=Generic_atmos.png
|headerfontcolor = white
|department=Инженерный отдел
|stafftype = COMMAND
|dept_color=#ffaa00
|imagebgcolor = lightblue
|access=Атмосферный отсек, Инженерный отсек, Технические туннели
|img = Captain_action.png
|difficulty=Высокая
|img_generic = Generic_captain.png
|difficulty_color=#f85149
|jobtitle = Captain
|supervisor=Старший Инженер (CE)
|access = All
|duty=Обеспечение станции воздухом, фильтрация газов, тушение пожаров
|additional = N/A
|description=Ваша зона ответственности — атмосфера станции. Настраивайте дистрибуцию газов, следите за давлением в трубах, выкачивайте плазму из коридоров после очередных экспериментов ученых и ни в коем случае не открывайте клапан с тритием без веской причины.
|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
}}
}}
[[Category:Templates]]
</noinclude>

Текущая версия от 15:07, 28 июня 2026

UNDEFINED STAFF
Job Access: Not defined
Difficulty: Not defined
Supervisors: Not defined
Duties: Not defined
Guides: Not defined

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.
headerfontcolor is the font color of the same part as headerbgcolor
stafftype is the word that is added before STAFF. So adding the word MAINTENANCE here yields MAINTENANCE STAFF. Intended to be in caps.
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.
img is the in-action image file, without the "File:" or "Image:" prefix. (see examples below) img_generic is the generic image file, without the "File:" or "Image:" prefix. (see examples below) jobtitle, access, difficulty, guides and duties are self-explanatory. quote will only show if the parameter is specified

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:

COMMAND STAFF
Captain Access: All
Additional Access: N/A
Difficulty: Very hard
Supervisors: 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
Quote: Look at me, I am the captain now.


Only in-action image defined:

COMMAND STAFF

Captain
Access: All
Additional Access: N/A
Difficulty: Very hard
Supervisors: 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:

COMMAND STAFF

Captain
Access: All
Additional Access: N/A
Difficulty: Very hard
Supervisors: 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:

COMMAND STAFF

Captain
Access: All
Additional Access: N/A
Difficulty: Very hard
Supervisors: 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