Шаблон:Image crop/doc: различия между версиями
Перейти к навигации
Перейти к поиску
Karaby (обсуждение | вклад) Новая страница: «{{Uses TemplateStyles|Template:Image crop/styles.css}} ==USE== <pre>{{Image crop |image = |width = |height= |left = |top = }} </pre> ==Example== thumb|300px|Original image <pre>{{Image crop |image =Kingdom Hall of Jehovah's Witnesses - geograph.org.uk - 4549541.jpg |width =200 |height=200 |left =-115 |top =-375 }} </pre> {{Image crop |image =Kingdom Hall of Jehovah's Witnes...» |
(нет различий)
|
Текущая версия от 06:19, 21 марта 2024
USE
{{Image crop
|image =
|width =
|height=
|left =
|top =
}}
Example
[Hall of Jehovah's Witnesses - geograph.org.uk - 4549541.jpg|thumb|300px|Original image]
{{Image crop
|image =Kingdom Hall of Jehovah's Witnesses - geograph.org.uk - 4549541.jpg
|width =200
|height=200
|left =-115
|top =-375
}}
Template Style or Common.css
If you have access to MediaWiki:Common.css, you might just put the code in there in stead:
/* Cropping images - created by [[User:Pneuma01]] */
.img-frame {
display: inline-block;
overflow: hidden;
padding: 0;
position: relative;
}
.img-sheet {
display: inline-block;
position: absolute;
}