# Is there a list of supported template fields?

**URL:** https://meta.discourse.org/t/is-there-a-list-of-supported-template-fields/51564
**Category:** Feature
**Created:** [10월 14, 2016, 7:39오후 UTC](https://meta.discourse.org/t/is-there-a-list-of-supported-template-fields/51564 "2016-10-14T19:39:03Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![joshfrank](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/joshfrank/32/114706_2.png) [@joshfrank](https://meta.discourse.org/u/joshfrank)
#### Post date: [10월 14, 2016, 7:39오후 UTC](https://meta.discourse.org/t/is-there-a-list-of-supported-template-fields/51564/1 "2016-10-14T19:39:03Z")

</div>

I’m trying to customize our welcome letter, and I can see that there are known field tokens, like:

```
Welcome to %{site_name}!

```

Is there a list anywhere of all the valid tokens that can go in a `%{token}` block?

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [10월 15, 2016, 4:47오전 UTC](https://meta.discourse.org/t/is-there-a-list-of-supported-template-fields/51564/2 "2016-10-15T04:47:49Z")

</div>

That’s about the only one. So there is not a list because there aren’t many fields.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [10월 17, 2016, 1:20오전 UTC](https://meta.discourse.org/t/is-there-a-list-of-supported-template-fields/51564/3 "2016-10-17T01:20:02Z")

</div>

The full current list is here:

> <https://github.com/discourse/discourse/blob/main/lib/email/message_builder.rb#L24-L54>

---

<div class="post-metadata">

### Author: ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)
#### Post date: [10월 18, 2016, 6:03오전 UTC](https://meta.discourse.org/t/is-there-a-list-of-supported-template-fields/51564/4 "2016-10-18T06:03:18Z")

</div>

In other words, anything passed in via `@opts` as well. Have fun tracing that throughout the calling code…

---

<div class="post-metadata">

### Author: ![joshfrank](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/joshfrank/32/114706_2.png) [@joshfrank](https://meta.discourse.org/u/joshfrank)
#### Post date: [10월 18, 2016, 5:25오후 UTC](https://meta.discourse.org/t/is-there-a-list-of-supported-template-fields/51564/5 "2016-10-18T17:25:33Z")

</div>

@sam: thanks for this.

---

<div class="post-metadata">

### Author: ![jtbayly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jtbayly/32/119510_2.png) [@jtbayly](https://meta.discourse.org/u/jtbayly)
#### Post date: [11월 17, 2021, 1:19오후 UTC](https://meta.discourse.org/t/is-there-a-list-of-supported-template-fields/51564/6 "2021-11-17T13:19:57Z")

</div>

원래 질문을 반복하고 싶습니다. 어딘가에 목록이 있나요? 텍스트 커스터마이징에서 사용할 수 있는 것이 무엇인지 알고 싶습니다.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [1월 13, 2022, 7:27오후 UTC](https://meta.discourse.org/t/is-there-a-list-of-supported-template-fields/51564/7 "2022-01-13T19:27:45Z")

</div>

[위 답변](https://meta.discourse.org/t/is-there-a-list-of-supported-template-fields/51564/3)이 정확하지 않나요?

---

<div class="post-metadata">

### Author: ![jtbayly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jtbayly/32/119510_2.png) [@jtbayly](https://meta.discourse.org/u/jtbayly)
#### Post date: [1월 13, 2022, 9:15오후 UTC](https://meta.discourse.org/t/is-there-a-list-of-supported-template-fields/51564/8 "2022-01-13T21:15:35Z")

</div>

그럴 수도 있지만, 그렇다면 나는 이해할 수 없다.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [1월 13, 2022, 9:20오후 UTC](https://meta.discourse.org/t/is-there-a-list-of-supported-template-fields/51564/9 "2022-01-13T21:20:03Z")

</div>

아래 스크린샷에서 관련 코드 부분을 강조해 두었습니다.

 ![image](https://global.discourse-cdn.com/meta/original/3X/e/2/e2467d33952ab695104ca634898ff25abe812e85.png)

일반적으로 "`{%placeholder}`를 다른 텍스트로 교체하세요"라는 문구를 찾아야 합니다.

---

<div class="post-metadata">

### Author: ![jtbayly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jtbayly/32/119510_2.png) [@jtbayly](https://meta.discourse.org/u/jtbayly)
#### Post date: [1월 13, 2022, 9:22오후 UTC](https://meta.discourse.org/t/is-there-a-list-of-supported-template-fields/51564/10 "2022-01-13T21:22:01Z")

</div>

감사합니다! 확인해 보겠습니다.
