Шаблон:PortalBox: различия между версиями
Aylong (обсуждение | вклад) Нет описания правки |
Aylong (обсуждение | вклад) Нет описания правки |
||
(не показано 9 промежуточных версий 2 участников) | |||
Строка 1: | Строка 1: | ||
<div style="text-align: | <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;"> | ||
<div style=" | <div style="border-right: 1px solid {{ColorPalette|{{{Color}}}|Light}}; text-align: center; min-width: 13em; height: auto; flex-direction: column; padding: 1em;">[[file:{{{image}}}|64px|{{!}}link={{{role}}}]]<br>'''[[{{{role|Chief Engineer}}}]]'''</div> | ||
<div style="border | <div style="border: 0 0 1px 1px solid {{ColorPalette|{{{Color}}}|Secondary}} width: 100%; flex-direction: row; max-height: 100%; display: flex: auto; align-items: center; padding: 1em;">{{{description|role description}}}</div> | ||
</div> | </div> | ||
Строка 9: | Строка 9: | ||
<pre> | <pre> | ||
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. | 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. | ||
color: - Цвет шаблона. | |||
image: - This is the file image. It should be rendered as the plain file name (no brackets), followed by any special links. | 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. | role - This is the role text. Put the name of the object/role here. | ||
description - This defines the contents of the right-most bounding box (the text row).</pre></noinclude> | description - This defines the contents of the right-most bounding box (the text row).</pre></noinclude> |
Текущая версия от 15:14, 24 июня 2024
[[file:{{{image}}}|64px||link={{{role}}}]]
Chief Engineer
Chief Engineer
role description
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.
Parameters are as follows:
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. color: - Цвет шаблона. 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. description - This defines the contents of the right-most bounding box (the text row).