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

мНет описания правки
мНет описания правки
Строка 1: Строка 1:
<div style="background: {{ColorPalette‎‎|{{{Color}}}|Light}}; border: 1px solid {{ColorPalette|{{{Color}}}|Secondary}}; border-radius: {{{border-radius|0 0 0 0}}}; text-align: center; height: 100%; display: flex; align-items: center;">
<templatestyles src="PortalBox/styles.css" /><includeonly>
<div style="border-right: 2px solid {{ColorPalette|{{{Color}}}|Light}}; text-align: center; min-width: 10em; width: 10em; height: auto; flex-direction: column; padding: 1em;">[[file:{{{image}}}|64px|{{!}}link={{{role}}}]]<br>'''[[{{{role|Chief Engineer}}}]]'''</div>
<div class="portalbox" {{ColorPaletteStyles|{{{Color}}}|portalbox}}>
<div style="border: 0 0 1px 1px solid {{ColorPalette|{{{Color}}}|Secondary}} width: 100%; flex-direction: row; max-height: 100%; display: flex: auto; padding: 1em;">{{{description|role description}}}</div>
  <div class="portalbox-role">
</div>
    <div class="portalbox-image">[[File:{{{Image|Generic_clown.png}}}|64px|link={{{Role|{{{Link}}}}}}]]</div>
    <div class="portalbox-name">[[{{{Role|Клоун}}}]]</div>
  </div>
  <div class="portalbox-desc">{{{Desc|Описание роли. В данном случае это просто клоун...}}}</div>
</div></includeonly><noinclude>
Это основной шаблон в PortalBox. Используется для описания роли, её превью и ссылки на её страницу. Весь шаблон целиком кликабелен, это значит что выделить в нём текст НЕВОЗМОЖНО!<br>
Вы можете использовать следующие пропсы:
{| class="wikitable"
! Название !! Описание
|-
| Color || Цвет шаблона, рекомендуется использовать такой же как у секции (Pageframe)
|-
| Image || Изображение одетой в одежду роли куклы. Превью короче.
|-
| Role  || Название роли.
|-
| Link  || Ссылка которая ведёт на страницу роли. Необязательно если страница назвается так же как роль.
|-
| Desc  || Описание роли.
|}


<noinclude>This is the middle element for PortalBox templates. When using this template, ensure it's contained in an appropriate div (text-align: center; as property) otherwise it won't render as an appropriate flexbox/will lack centred text.
Пример использования:
 
<syntaxhighlight lang="wikitext" copy>
Parameters are as follows:<br>
{{PortalBox
<pre>
| Color = Civilian
border-radius: - This is the 'edges' of the PortalBox. For the top, the value should be "1em 1em 0 0" and should be "0 0 1em 1em" for the bottom. Middle segments require no definition.
| Image = Generic_clown.png
colour dark:  - This is the colour of the left-most bounding box (image columns).
| Role  = Офицер Службы Безопасности
colour light: - This is the colour of the right-most bounding box (text rows).
| Desc  = Да, это действительно офицер СБ. Смиритесь с этим.
image:        - This is the file image. It should be rendered as the plain file name (no brackets), followed by any special links.
}}
role          - This is the role text. Put the name of the object/role here.
</syntaxhighlight>
description    - This defines the contents of the right-most bounding box (the text row).</pre></noinclude>
{{PortalBox
| Color = Civilian
| Image = Generic_clown.png
  | Role  = Офицер Службы Безопасности
| Desc  = Да, это действительно офицер СБ. Смиритесь с этим.
}}

Версия от 21:28, 29 мая 2025

Это основной шаблон в PortalBox. Используется для описания роли, её превью и ссылки на её страницу. Весь шаблон целиком кликабелен, это значит что выделить в нём текст НЕВОЗМОЖНО!
Вы можете использовать следующие пропсы:

Название Описание
Color Цвет шаблона, рекомендуется использовать такой же как у секции (Pageframe)
Image Изображение одетой в одежду роли куклы. Превью короче.
Role Название роли.
Link Ссылка которая ведёт на страницу роли. Необязательно если страница назвается так же как роль.
Desc Описание роли.

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

{{PortalBox
 | Color = Civilian
 | Image = Generic_clown.png
 | Role  = Офицер Службы Безопасности
 | Desc  = Да, это действительно офицер СБ. Смиритесь с этим.
}}
Да, это действительно офицер СБ. Смиритесь с этим.