---
title: Macros and Content Tokens Reference for Nodinite Articles
description: "Full reference for every macro and content token in Nodinite Articles: date and time, Article, Environment, Repository entity, Resource, and C4 diagram node macros, plus the {nds}, {ndi}, {ndf}, {nda}, and {ndx} content tokens, including sized inline icons."
---

# :fa-code: Macros Reference

:new7.11:

Every macro and content token available in :Nodinite: Articles, in one place — what each one resolves to, and when it's available.

* ✅ Look up any macro by category instead of hunting through the editor  
* ✅ Know exactly when a macro is available and when it isn't  
* ✅ Understand which macros require [Resource][Resources] or C4 node context  
* ✅ Use the same macros inside a [Snippet][Snippets] as inside an [Article][Articles]  
* ✅ Reference Snippets, images, files, Articles, and inline icons by name with content tokens  

![Contoso O2C: order intake runbook in the Markdown editor, linked to the Integration INT1337 - Order-to-Cash; Macro Help opens Document Macro Help, Copy example on the entity.url row, the example pasted after Integration:, Save, View, and the read mode showing Integration: INT1337 - Order-to-Cash as a link, animated walkthrough (7.12)][Hero]  
*Animated walkthrough: in the editor, open **Macro Help**, click **Copy example** on the `entity.url` row, paste it into the text, **Save**, and **View**. The macro shows the linked [Integration][Integrations]'s name as a link to its page, because the Article is linked to exactly one Repository entity.*  

## :fa-code-compare: How Macros Resolve

A **macro** is a `{{ name }}` placeholder that resolves **every time the document is displayed**. This page lists every supported macro and where it resolves.

## :fa-circle-info: Core Facts

* **Naming** — macro names are case-insensitive
* **Unknown macro** — left as written, unresolved
* **Full list** — also available from the editor's **Document Macro Help** dialog. It shows six groups, in the same order as this page: **Date and time**, **Article**, **Environment**, **Repository entity**, **Resource**, and **C4 diagram node**, each with an *Available:* line that says when its macros resolve. Open it with **Macro Help** in the Markdown editor's toolbar, or the :fa-circle-info: icon in a Content Part's toolbar; anyone who can edit the Article can open it
* :new7.12: **Copy as Markdown** in the dialog copies every group with all examples, plus the content tokens; **Copy example**, shown when you hover a row, copies that row's example, such as `[{{ entity.name }}]({{ entity.url }})` for `entity.url`
* **Also resolve inside** — [Snippets][], so a shared header or footer can show the current Article's own title, date, and so on

The dialog sums it up: *Document macros are safe value substitutions only. They do not execute code and are resolved every time the document is displayed. Names are case-insensitive; an unknown name is left as written. Macros also resolve inside Snippets, so a shared header or footer shows the current Article's own values.*

There is no insert-a-macro button: type a macro, or copy it from the dialog. The **Insert** buttons write content tokens instead; see [Content Tokens](#fa-link-content-tokens).

![Document Macro Help dialog with Copy as Markdown, the intro text, and the Date and time and Article groups, each marked Available: Always, with Macro, Description, and Example columns (7.12)][1]  
*The **Document Macro Help** dialog, grouped like this page.*  

## :fa-calendar: Date and Time Macros

| Macro | Resolves to | Available when |
|---|---|---|
| `year` | The current year | Always |
| `today` | The current date | Always |
| `now` | The current date and time | Always |
| `year.utc`, `today.utc`, `now.utc` | The UTC equivalent of the macro above | Always |

## :fa-newspaper: Article Macros

| Macro | Resolves to | Available when |
|---|---|---|
| `article.title` | The [Article's][Articles] title | Always |
| `article.description` | The [Article's][Articles] description | Always |
| `article.id` | The [Article's][Articles] id | Always |
| `article.url` | The [Article's][Articles] URL | Always |
| `article.slug` | The [Article's][Articles] slug, the readable part of its URL | Always |
| `article.tags` | The [Article's][Articles] [Tags][] | Always |
| `article.created`, `article.created.utc` | When the [Article][Articles] was created | Always |
| `article.updated`, `article.updated.utc` | When the [Article][Articles] was last updated | Always |

## :fa-globe: Environment Macros

| Macro | Resolves to | Available when |
|---|---|---|
| `customername` | The value of the [CustomerName][] system parameter | Always |
| `environmentname` | The current environment's name | Always |
| `product.version` | The running :Nodinite: version | Always |
| `currentuser.name` | The signed-in user's name | Always |

The shipped **Standard Footer** [Snippet][Snippets] uses these macros: it shows `{{ customername }} · {{ environmentname }} · Nodinite {{ product.version }}`, and the shipped **Standard Copyright** Snippet reads `© {{ year }} {{ customername }}. All Rights Reserved.`

## :fa-sitemap: Repository Entity Macros {#repository-entity-macros}

:new7.12:

| Macro | Resolves to | Available when |
|---|---|---|
| `entity.name` | The entity's name | Shown for a Repository entity |
| `entity.type` | The entity type: `System`, `Service`, `Integration`, `Contract`, `MessageType`, `EndPoint`, or `Domain` | Shown for a Repository entity |
| `entity.id` | The entity's id | Shown for a Repository entity |
| `entity.description` | The entity's description | Shown for a Repository entity |
| `entity.url` | The entity's page in the [Web Client][] | Shown for a Repository entity |
| `entity.componenttype` | The entity's [Component Type][Component Types] name | Shown for a Repository entity |
| `entity.icon` | The entity's Component Type icon | Shown for a Repository entity |

A document is shown for a Repository entity when, in this order:

1. you open it from that entity's **Articles** card;
2. otherwise, it is shown on a [C4 diagram][C4 Diagrams] node bound to the entity;
3. otherwise, the Article is linked to exactly one [Repository Model][] entity: a [System][Systems], [Service][Services], [Integration][Integrations], [Contract][Contracts], [Message Type][Message Types], [Endpoint][Endpoints], or [Domain][Domains].

Without such an entity (no linked entity, several, or the Article read through a [Monitor View][Monitor Views]), the reader shows the `entity.*` macros as empty text, and a **Download** or an [MCP][MCP Endpoint] export keeps the token as written and reports it as unresolved. The same subject order applies in the reader, in downloads, and over MCP, in free-form and [profile-based][Writing a Profile-Based Article] Articles alike.

The editor's preview resolves the `entity.*` macros too, while you write, when the Article is linked to exactly one Repository entity. Without that subject, the preview keeps the token as written, such as `{{ entity.name }}`, so you see at once that it won't resolve. A link you add in the editor shows in the preview after the next page load. The subjects that come from an entity's **Articles** card or a C4 node exist only in read mode, when the Article is opened from there.

![A profile-based Article linked to the Integration INT1337 - Order-to-Cash: Macro Help in the Details section shows its six groups, the Repository entity group, the section written with entity.icon, entity.name, entity.url and entity.componenttype and its values in the preview, Save, View, and the read mode with the Integration's icon, its name as a link and API Gateway, animated walkthrough (7.13)][3]  
*Animated walkthrough: entity macros in a Content Part of a profile-based Article.*  

1. Open a profile-based Article that is linked to one Integration, here *INT1337 - Order-to-Cash*, in its editor.
2. Click :fa-circle-info: **Macro Help** in the **Details** section's toolbar. **Document Macro Help** shows the six groups; scroll to **Repository entity**.
3. Write the section: `**Integration:** {{ entity.icon }} [{{ entity.name }}]({{ entity.url }}) ({{ entity.componenttype }})`.
4. The preview already shows the values: *Integration: INT1337 - Order-to-Cash (API Gateway)*.
5. Click **Save**, then **View**. Read mode shows the Integration's Component Type icon, its name as a link to its page, and its Component Type, *(API Gateway)*.

```markdown
{{ entity.icon }} {{ entity.name }}
[{{ entity.name }}]({{ entity.url }})
```

## :fa-lightbulb: Resource Macros

| Macro | Resolves to | Available when |
|---|---|---|
| `resource.name`, `resource.type`, `resource.environment`, `resource.category`, `resource.application`, `resource.description` | The Resource's own field values | Shown for a Monitoring [Resource][Resources] |
| `resource.created`, `resource.created.utc`, `resource.updated`, `resource.updated.utc` | When the Resource was created or last updated | Shown for a Monitoring Resource |
| `resource.agentname`, `resource.logtext`, `resource.state` | The Resource's monitoring agent, latest log text, and current state | Shown for a Monitoring Resource |

## :fa-diagram-project: C4 Diagram Node Macros

| Macro | Resolves to | Available when |
|---|---|---|
| `node.name`, `node.type`, `node.technology` | The bound node's own field values | Shown for a [C4 diagram][C4 Diagrams] node |
| `node.componenttype` | The node's Component Type name | Shown for a C4 diagram node |
| `node.icon` | The Component Type's icon — Font Awesome, Azure, custom upload, or Mermaid | Shown for a C4 diagram node |
| `node.entity.name`, `node.entity.type`, `node.entity.description`, `node.entity.url` | The Repository entity the node is bound to | Shown for a C4 diagram node bound to a Repository entity |

>[!WARNING]
>The `node.*` macros only resolve on a C4 diagram node. On a Repository entity's own page, use the [Repository Entity Macros](#repository-entity-macros), such as `entity.componenttype` and `entity.icon`.

## :fa-link: Content Tokens

A **content token** is different from a macro: instead of resolving a value, it references other :Nodinite: content **by name**, so a document stays portable between environments. You rarely type one by hand: each editable section has a toolbar that opens a picker and inserts the token for you.

![The Main Body Content Part Overview in the WYSIWYG editor, its toolbar ending with Insert Image, Insert File, Insert Article Link, Insert Snippet, Insert Icon, and Macro Help (7.12)][2]  
*The toolbar above every editable section. Each Insert button opens a picker and writes the content token for you; Macro Help lists every macro and token.*  

| Button | Inserts |
|---|---|
| :fa-images: Insert Image | An `{ndi}` image from the [Image Library][] |
| :fa-folder-open: Insert File | An `{ndf}` link to a file in the [File Library][] |
| :fa-newspaper: Insert Article Link | An `{nda}` link to another Article |
| :fa-block-quote: Insert Snippet | An `{nds}` Snippet include |
| :fa-icons: Insert Icon | An `{ndx}` inline icon, the same icons as [Component Types][] (shown only with a [Mapify][License Options and Feature Matrix] license, see below) |
| :fa-circle-info: Macro Help | Opens the **Document Macro Help** dialog, which lists every macro and content token |

Each token can also be typed or pasted directly into the Markdown:

| Token | References | Example |
|---|---|---|
| `{nds}/<slug>` | Includes the [Snippet][Snippets] with that slug at this position | `{nds}/std-header` |
| `{ndi}/<name-or-id>` | The address of an image in the [Image Library][]; use it as a Markdown image. A reference-style image takes an optional [size][Image Size Modifiers]: `xxs`, `xs`, `s`, `m`, `l`, `xl`, or `xxl` | `![Logo]({ndi}/company-logo)`, or the reference style the image button writes: `![Logo][ndi-24][m]` with `[ndi-24]: {ndi}/company-logo`, where 24 is the image id |
| `{ndf}/<name-or-id>` | The address of a file in the [File Library][]; use it as a Markdown link | `[Specification]({ndf}/spec-v2)` |
| `{nda}/<slug-or-id>` | The address of another Article; use it as a Markdown link | `[Overview]({nda}/erp-overview)` |
| `{ndx}/<source>/<reference>[size]` | An inline icon from the same sources as [Component Type][Component Types] icons — see below | `{ndx}/fa/far/fa-cloud` |

### :fa-icons: Inline Icons with {ndx} {#fa-icons-inline-icons-with-ndx}

:new7.11:

Put the same icons you use for [Component Types][] straight into the text of an Article, Snippet, or [Template][Templates]: a cloud icon next to an Azure service, a brand icon next to a partner, or your own uploaded icon in a runbook step.

>[!IMPORTANT]
>The `{ndx}` token requires a [Mapify license][License Options and Feature Matrix], the same license that includes [Mapify][] Component Type icon support. If your :Nodinite: instance doesn't have the Mapify license, the editor doesn't show the **Insert Icon** button.

| Source | Reference | Example |
|---|---|---|
| `fa` | Font Awesome, as `<style>/<name>` | `{ndx}/fa/far/fa-cloud`, `{ndx}/fa/fab/fa-github` |
| `azure` | An Azure service icon, as `<category>/<file>` | `{ndx}/azure/databases/10121-icon-service-Azure-Cosmos-DB.svg` |
| `mermaid` | The Mermaid logo, as `<category>/<file>` (the only Mermaid icon shipped) | `{ndx}/mermaid/mermaid/mermaid.live.logo.svg` |
| `custom` | An uploaded custom icon, by id | `{ndx}/custom/12` |

Azure category folders can contain spaces and other special characters, which are URL-encoded in the token, for example `{ndx}/azure/ai%20%2B%20machine%20learning/00028-icon-service-Batch-AI.svg`. The icon picker writes the encoding for you.

Add an optional size in square brackets directly after the reference. The size names match the image [size modifiers][Image Size Modifiers], but because icons sit inline with the text, they map to an icon scale rather than the image pixel widths:

| Size | Image icon | Font Awesome class |
|---|---|---|
| *(none)* | 20 px, the Component Type size | *(none)* |
| `xxs` | 12 px | `fa-2xs` |
| `xs` | 16 px | `fa-xs` |
| `s` | 24 px | `fa-sm` |
| `m` | 32 px | `fa-lg` |
| `l` | 48 px | `fa-xl` |
| `xl` | 64 px | `fa-2xl` |
| `xxl` | 96 px | `fa-3x` |

```markdown
{ndx}/fa/far/fa-circle-exclamation Renew the certificate before it expires.
The certificate is stored in {ndx}/azure/app%20services/00049-icon-service-App-Service-Certificates.svg App Service Certificates.
Messages are archived in {ndx}/fa/far/fa-cloud Azure Blob Storage.
Source code lives in {ndx}/fa/fab/fa-github[l] GitHub.
Owned by the {ndx}/custom/12[m] Finance integration team.
```

*Examples of inline icons: Font Awesome icons and an Azure service icon at the default size, a brand icon at size `l`, and a custom uploaded icon at size `m`.*

>[!NOTE]
>Sizes are names only. A numeric suffix such as `[64]` isn't recognized; like any unknown size name, it stays in the text as written, after the icon.

## :fa-hand-point-right: Next Steps

* :fa-clone: [Templates][]  
* :fa-puzzle-piece: [Snippets][]  

## :fa-link-horizontal: Related Topics

* :fa-newspaper: [Knowledge base Articles][Articles]  
* :fa-list-check: [Document Profiles][]  
* :fa-file-pen: [Writing a Profile-Based Article][]  
* :fa-shapes: [Using Component Type icons in Knowledge base content][Component Type Inline Icons]  
* :fa-map: [Mapify][]  

[1]:{ndm}/Documentation%20Pictures/IM/WebClient/Repository/Articles/MacroHelpDialog.png
[2]:{ndm}/Documentation%20Pictures/IM/WebClient/Repository/Articles/ContentPart_Editor.png
[3]:{ndm}/Documentation%20Pictures/IM/WebClient/Repository/Articles/Articles_EntityMacros.gif

[Articles]:{ndr}/Repository%20Model/Knowledge%20base%20Articles/Overview.md
[C4 Diagrams]:{ndr}/Repository%20Model/C4%20Diagrams/Overview.md
[Component Type Inline Icons]:{ndr}/Repository%20Model/Component%20Types/Features/What%20is%20a%20Component%20Type.md#fa-icons-using-component-type-icons-in-articles-snippets-templates-and-document-profiles
[Component Types]:{ndr}/Repository%20Model/Component%20Types/Overview.md
[Contracts]:{ndr}/Getting%20Started/4.%20Repository/Contracts/Overview.md
[CustomerName]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/CustomerName.md
[Document Profiles]:{ndr}/Repository%20Model/Knowledge%20base%20Articles/Features/Document%20Profiles.md
[Domains]:{ndr}/Repository%20Model/Domains/Overview.md
[Endpoints]:{ndr}/Repository%20Model/Endpoints/Overview.md
[File Library]:{ndr}/Repository%20Model/Files/Overview.md
[Hero]:{ndm}/Documentation%20Pictures/IM/WebClient/Repository/Articles/Articles_InsertMacro.gif
[Image Library]:{ndr}/Repository%20Model/Images/Overview.md
[Image Size Modifiers]:{ndr}/Repository%20Model/Images/Features/What%20is%20the%20Image%20Library.md#fa-ruler-combined-size-modifiers
[Integrations]:{ndr}/Repository%20Model/Integrations/Overview.md
[License Options and Feature Matrix]:{ndr}/Repository%20Model/License%20Options%20and%20Feature%20Matrix.md
[Mapify]:{ndr}/Mapify/Overview.md
[MCP Endpoint]:{ndr}/AI/MCP%20Endpoint.md
[Message Types]:{ndr}/Repository%20Model/Message%20Types/Overview.md
[Monitor Views]:{ndr}/Administration/2.%20Monitor%20Management/1.%20Monitor%20Views/Features/What%20is%20a%20Monitor%20View.md
[Repository Model]:{ndr}/Repository%20Model/Overview.md
[Resources]:{ndr}/Administration/2.%20Monitor%20Management/3.%20Resources/Features/What%20is%20a%20Resource.md
[Services]:{ndr}/Repository%20Model/Services/Overview.md
[Snippets]:{ndr}/Repository%20Model/Knowledge%20base%20Articles/Features/Snippets.md
[Systems]:{ndr}/Repository%20Model/Systems/Overview.md
[Tags]:{ndr}/Administration/4.%20Customize/5.%20Tags/Features/What%20is%20a%20Tag.md
[Templates]:{ndr}/Repository%20Model/Knowledge%20base%20Articles/Features/Templates.md
[Web Client]:{ndr}/Getting%20Started/Overview.md
[Writing a Profile-Based Article]:{ndr}/Repository%20Model/Knowledge%20base%20Articles/Features/Writing%20a%20Profile-Based%20Article.md