Відмінності між версіями «Шаблон:Annotated image 4»
[перевірена версія] | [перевірена версія] |
Tohaomg (обговорення | внесок) (Створена сторінка: <includeonly><div class="thumb {{#switch: {{{align|}}} | left = tleft|center = center|centre = center| right|#default = tright}}" {{#ifeq: {{{align|}}}|center|s...) |
(для вирішення lint-помилки) |
||
(Не показані 6 проміжних версій 2 користувачів) | |||
Рядок 1: | Рядок 1: | ||
<includeonly><div class="thumb {{#switch: {{{align|}}} | left = tleft|center = center|centre = center| right|#default = tright}}" {{#ifeq: {{{align|}}}|center|style="margin: 1em auto;"}}> |
<includeonly><div class="thumb {{#switch: {{{align|}}} | left = tleft|center = center|centre = center| right|#default = tright}}" {{#ifeq: {{{align|}}}|center|style="margin: 1em auto;"}}> |
||
− | <div class="thumbinner" style="width:{{#expr:{{{width|300}}}+2}}px;"> |
+ | <div {{#if:{{{noborder|}}}||class="thumbinner" }}style="width:{{#expr:{{{width|300}}}+2}}px;"> |
{{#if:{{{header|}}}| |
{{#if:{{{header|}}}| |
||
<div style="clear: both; font-weight: bold; font-size: 106.4%; text-align: {{{header_align|center}}}; background-color: {{{header_background|transparent}}};margin-bottom:3px">{{{header}}}</div> |
<div style="clear: both; font-weight: bold; font-size: 106.4%; text-align: {{{header_align|center}}}; background-color: {{{header_background|transparent}}};margin-bottom:3px">{{{header}}}</div> |
||
}} |
}} |
||
<!--Start image wrapper--> |
<!--Start image wrapper--> |
||
− | <div style="position:relative; width:{{{width|300}}}px; height:{{{height}}}px; overflow:hidden; border:solid #ccc 1px; background-color:{{{image-bg-color|white}}};"> |
+ | <div style="position:relative; width:{{{width|300}}}px; height:{{{height}}}px; overflow:hidden;{{#if:{{{noborder|}}}|| border:solid #ccc 1px;}} background-color:{{{image-bg-color|white}}};"> |
<!--Start annotated image--> |
<!--Start annotated image--> |
||
<div style="left:{{{image-left|0}}}px; top:{{{image-top|0}}}px; width:{{{image-width|300}}}px; position:absolute"> [[Image:{{{image}}}|{{{image-width|300}}}px|alt={{{alt|}}}|{{#ifeq:{{{nolink|}}}|yes|link=|link={{{link|COMMONS:File:{{{image}}}}}}}}]] |
<div style="left:{{{image-left|0}}}px; top:{{{image-top|0}}}px; width:{{{image-width|300}}}px; position:absolute"> [[Image:{{{image}}}|{{{image-width|300}}}px|alt={{{alt|}}}|{{#ifeq:{{{nolink|}}}|yes|link=|link={{{link|COMMONS:File:{{{image}}}}}}}}]] |
||
Рядок 11: | Рядок 11: | ||
<!--Start annotations--> |
<!--Start annotations--> |
||
<div style="text-align:{{{annot-text-align|center}}}; {{ifeq|{{{annot-font-size|}}}||line-height:110%;|font-size:{{{annot-font-size|}}}px; line-height:{{{annot-line-height|110%}}};}}"> |
<div style="text-align:{{{annot-text-align|center}}}; {{ifeq|{{{annot-font-size|}}}||line-height:110%;|font-size:{{{annot-font-size|}}}px; line-height:{{{annot-line-height|110%}}};}}"> |
||
− | < |
+ | <div style="background-color:{{{annot-background-color|transparent}}}; color:{{{annot-color|black}}}">{{{annotations}}}</div> |
<!--annotations has syntax: {{annotations|fromLeft|fromTop|text}}--> |
<!--annotations has syntax: {{annotations|fromLeft|fromTop|text}}--> |
||
</div><!-- end annotations --> |
</div><!-- end annotations --> |
||
</div><!-- end image wrapper --> |
</div><!-- end image wrapper --> |
||
− | {{#if:{{{caption|}}}|<div class="thumbcaption" style="clear:left">{{{caption}}}{{#ifeq:{{{nolink|}}}|yes| [[Image:Desc-20.png|15px|link=COMMONS:File:{{{image}}}]]}}</div>}} |
+ | {{#if:{{{caption|}}}|<div class="thumbcaption" style="clear:left">{{#ifeq:{{{icon|}}}|none||{{{icon|[[File:interactive icon.svg|left|18px|link=|Зображення вище містить посилання, які можна натискати|alt=Зображення вище містить посилання, які можна натискати]]}}}}}{{{caption}}}{{#ifeq:{{{nolink|}}}|yes| [[Image:Desc-20.png|15px|link=COMMONS:File:{{{image}}}]]}}</div>}} |
</div><!-- end thumbinner --> |
</div><!-- end thumbinner --> |
||
− | </div><!-- end thumb --></includeonly> |
+ | </div><!-- end thumb --></includeonly><noinclude> |
+ | {{документація}} |
||
+ | </noinclude> |
Поточна версія на 09:29, 30 вересня 2020

![]() | В іншому мовному розділі є повніша стаття Template:Annotated image 4/doc (англ.). |
Документація вище включена з Шаблон:Annotated image 4/документація. (ред. | історія) Дописувачі можуть експериментувати на підсторінках пісочниця (створити | дзеркало) та тести (створити) цього шаблону. Будь ласка, додавайте категорії до підсторінки /документація. Підсторінки цього шаблону. |