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

# 電話番号テンプレートでサポートされるLiquid構文

> 電話番号テンプレートでサポートされるLiquid タグ、Liquid フィルター、一般的な変数について説明します。

Liquid構文の概要については、[LiquidJS introduction](https://liquidjs.com/tutorials/intro-to-liquid.html)を参照してください。そこでは、Liquidの2種類のマークアップが簡潔に説明されています。

* **出力**。HTMLを出力します。

  出力の構文は、変数または値と、必要に応じて指定するフィルターのリストを `{{` と `}}` で囲んだものです。例: `{{ user.name }}`。

* **タグ**。テンプレートのレンダリングを制御し、ロジックを実装します。

  タグの構文は、タグ名と必要に応じた引数を `{%` と `%}` で囲んだものです。例: `{% if user_metadata.lang == 'it' %} Ciao! {% endif %}`。

このページでは、電話番号テンプレートでサポートされるタグ、フィルター、変数を一覧で示します。

<div id="tags">
  ## タグ
</div>

すべての電話番号テンプレートで、次の Liquid タグを使用できます。

| カテゴリ  | タグ                                      |
| ----- | --------------------------------------- |
| 反復    | `for`, `cycle`, `tablerow`              |
| 制御フロー | `if`, `unless`, `elsif`, `else`, `case` |
| 変数    | `assign`, `increment`, `decrement`      |
| ファイル  | `include`, `layout`                     |
| 言語    | `raw`, `comment`                        |

Liquid タグの説明と例は、[LiquidJS tags page](https://liquidjs.com/tags/overview.html)で確認できます。

<div id="filters">
  ## フィルター
</div>

すべての電話番号テンプレートで、次の Liquid フィルターをサポートしています。

| Category | Filters                                                                                                                                                                                            |
| -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Math     | `plus`, `minus`, `modulo`, `times`, `floor`, `ceil`, `round`, `divided_by`, `abs`, `at_least`, `at_most`                                                                                           |
| String   | `append`, `prepend`, `capitalize`, `upcase`, `downcase`, `strip`, `lstrip`, `rstrip`, `strip_newlines`, `split`, `replace`, `replace_first`, `remove`, `remove_first`, `truncate`, `truncatewords` |
| HTML/URI | `escape`, `escape_once`, `url_encode`, `url_decode`, `strip_html`, `newline_to_br`                                                                                                                 |
| Array    | `slice`, `map`, `sort`, `sort_natural`, `first`, `last`, `join`, `reverse`, `size`                                                                                                                 |
| Date     | `date`                                                                                                                                                                                             |
| Misc     | `default`                                                                                                                                                                                          |

Liquid フィルターの説明と例については、[LiquidJS filters page](https://liquidjs.com/filters/overview.html)を参照してください。

<div id="general-variables">
  ## 一般的な変数
</div>

特に明記がない限り、以下の変数は、すべての電話番号テンプレートの **Text Message Template** フィールドで使用できます。

`logo_url` などの URL ベースのプロパティは、セキュリティリスクを軽減するために自動的に URL エスケープされます。電話番号は、米国の電話番号を除き、国番号プレフィックス (`+<country_code>`) 付きで保存されます。米国の電話番号では、国番号プレフィックスが省略される場合があります。

* [Tenant Settings](https://manage.auth0.com/#/tenant) で定義されるテナント関連情報:
  * `tenant` (生のテナント名)
  * `friendly_name`
  * `support_email`
  * `support_url`
  * `logo_url`
  * `home_url`
  * `region`

* `locale` (`/authorize` リクエストの `ui_local` クエリパラメーターに基づきます)

* `code` (`blocked_account` テンプレートでは使用不可)

* `connection` (データベース接続名)

* 以下の `user` 変数:
  * `user.name`
  * `user.nickname`
  * `user.given_name`
  * `user.family_name`
  * `user.picture`
  * `user.login_count`
  * `user.user_metadata` (ユーザー設定など、ユーザーの中核機能に影響しないユーザー属性)
  * `user.app_metadata` (アプリケーションの動作やユーザーがアクセスできる対象など、ユーザーの中核機能に影響する可能性があるユーザー属性。サポートプラン、セキュリティロール、アクセス制御グループなどを含みます)
  * `user.email_verified`
  * `user.email`
  * `user.phone_number`
  * `user.phone_verified`
  * `user.multifactor`
  * `user.source_ip`
  * `user.country`
  * `user.city`

* 以下の `client` 変数:
  * `name`
  * `clientID`
  * `metadata`

* `application` オブジェクト (`application.name` や `application.client_metadata` などの標準的なクライアントプロパティにアクセスできます)

* ユーザーが [組織](/ja/docs/manage-users/organizations/organizations-overview) 経由でログインした場合は、次の追加変数も使用できます:
  * `organization.id`
  * `organization.name`
  * `organization.display_name`
  * `organization.metadata`
  * `organization.branding.logo_url`
  * `organization.branding.colors.primary`
  * `organization.branding.colors.page_background`

* 複数の<Tooltip tip="Custom Domain: 特殊な名前、またはバニティ名を持つサードパーティドメイン。" cta="用語集を表示" href="/ja/docs/glossary?term=custom+domains">カスタムドメイン</Tooltip>変数:
  * `custom_domain.domain` (テナントのドメイン名)
  * `custom_domain.domain_metadata` (カスタムドメインのメタデータフィールド (キーと値のペア) )
