---
title: "Variables"
slug: "variables"
description: "You can reuse variables when you use the same text-based content in multiple places that changes over time."
tags: ["Content reuse"]
updated: 2026-05-04T09:31:27Z
published: 2026-02-01T01:52:04Z
---

> ## Documentation Index
> Fetch the complete documentation index at: https://docs.document360.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Variables

You can reuse variables when you use the same text-based content in multiple places that may change over time (like field names, contact numbers, addresses, disclaimers, etc.). A **Variable** in Document360 is a reusable element that helps maintain consistency and efficiency across various documentation sections. By employing variables, contributors to your articles can easily update information in one place, and it automatically reflects throughout the entire documentation, ensuring accuracy and reducing redundant efforts.

For example, you want to add your contact information in multiple instances, which might change over time. In this case, you can add a variable for contact information. If a change is required, you can update the variable alone instead of updating it in all instances.

---

## Variables page

You can view, edit, or delete variables on the **Variables** page.

To access the **Variables** page:

1. Navigate to **Content tools** (![Content tools icon](https://cdn.document360.io/860f9f88-412e-4570-8222-d5bf2f4b7dd1/Images/Documentation/Content%20tools.png)) in the left navigation bar in the **Knowledge base portal**.
2. In the left navigation pane, navigate to **Content resources** > **Variables**.

The **Variables** page appears, where you can find the list of **Variables** you have already added.

The **Variables** page opens, displaying the list of existing variables (if any).

![Document360 interface showing variables management with highlighted sections and options.](https://cdn.document360.io/860f9f88-412e-4570-8222-d5bf2f4b7dd1/Images/Documentation/Variables.png)

1. **** How to**: Click to view a tutorial on how to use variables.
2. **** Docs**: Click to open the documentation article about variables.
3. **Create**: Click to create a new variable.
4. **Languages**: Filter the variables by Global or a specific language.
5. **Search variable**: Use this to search for a variable by name.
6. **Select variable:**Use the checkbox to select one or more variable to perform bulk delete operation. Click on the variable name to view the content.
7. **Used in**:
  - If a variable is not used in any article or category page, a hyphen (-) appears.
  - If it's used, click **View** to see a list of articles or categories where it appears.
8. **Language**: Shows the language for each variable.
9. **Last modified**: Displays the date and time the variable was last updated.
10. **Translation**: Click the globe icon to view the variable’s translation progress. Click the globe (**) icon next to each variable. A ** indicates that the variable has been translated into that language, while the ** icon indicates it has not yet been translated.
11. **Edit** (**): Click to edit the variable content. After editing, click **Update**.
12. **Delete** (**): Click to delete a variable. To delete multiple variables in one instance, select the desired checkbox and click **Delete**at the top.

---

## Create a variable

To create a variable:

1. Navigate to **Content tools** (![Content tools icon](https://cdn.document360.io/860f9f88-412e-4570-8222-d5bf2f4b7dd1/Images/Documentation/Content%20tools.png)) in the left navigation bar in the **Knowledge base portal**.
2. In the left navigation pane, navigate to **Content resources** > **Variables**.
3. On the **Variables** page, click **Create**in the top-right corner.

![Interface for creating a variable in a knowledge base portal with content input.](https://cdn.document360.io/860f9f88-412e-4570-8222-d5bf2f4b7dd1/Images/Documentation/Create%20variable.png)
4. Enter the **Name** of the variable.

> [!NOTE]
> ** NOTE
> 
> Variable names can include letters, numbers, hyphens, and underscores. The name must not exceed **50 characters**.

1. The **Merge code value** will be the variable name that appears with the variable tag in your editor.

For example, if your variable name is `Disclaimer`, the merge code is `{{variable.Disclaimer}}`.
2. From the **Language** dropdown:
  - By default, the selection is **Global** (applies to all languages).
  - You can also select a specific language to create a language-specific variable.
3. In the **Content** field, enter the variable content.

> [!NOTE]
> ** NOTE
> 
> The variable content limit is 300 characters, including spaces. For longer texts or media, use [Snippets](/help/docs/snippets).

### Formatting options

![Toolbar options for editing text in Document360, including formatting and code features.](https://cdn.document360.io/860f9f88-412e-4570-8222-d5bf2f4b7dd1/Images/Documentation/2_Screenshot-Formatting_options.png)

You can style your variable content using the following formatting tools:

1. **Font family (**)**: Change the font-family of the text.
2. **Font size:**Adjust the size of the text between 8 to 48.
3. **Bold**(**) Emphasize important words or phrases.
4. **Italic**(**): Highlight text or indicate terms like variables or titles.
5. **Underline**(**): Add a line below the text for emphasis.
6. **Text color**: Change the color of the text using a color picker or HEX code.
7. **Background color**: Change the background color behind the text.
8. Click the **More** (**) menu to access additional options:
  1. **Inline code**(**): Format short code snippets or commands within text.
  2. **Strikethrough**(**): Strike out the text to indicate removal or revision.
  3. **Superscript**(**): Display text slightly above the line (useful for footnotes or math).
  4. **Subscript**(**): Display text slightly below the line (useful for formulas).
  5. **Remove formatting**(**): Clear all applied styles and revert to plain text.
9. **Insert link**(**): Add a hyperlink to text. You can link to another article within your project or to an external URL. This works the same way as [hyperlinking text](/help/docs/linking-to-other-articles) in the Advanced WYSIWYG editor.
10. **LaTeX**(**): Add LaTeX expressions for mathematical content.
11. **Emoji**(**): Insert emojis into the content.

> [!NOTE]
> ** NOTE
> 
> You can use the `/` **Slash menu** in the Variable editor to access formatting tools such as Heading 3 and Heading 4, and you can also insert elements like Link, LaTeX, and Emoji.

---

## Using variable in an article/category page

You can add a variable to your article/category page using three methods.

Method 1: Using the syntax (Markdown editor)

Method 2: From the toolbar (Markdown, WYSIWYG, and Advanced WYSIWYG)

Method 3: Using the slash (`/`) command

Method 1Method 2Method 3

#### Method 1: Using the syntax (Markdown editor)

In the Markdown editor, type a **variable.MergeCodeValue**between closed double curly brackets.

> **Example**: *{{variable.Disclaimer}}*

You must know the exact merge code value to add the desired variable. The variable will not work even if a single letter changes.

> [!NOTE]
> ** NOTE
> 
> Typing in *variable.Merge_Code_Value* will only work in the Markdown editor. If you are using Advanced WYSIWYG editor, you can insert a variable using the toolbar.

#### Method 2: From the toolbar (Markdown, WYSIWYG, and Advanced WYSIWYG)

1. Click the **Content resources** icon for Markdown

![Document360 interface showing variable content reuse options for knowledge base creation.](https://cdn.document360.io/860f9f88-412e-4570-8222-d5bf2f4b7dd1/Images/Documentation/Variable-Markdown%20Editor.png)

and WYSIWYG editor.

![Interface showing variable options for Document360 with highlighted selection elements.](https://cdn.document360.io/860f9f88-412e-4570-8222-d5bf2f4b7dd1/Images/Documentation/Variable%20-%20WYSIWYG%20editor.png) (or) From the Advanced WYSIWYG editor, use the slash command `/variables` to access variables.

![WYSIWYG editor interface displaying content reuse options for variables.](https://cdn.document360.io/860f9f88-412e-4570-8222-d5bf2f4b7dd1/Images/Documentation/Variable%20-%20Advanced%20WYSIWYG%20editor.png)
2. Select the variable or use the **Search variables** bar to narrow down the variable name.

> In the Advanced WYSIWYG editor, the **Variables** pane appears for variable selection. Hover the desired variable name to preview its content.

1. Select the intended variable to insert**.**

> [!NOTE]
> ** NOTE
> 
> In Markdown and WYSIWYG editor, you can select multiple variables in one go.

#### Method 3: Using the slash (`/`) command

1. Use the slash command `/variables` to open the **Variables** option in the slash menu.
2. Search for or select the variable you want to insert. Hover over a variable to preview its full content.
3. Click the variable to insert it.

The inserted variable displays the actual content of the variable with a **dotted underline** in the editor. This allows you to see the actual variable value while editing.
4. Click the inserted variable to open the bubble menu, where you can:
  - **Switch** to another variable using the dropdown.
  - **Insert as text**, which replaces the variable with its content as static text.
  - **Remove** the variable from the article.

![WYSIWYG editor interface displaying content reuse options for variables.](https://cdn.document360.io/860f9f88-412e-4570-8222-d5bf2f4b7dd1/Images/Documentation/Variable%20-%20Advanced%20WYSIWYG%20editor.png)

---

### View article/category page dependency

In the **Variables**page, you can find the **Used in**column.

1. In the **Used in**column, click on the **View** button.

The **View references** panel will appear, where you can view the list of articles/category pages to which the variable has been added.
2. Click on the article to expand the section.
3. You can find the following information:

![Document360 interface showing variables and view references for article management.](https://cdn.document360.io/860f9f88-412e-4570-8222-d5bf2f4b7dd1/Images/Documentation/image-1768547953191.png)
  - The article version.
  - The project workspace and language.
  - The user name and profile picture who has added the variable.
  - The article states (Draft and Published).
  - The time/date information when the variable was inserted in the article/category page.

---

### Editing an existing variable

To edit an existing variable:

1. Navigate to **Content tools** (![Content tools icon](https://cdn.document360.io/860f9f88-412e-4570-8222-d5bf2f4b7dd1/Images/Documentation/Content%20tools.png)) in the left navigation bar in the **Knowledge base portal**.
2. In the left navigation pane, navigate to **Content resources** > **Variables**.

The **Variables** page will appear. You can find the list of variables you have already added.
3. Hover over the desired variable and click the **Edit**(**)****icon.

You can edit the content of the variable. The Name and Merge Code Value cannot be edited.

> [!NOTE]
> ** NOTE
> 
> **Editing a link added in a variable**
> 
> Click the link, and you can find the following options:
> 
> - **Open link** (**): The link will open in the tab. This helps in checking the link.
> - **Edit**(**): To edit the URL, link text, and change open in the new tab option.
> - **Unlink**(**): To unlink the URL and change it to standard text. The URL will be unlinked, and only the URL text will appear.
> - **Copy**(**): To copy the link.

1. After you complete the content edit, click the **Update** button.

> [!NOTE]
> ** NOTE
> 
> When you edit the content of an existing variable in the library, the content change will reflect in all the articles/category pages that contain the respective variable.

![Document360 interface showing variables management and editing options for documentation.](https://cdn.document360.io/860f9f88-412e-4570-8222-d5bf2f4b7dd1/Images/Documentation/image-1768540664309.png)

---

### Deleting a variable

To delete a variable,

1. Navigate to **Content tools** (![Content tools icon](https://cdn.document360.io/860f9f88-412e-4570-8222-d5bf2f4b7dd1/Images/Documentation/Content%20tools.png)) in the left navigation bar in the **Knowledge base portal**.
2. In the left navigation pane, navigate to **Content resources** > **Variables**.

The **Variables** page will appear. You can find the list of variables you have already added.
3. Hover over the desired variable and click the **Delete**(**) icon.
4. Click **Yes** in the **Delete**confirmation dialog.

#### To bulk delete multiple variables

Select multiple intended variables from the **Variables** page and click the **Delete** option at the top of the list.

![Confirmation dialog for deleting selected variables in Document360 interface.](https://cdn.document360.io/860f9f88-412e-4570-8222-d5bf2f4b7dd1/Images/Documentation/image-1768540693931.png)

> [!NOTE]
> ** NOTE
> 
> - When you delete a variable, it is removed from all articles where it is referenced.
> - The article itself is not modified or republished when a variable is deleted.
> - On the knowledge base site, the surrounding content adjusts automatically, so no empty space remains where the variable was removed.
> - In the portal, the variable is replaced with the placeholder text “Loading...”. You can either replace this with another variable or delete it manually.

---

## Translating variables

You can create and manage variables in multiple languages. This ensures that when your articles are translated, the variables match the language of the article, providing a consistent and localized user experience.

#### Translating new variables

1. Navigate to **Content tools** (![Content tools icon](https://cdn.document360.io/860f9f88-412e-4570-8222-d5bf2f4b7dd1/Images/Documentation/Content%20tools.png)) in the left navigation bar in the **Knowledge base portal**.
2. In the left navigation pane, navigate to **Content resources** > **Variables**.
3. Click **Create**.
4. In the **Language**dropdown, select the intended language (except global).
5. Enter the variable **name**and the content for the variable in English (or your default language).
6. To translate the content into other languages, click the **Translate to other languages** dropdown.
7. Select the desired languages from the dropdown menu and click **Translate**.

> [!NOTE]
> ** NOTE
> 
> - The default language will be marked as **Main**.
> - Translated languages will be indicated with a green tick to show that the translation is complete. If needed, you can navigate to untranslated languages and complete their translation.
8. Once the translations are complete, click **Save** to save the variable along with its translations.

For example, if you create a variable for a welcome message in English, you can use the translation feature to add the same message in French, Spanish, German, etc.

#### Translating existing variables

> [!TIP]
> ** IMPORTANT
> 
> Global variables cannot be translated.

1. Navigate to **Content tools** (![Content tools icon](https://cdn.document360.io/860f9f88-412e-4570-8222-d5bf2f4b7dd1/Images/Documentation/Content%20tools.png)) in the left navigation bar in the **Knowledge base portal**.
2. In the left navigation pane, navigate to **Content resources** > **Variables**.
3. Click on the desired variable you wish to translate.
4. Navigate to **Translate to other languages**and select the desired language that the variable needs to be translated.
5. Click **Translate**.
6. If needed, you can navigate to other languages and translate them.
7. To retranslate the content, click **Translate again**, which will overwrite the existing translation with the new one.
8. If you need to remove the translated variable for a specific language, click the **More**(**) icon and select **Remove language**.

You can retranslate the content at any time if needed.
9. Once done, click **Update**.

![Document360 interface showing language options for creating a knowledge base.](https://cdn.document360.io/860f9f88-412e-4570-8222-d5bf2f4b7dd1/Images/Documentation/Translated%20variable.png)

---

### FAQ

#### How do Variables work?

Variables allow you to define specific content elements, such as product names or version numbers, in one place. Updating the variable automatically reflects the change across all relevant sections when this content changes, ensuring uniformity.

#### What's the benefit of using Variables in my documentation?

By using Variables, you ensure consistency in your documentation while minimizing the need for manual updates. This saves time, reduces errors, and maintains accuracy, especially when dealing with frequently changing information.

#### Can I create my Variables in Document360?

Document360 empowers you to create custom Variables tailored to your documentation needs. This allows you to adapt the feature to the specific terminology and elements relevant to your content.

#### How do I use Variables in my articles?

Insert the variable into the article content using the editor's toolbar or the merge code value, and it will dynamically pull the information you've defined, ensuring uniformity across your documentation.

#### Can Variables be updated across multiple articles at once?

When you update a Variable, the change is automatically reflected throughout all instances where that variable is used, making it easy to maintain consistent information across your entire knowledge base.

#### Are Variables limited to specific types of content?

Yes, Variables can be used for limited text, number, or link-based content, from product names and version numbers to URLs and contact information.

#### How do Variables enhance collaboration among team members?

Variables streamline the collaboration process by ensuring everyone is using the same accurate information. Changes to a variable are instantly updated across all articles, preventing discrepancies.

#### Is using Variables a best practice in technical documentation?

Using Variables is a best practice that improves technical documentation efficiency, consistency, and accuracy. It's particularly valuable when working with dynamic information that requires frequent updates.

#### Can I translate variables into any language?

You can translate variables into any of your project’s languages.

#### Is the definition of a variable term created in the Knowledge base site indexed in search and by Google?

Yes, the definition of a variable term created in the Knowledge Base (KB) site is indexed in both the site's search and by Google. Once the term is added, it becomes searchable on the website and will also be crawled and indexed by Google.

The most feature-rich editor in Document360, combining visual rich-text editing with Markdown support. Unlike the basic WYSIWYG editor, it supports LaTeX for mathematical expressions, advanced table controls, and HTML view. Best suited for teams who need formatting flexibility without switching to a dedicated Markdown workflow.

## Related

- [Using snippets](/snippets.md)
- [Templates](/article-templates.md)
