# 템플릿에서 '보내는 사람' 사용자 이름(개인 메시지)을 사용할 수 있으면 도움이 될 것 같습니다

**URL:** <https://meta.discourse.org/t/it-would-be-helpful-to-be-able-to-use-the-to-username-in-pms-for-templates/263469>\
**Category:** UX\
**Tags:** templates\
**Created:** [5월 2, 2023, 5:51오전 UTC](https://meta.discourse.org/t/it-would-be-helpful-to-be-able-to-use-the-to-username-in-pms-for-templates/263469 "2023-05-02T05:51:00Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![nathank](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nathank/32/290039_2.png) [@nathank](https://meta.discourse.org/u/nathank)\
**Post date:** [5월 2, 2023, 5:51오전 UTC](https://meta.discourse.org/t/it-would-be-helpful-to-be-able-to-use-the-to-username-in-pms-for-templates/263469/1 "2023-05-02T05:51:01Z")

</div>

[Discourse Templates](https://meta.discourse.org/t/discourse-templates/229250)에서 이어지는 토론입니다:

> [@saquetim](#):
>
> #### 미리 입력된 변수
> 
> 이 플러그인은 템플릿에서 다음 변수들을 지원합니다:
> 
> - `my_username`
> - `my_name`
> - `topic_title`
> - `topic_url`
> - `original_poster_username`
> - `original_poster_name`
> - `reply_to_username`
> - `reply_to_name`
> - `last_poster_username`
> - `reply_to_or_last_poster_username`.

불행히도 이것은 템플릿을 실제로 사용하려는 제 주요 사용 사례에서는 작동하지 않습니다.

저는 사용자가 작성한 게시물과 관련하여 그 사용자에게 개인 메시지를 보낼 때 해당 사용자를 직접 호칭하고 싶습니다. 이는 사용자를 교육하거나 더 나은 행동을 유도하기 위한 목적입니다.

그러나 위의 변수들은 이 용도에 사용할 수 없습니다.

- `my_username`
  - 제 사용자 이름을 반환합니다

- `original_poster_username`
  - 원본 게시자의 사용자 이름을 반환합니다

- `reply_to_username`
  - 아무것도 반환하지 않습니다

- `last_poster_username`
  - 역시 아무것도 없습니다

- `reply_to_or_last_poster_username`
  - 아무것도 없습니다

혹시 개인 메시지 수신자를 위한 변수를 하나 추가해 주실 수 있을까요? 어떻게 해야 할지 전혀 감이 잡히지 않습니다. 저를 제외한 단 한 명만 포함된 개인 메시지에만 작동해도 무방합니다.

---

_[View the full topic](https://meta.discourse.org/t/it-would-be-helpful-to-be-able-to-use-the-to-username-in-pms-for-templates/263469)._
