> For the complete documentation index, see [llms.txt](https://help.sdocs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.sdocs.com/developer-hub/template-configuration-and-styling.md).

# Template Configuration & Styling

- [Template Settings: Complete Reference](https://help.sdocs.com/developer-hub/template-configuration-and-styling/template-settings-complete-reference.md)
- [Template Attribute Reference](https://help.sdocs.com/developer-hub/template-configuration-and-styling/template-attributes-complete-reference.md)
- [Related List References](https://help.sdocs.com/developer-hub/template-configuration-and-styling/related-list-references.md): Learn how to build, query, format, and troubleshoot direct SOQL related lists in S-Docs. Start with structure, then move through SOQL, attributes, and examples.
- [Related List Structure](https://help.sdocs.com/developer-hub/template-configuration-and-styling/related-list-references/related-list-structure.md)
- [Introduction to SOQL](https://help.sdocs.com/developer-hub/template-configuration-and-styling/related-list-references/introduction-to-soql.md)
- [Related List Attributes](https://help.sdocs.com/developer-hub/template-configuration-and-styling/related-list-references/related-list-attributes.md)
- [Related List Working Examples](https://help.sdocs.com/developer-hub/template-configuration-and-styling/related-list-references/related-list-working-examples.md)
- [Related List Structure In Microsoft Templates (DOCX, PPTX, XLSX)](https://help.sdocs.com/developer-hub/template-configuration-and-styling/related-list-references/related-list-structure-docx.md)
- [Conditional Logic Reference](https://help.sdocs.com/developer-hub/template-configuration-and-styling/conditional-logic-reference.md): Learn how to build, nest, and troubleshoot S-Docs conditional logic. Start with structure, then move into working examples you can reuse.
- [Conditional Logic Structure](https://help.sdocs.com/developer-hub/template-configuration-and-styling/conditional-logic-reference/conditional-logic-structure.md)
- [Conditional Logic In Microsoft Templates (DOCX, PPTX, XLSX)](https://help.sdocs.com/developer-hub/template-configuration-and-styling/conditional-logic-reference/conditional-logic-in-microsoft-templates-docx-pptx-xlsx.md): Use the correct square-bracket syntax for RENDER blocks and merge fields in DOCX templates.
- [Conditional Logic Working Examples](https://help.sdocs.com/developer-hub/template-configuration-and-styling/conditional-logic-reference/conditional-logic-working-examples.md)
- [Named Query Reference](https://help.sdocs.com/developer-hub/template-configuration-and-styling/reference-named-query-syntax.md): Learn the required syntax for named queries in S-Docs. Start with structure, then move to examples, advanced patterns, and SOQL fundamentals when needed.
- [Named Query Working Examples](https://help.sdocs.com/developer-hub/template-configuration-and-styling/reference-named-query-syntax/named-query-working-examples.md): Use copy-paste named query examples to display aggregates, target specific rows, and combine filters with offsets.
- [Named Query Structure](https://help.sdocs.com/developer-hub/template-configuration-and-styling/reference-named-query-syntax/named-query-structure.md): Learn the required tags, merge field pattern, and format-specific syntax for named queries.
- [Named Queries In Microsoft Templates (DOCX, PPTX, XLSX)](https://help.sdocs.com/developer-hub/template-configuration-and-styling/reference-named-query-syntax/named-queries-in-microsoft-templates-docx-pptx-xlsx.md): Use the correct square-bracket syntax for named query blocks and merge fields in DOCX and PPTX templates.
- [Component Template Reference Guide](https://help.sdocs.com/developer-hub/template-configuration-and-styling/component-template-reference-guide.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://help.sdocs.com/developer-hub/template-configuration-and-styling.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
