diff --git a/KotlinServer/utils.twig b/KotlinServer/utils.twig
index 1be181b..7fc978b 100644
--- a/KotlinServer/utils.twig
+++ b/KotlinServer/utils.twig
@@ -21,7 +21,7 @@ Map<{{ self.formatValueType(valueType.keysType, true, true) }}, {{ self.formatVa
{%- elseif valueType.baseTypeName == "Array" -%}
List<{{ self.formatValueType(valueType.itemsType, true, true) }}>
{%- else -%}
-{{ valueType.baseTypeName }}
+{% include 'blocks/class/classtype.twig' with { type: valueType } %}
{%- endif -%}
{% endmacro %}
diff --git a/Web-documentation/blocks/classtype.twig b/Web-documentation/blocks/classtype.twig
new file mode 100644
index 0000000..623f00f
--- /dev/null
+++ b/Web-documentation/blocks/classtype.twig
@@ -0,0 +1 @@
+{{- type.baseTypeName -}}{%- include 'type-parameters.twig' with { typeParameters: type.typeParameters } -%}
\ No newline at end of file
diff --git a/Web-documentation/blocks/field-row.html.twig b/Web-documentation/blocks/field-row.html.twig
index 99f8510..8e42d83 100644
--- a/Web-documentation/blocks/field-row.html.twig
+++ b/Web-documentation/blocks/field-row.html.twig
@@ -28,9 +28,9 @@
{%- if link is not null -%}
- {{- utils.formatNullable(valueType.typeName, nullable) -}}
+ {{- utils.formatNullableClassType(valueType, nullable) -}}
{%- else -%}
- {{- utils.formatNullable(valueType.typeName, nullable) -}}
+ {{- utils.formatNullableClassType(valueType, nullable) -}}
{%- endif -%}
{%- endif -%}
{%- endmacro -%}
diff --git a/Web-documentation/blocks/type-parameters.twig b/Web-documentation/blocks/type-parameters.twig
new file mode 100644
index 0000000..9656547
--- /dev/null
+++ b/Web-documentation/blocks/type-parameters.twig
@@ -0,0 +1,8 @@
+{%- import '../utils.twig' as utils -%}
+{%- if typeParameters is not empty -%}
+<
+{%- for typeParameter in typeParameters %}
+{{- typeParameter.baseTypeName -}}{%- if not (loop.last) %}, {% endif %}
+{%- endfor -%}
+>
+{%- endif -%}
diff --git a/Web-documentation/utils.twig b/Web-documentation/utils.twig
index 6ee0674..f92f125 100644
--- a/Web-documentation/utils.twig
+++ b/Web-documentation/utils.twig
@@ -2,6 +2,10 @@
{{- expr -}}{%- if nullable -%}?{%- endif -%}
{% endmacro %}
+{% macro formatNullableClassType(valueType, nullable) %}
+{% include 'blocks/classtype.twig' with { type: valueType } %}{%- if nullable -%}?{%- endif -%}
+{% endmacro %}
+
{% macro optionalDescription(optional) %}
{%- if optional -%}Нет{%- else -%}Да{%- endif -%}
{% endmacro %}