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

Нет описания правки
Нет описания правки
Строка 1: Строка 1:
<div style="text-align: center; height: 100%; display: flex;">
<div style="text-align: center; height: 100%; display: flex;">
<div style="text-align: center; border-radius: {{{border-radius|0 0 0 0}}}; background: #{{ColorPalette‎‎|{{{Color}}}|Very Light}}; box-shadow: 0 0 .1em #999; min-width: 13em; height: auto; flex-direction: column; outline: #999f solid .1em; padding: 1em 0em 1em;">[[file:{{{image}}}{{!}}link={{{role}}}]]<br>'''[[{{{role|Chief Engineer}}}]]'''</div>
<div style="text-align: center; border: 1px solid #{{ColorPalette|{{{Color}}}|Very Light}}; border-radius: {{{border-radius|0 0 0 0}}}; background: #{{ColorPalette‎‎|{{{Color}}}|Very Light}}; min-width: 13em; height: auto; flex-direction: column; padding: 1em 0em 1em;">[[file:{{{image}}}{{!}}link={{{role}}}]]<br>'''[[{{{role|Chief Engineer}}}]]'''</div>
<div style="border-radius: {{{border-radius|0 0 0 0}}}; background: #{{ColorPalette|{{{Color}}}|Very Light}}; box-shadow: 0 0 .1em #999; width: 100%; flex-direction: row; max-height: 100%; display: flex: auto; align-items: center; padding: 1em 1em 1em 1em;">{{{description|role description}}}</div>
<div style="border: 1px solid #{{ColorPalette|{{{Color}}}|Very Light}}; border-radius: {{{border-radius|0 0 6en 6em}}}; background: #{{ColorPalette|{{{Color}}}|Very Light}}; width: 100%; flex-direction: row; max-height: 100%; display: flex: auto; align-items: center; padding: 1em 1em 1em 1em;">{{{description|role description}}}</div>
</div>
</div>



Версия от 15:51, 3 мая 2024

[[file:{{{image}}}|link={{{role}}}]]
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.
colour dark:   - This is the colour of the left-most bounding box (image columns).
colour light:  - This is the colour of the right-most bounding box (text rows).
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).