---
title: "External and internal wraps (Liquid templates)"
slug: "external-and-internal-wraps-new-liquid-templates"
description: "Show a different signature or banner to recipients outside and inside your domain, by wrapping template content in sgexternal or sginternal if statements."
updated: 2024-01-16T21:06:18.000Z
canonical: "https://help.opensense.com/docs/external-and-internal-wraps-new-liquid-templates"
---

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

# External and internal wraps (Liquid templates)

## Overview

This article uses the current Opensense template syntax, Liquid (**as of 2022**). If you're used to the older format, see [External and internal wraps (legacy templates)](https://help.opensense.com/docs/external-and-internal-wraps-pre-2022-legacy).

## Different signature internally and externally

Wrap the entire `<table>` with `{% if sgexternal %}{% endif %}` or `{% if sginternal %}{% endif %}`.

The wrap opens before the signature's `<table>` tag:

![The HTML Template editor, line 1, where {% if sgexternal %} opens before the signature's table tag](https://help.opensense.com/media/externalinternal1-e921a275b1ee.png)

It closes after the closing `</table>` tag:

![The end of the HTML template, with the closing table tag followed by the endif tag](https://help.opensense.com/media/externalinternal2-c118a20264b9.png)

This example shows a long, formal signature to external recipients, but a shortened signature internally. It also has no signature set for internal replies.

![Preview of two signatures: a full one inside the sgexternal wrap, with logo, contact details, social icons, banner, and disclaimer, and a name-and-logo one inside the sginternal wrap](https://help.opensense.com/media/externalinternal3-598077ee6bad.png)

## External banners

Wrap the entire `<table>` with `{% if sgexternal %}{% endif %}` or `{% if sginternal %}{% endif %}`. In this example, the wrap is around the banner tag, so the rotating banner shows only to external recipients:

![Code after the closing table tag: {% if sgexternal %}{{adtags:rotation}}{% endif %}, which shows the rotating banner only to external recipients](https://help.opensense.com/media/externalinternal4-8e62043686a8.png)


## What's next

- [Conditional fields (Liquid templates)](https://help.opensense.com/docs/conditional-fields-new-liquid-templates)
- [HTML and field types (Liquid templates)](https://help.opensense.com/docs/html-field-types)

For further help, contact Opensense Support at [help@opensense.com](mailto:help@opensense.com).
