---
keywords: repr:Template
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.ru/dev/maps/ymapsml/doc/ru/llms.txt


# repr:Template

### Диаграмма

![](../_images/Template_1.png)

### Описание {#desc}

Позволяет задать шаблон для HTML-представления объектов карты.

Шаблон состоит из уникального идентификатора (атрибут `gml:id`) и тела ([repr:text](https://yandex.ru/dev/maps/ymapsml/doc/ru/ref/reference/representation-text.md)) шаблона. В стилях объектов карты, чья верстка строится на основе шаблонов (стили [значка](https://yandex.ru/dev/maps/ymapsml/doc/ru/ref/reference/representation-iconStyle.md), [тени значка](https://yandex.ru/dev/maps/ymapsml/doc/ru/ref/reference/representation-shadow.md), [содержимого значка](https://yandex.ru/dev/maps/ymapsml/doc/ru/ref/reference/representation-iconContentStyle.md), [содержимого балуна](https://yandex.ru/dev/maps/ymapsml/doc/ru/ref/reference/representation-balloonContentStyle.md) и [всплывающей подсказки](https://yandex.ru/dev/maps/ymapsml/doc/ru/ref/reference/representation-hintContentStyle.md)), закрепленный за стилем шаблон указывается ссылкой на его id, см. [{#T}](https://yandex.ru/dev/maps/ymapsml/doc/ru/ref/reference/representation-template-1.md).

### Содержит:

[{#T}](https://yandex.ru/dev/maps/ymapsml/doc/ru/ref/reference/representation-text.md)

### Содержится в:

[{#T}](https://yandex.ru/dev/maps/ymapsml/doc/ru/ref/reference/representation-Representation.md)

> ### repr:Template
> 
> Фрагмент YMapsML-документа, описывающего шаблон для всплывающей подсказки:
> 
> ```xml
> <repr:Template gml:id="hintTemplate">
>     <repr:text><![CDATA[<div style="color:blue">$[name]</div>]]></repr:text>
> </repr:Template>
> ```

