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


# repr:Template

### Diagram

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

### Description {#desc}

Allows you to set a template for the HTML representation of map objects.

The template consists of a unique identifier (attribute `gml: id`) and body ([repr: text](https://yandex.ru/dev/maps/ymapsml/doc/en/ref/reference/representation-text.md)) of the template. In the styles of map objects, whose layout is based on templates (styles of an [icon](https://yandex.ru/dev/maps/ymapsml/doc/en/ref/reference/representation-iconStyle.md), [icon shadow](https://yandex.ru/dev/maps/ymapsml/doc/en/ref/reference/representation-shadow.md), [icon content](https://yandex.ru/dev/maps/ymapsml/doc/en/ref/reference/representation-iconContentStyle.md), [balloon content](https://yandex.ru/dev/maps/ymapsml/doc/en/ref/reference/representation-balloonContentStyle.md), and [popup hint](https://yandex.ru/dev/maps/ymapsml/doc/en/ref/reference/representation-hintContentStyle.md)), the template assigned to the style is specified with the link to its ID, see [repr: template](https://yandex.ru/dev/maps/ymapsml/doc/en/ref/reference/representation-template-1.md).

### Contains:

[repr:text](https://yandex.ru/dev/maps/ymapsml/doc/en/ref/reference/representation-text.md)

### Contained by:

[repr:Representation](https://yandex.ru/dev/maps/ymapsml/doc/en/ref/reference/representation-Representation.md)

> ### repr:Template
> 
> Part of a YMapsML document that describes the template for popup hints:
> 
> ```xml
> <repr:Template gml:id="hintTemplate">
>     <repr:text><![CDATA[<div style="color:blue">$[name]</div>]]></repr:text>
> </repr:Template>
> ```

