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

Материал из Tau Ceti Station Wiki
Перейти к навигации Перейти к поиску
 
Строка 4: Строка 4:
|-
|-
|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 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}}}'''
|'''Доступ:''' {{{access|Not defined}}}<br>'''Сложность:''' {{{difficulty|Not defined}}}<br>'''Вышестоящие лица:''' {{{superior|Not defined}}}<br>'''Задачи:''' {{{duties|Not defined}}}<br>'''Гайды:''' {{{guides|Not defined}}}
|'''Доступ:''' {{{access|Not defined}}}<br>'''Сложность:''' {{{difficulty|Not defined}}}<br>'''Начальство:''' {{{superior|Not defined}}}<br>'''Задачи:''' {{{duties|Not defined}}}<br>'''Гайды:''' {{{guides|Not defined}}}
|}
|}
<noinclude></code>
<noinclude></code>

Версия 01:30, 11 января 2013

UNDEFINED STAFF
Job Доступ: Not defined
Сложность: Not defined
Начальство: Not defined
Задачи: Not defined
Гайды: 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.

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 Доступ: All
Сложность: Very hard
Начальство: Space Law and Nanotrasen Officials
Задачи: Command the ship, protect the nuke disk, stop revolutions, get killed for all mentioned before.
Гайды: no separate guides


Only in-action image defined:

COMMAND STAFF
Captain.png
Captain
Доступ: All
Сложность: Very hard
Начальство: Space Law and Nanotrasen Officials
Задачи: Command the ship, protect the nuke disk, stop revolutions, get killed for all mentioned before.
Гайды: no separate guides


Only generic image defined:

COMMAND STAFF
Файл:Generic captain.png
Captain
Доступ: All
Сложность: Very hard
Начальство: Space Law and Nanotrasen Officials
Задачи: Command the ship, protect the nuke disk, stop revolutions, get killed for all mentioned before.
Гайды: no separate guides


Both images defined:

COMMAND STAFF
Файл:Generic captain.png Captain.png
Captain
Доступ: All
Сложность: Very hard
Начальство: Space Law and Nanotrasen Officials
Задачи: Command the ship, protect the nuke disk, stop revolutions, get killed for all mentioned before.
Гайды: no separate guides