---
title: "External and internal wraps (legacy templates)"
slug: "external-and-internal-wraps-pre-2022-legacy"
description: "Show a long signature to external recipients and a short one internally, or a banner only externally, with legacy if_sgexternal and if_sginternal tags."
updated: 2024-01-16T21:25:18.000Z
canonical: "https://help.opensense.com/docs/external-and-internal-wraps-pre-2022-legacy"
---

> ## 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 (legacy templates)

## Overview

This article is for pre-2022 templates, built with our legacy HTML syntax: **use it if your tags are in `$tag;` format.** If you use Liquid templates, see [External and internal wraps (Liquid templates)](https://help.opensense.com/docs/external-and-internal-wraps-new-liquid-templates).

Some customers want a shortened signature to display internally, and a long signature to display externally. Opensense can do this:

<dl class="kb-insights-summary">
  <div><dt><code>{if_sgexternal}</code> and <code>{/if_sgexternal}</code></dt><dd>Wrap the fields that are delivered to recipients outside your domain.</dd></div>
  <div><dt><code>{if_sginternal}</code> and <code>{/if_sginternal}</code></dt><dd>Wrap the fields that are delivered to recipients within your domain.</dd></div>
</dl>


## Internal vs. external signature

Wrap the entire table with `{if_sgexternal}` and `{/if_sgexternal}`, or with `{if_sginternal}` and `{/if_sginternal}`:

![The HTML Template box, with {if_sgexternal} before the opening table tag and {/if_sgexternal} after the closing table tag](https://help.opensense.com/media/oldexternalinternal1-4f21b13c98ca.png)

This example shows a long, formal signature externally, and a shortened signature internally. In the reply template, there's no signature set for internal replies.

<img src="https://help.opensense.com/media/oldexternalinternal2-c8749408cadc.png" alt="A template preview with a full signature inside the external wrap and a short name-and-logo one inside the internal wrap, and a reply template with only an external signature" width="530" height="684" loading="lazy" decoding="async">

## External banners

Wrap only the object, such as the banner tag, with `{if_sgexternal}` and `{/if_sgexternal}`, or with `{if_sginternal}` and `{/if_sginternal}`:

![The HTML Template box, with the banner tag after the closing table tag wrapped in if_sgexternal tags](https://help.opensense.com/media/oldexternalinternal3-05a7b200d6aa.png)


## What's next

- [Conditional fields (legacy templates)](https://help.opensense.com/docs/conditional-fields-pre-2022-legacy)
- [HTML and field types (legacy templates)](https://help.opensense.com/docs/html-field-types-1)

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