Шаблон:Image crop

Материал из Буквицы
Перейти к навигации Перейти к поиску
  1. REDIRECT Шаблон:-
Документация

Шаблон:Uses TemplateStyles

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 
}} 
       Kingdom Hall of Jehovah's Witnesses - geograph.org.uk - 4549541.jpg

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;
}