Wide Image Sizer

Примечание:

Эта страница - компонент, используемый на данной вики. Он предназначен для включения в другие страницы.

рейтинг: 
0/0%

Usage

On any wiki:

[[include :scp-wiki:component:wide-image-sizer]]


Then for the image:

[[include component:image-block
name=https://scp-wiki.wikidot.com/local--files/(REST OF LINK TO YOUR IMAGE) |
caption=(YOUR CAPTION HERE) |
align=center |
width=100%
]]

What this is

A component to automatically scale a wide image to 215px height and an appropriate width for the current screen. This way you can ensure a consistent viewing experience across a wide range of devices while avoiding the need precisely crop the source image.

What it looks like

With component:

with-component.png

Without component:

without-component.png


The CSS was created by user Woedenaz, and this component was created by aismallard.
Структурные: код компонент
версия страницы: 5, Последняя правка: 17 Сен. 2024, 06:50 (2 дня назад)
Пока не указано иное, содержимое этой страницы распространяется по лицензии Creative Commons Attribution-ShareAlike 3.0 License.