# nats adtool\_replace\_linkcode

Alias: adtool\_replace\_linkcode

## Parameters

(*Required parameters in bold)*

| Parameter                                                                                                                         | Description                                  | Possible Values                | Default Value                                    | Example                      |
| --------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------- | ------------------------------ | ------------------------------------------------ | ---------------------------- |
| [tpl](https://docs.toomuchmedia.com/nats-admin/skins-and-templates/further-reading/template-function-parameters/tpl)              | Template used to display output              | Any valid template             | The function\_adtool\_replace\_linkcode template | tpl="my\_template"           |
| subject                                                                                                                           | String possibly containing {$link}           | Any string                     | None.                                            | subject="my {$link}"         |
| replace                                                                                                                           | The text {$link} should be replaced with     | Any string                     | None.                                            | replace="my replacement      |
| replaceinto                                                                                                                       | Variable to store replacement output         | Any valid Smarty variable name | None.                                            | replaceinto="my\_variable"da |
| [data\_only](https://docs.toomuchmedia.com/nats-admin/skins-and-templates/further-reading/template-function-parameters/data_only) | Set variables but don't display the template | 1                              | *None.* The template is displayed.               | data\_only=1                 |

### Output

No output. Result of replacement stored in the variable set by the "replaceinto" variable.
