# Поиск

В связи с особенностями системы, для главной страницы при поиске выводится не название страницы, как у других, а title, но т.к. в title могут присутствовать meta подстановки, то вывод заголовка выглядит не очень красивый, чтобы этого избежать нужно внести правки в XSL шаблон "Поиск", заменить template search\_page на представленный ниже

{% code fullWidth="true" %}

```html
<xsl:template match="search_page">
	    
	<xsl:variable name="title"><xsl:choose>
		<xsl:when test="structure[path='/']"><xsl:value-of select="structure/name"/></xsl:when>
		<xsl:otherwise><xsl:value-of select="title"/></xsl:otherwise>
	</xsl:choose></xsl:variable>
    
	<li>
		<a href="{url}"><xsl:value-of select="$title"/></a>
		<br/>
		<span class="description"><xsl:apply-templates select="url"/><xsl:text> · </xsl:text><xsl:value-of select="round(size div 1024)"/><xsl:text> Кб · </xsl:text><xsl:value-of select="date"/></span>
	</li>
</xsl:template>
```

{% endcode %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://support.morozovpimnev.ru/multiregion/poisk.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
