Шаблон:Image crop: различия между версиями
Перейти к навигации
Перейти к поиску
Karaby (обсуждение | вклад) Новая страница: «<includeonly><templatestyles src="Image crop/styles.css"/><div class="img-frame" style="width:{{{width|200}}}px; height:{{{height|200}}}px"> <div class="img-sheet" style="left:{{{left}}}px; top:{{{top}}}px"> [[File:{{{image}}}]] </div> </div></includeonly><noinclude>{{Documentation}}</noinclude>» |
Karaby (обсуждение | вклад) мНет описания правки |
||
| Строка 1: | Строка 1: | ||
<includeonly><templatestyles src="Image crop/styles.css"/><div class="img-frame" style="width:{{{width|200}}}px; height:{{{height|200}}}px"> | <includeonly><templatestyles src="Image crop/styles.css"/><div class="img-frame" style="width:{{{width|200}}}px; height:{{{height|200}}}px"> | ||
<div class="img-sheet" style="left:{{{left}}}px; top:{{{top}}}px"> | <div class="img-sheet" style="left:{{{left}}}px; top:{{{top}}}px"> | ||
[[ | [[Файл:{{{image}}}]] | ||
</div> | </div> | ||
</div></includeonly><noinclude>{{Documentation}}</noinclude> | </div></includeonly><noinclude>{{Documentation}}</noinclude> | ||
Текущая версия от 06:26, 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;
}
