Answers.Body: <p>Insert <strong>{debug}</strong> into a message template then perform the relevant action (ie make an online contribution if you modified <strong>Contributions - Receipt (on-line)</strong>). The email sent will contain a list of all the smarty variables assigned to that template </p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-11-20T14:48:18.860Z
Answers.Text: When I inserted {debug} in the message template, the debug information was showing only in the headers of the email (viewable only when you click "View Source" or equivalent). So I copied that debug information from there, pasted it into Notepad++ and saved it as an HTML file. I had to remove the javascript surrounding the html. I also replaced all instances of `\/` with `/`. Now when I loaded the HTML file in my browser, I had a READABLE debug information, showing me all the smarty variables available to me.
Answers.UserDisplayName: Borislav Zlatanov
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-11-20T14:54:32.237Z
Answers.Text: Also, I was modifying the **Contributions - Receipt (on-line)** message template but I didn't want to go through submitting the whole donation form just to check whether my changes looked good. So I went to **Find Contributions**, then selected one of the contributions I had already made and from the Actions dropdown at the top, I chose **Print or Email Contribution Receipt**. This way I could quickly make small changes to the template and see if I achieved what I wanted.
Answers.UserDisplayName: Borislav Zlatanov
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-05-15T05:08:29.923Z
Answers.Text: A limitation of this approach is that it doesn't work for all templates.  For instance, in 4.6.2 I can make this work on emails sent from a Contact screen, for a Contribution email ... but NOT for an activity reminder email.  In fact, I'm not even sure Smarty is active for the reminder emails?
Answers.UserDisplayName: Eliot Mason
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-04-27T20:05:34.730Z
Answers.LastActivityDate: 2015-04-27T20:05:34.730Z
Answers.UserDisplayName: JoAnne
Answers.Body: <p>You can insert the <code>{debug}</code> Smarty token into your template: <a href="http://forum.civicrm.org/index.php/topic,14845.msg63471.html#msg63471" rel="nofollow">http://forum.civicrm.org/index.php/topic,14845.msg63471.html#msg63471</a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-04-27T20:00:41.660Z
Answers.LastActivityDate: 2015-04-27T20:00:41.660Z
Answers.UserDisplayName: Jon G - Megaphone Tech
Answers.Body: <p>use <strong>{debug output=html}</strong></p>
  
  <p>To have a nice formatting in html email  </p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-04-03T09:23:26.317Z
Answers.LastActivityDate: 2020-04-03T09:23:26.317Z
Answers.UserDisplayName: empiguet
Body: <p>For a page in the browser, we can put &amp;smartyDebug=1 in the URL to see variables in scope for the top level template. How can we do this for message templates?</p>
  
Tags: <templates><smarty><message-templates>
Title: How can I see the available tokens for message templates?
ThreadText: # How can I see the available tokens for message templates?
  
  (Asked by: username_0 on 2015-04-27)
  
  For a page in the browser, we can put &smartyDebug=1 in the URL to see variables in scope for the top level template. How can we do this for message templates?
  
  **Tags:** templates, smarty, message-templates
  
  
  ---
  
  ## 3 answers
  
  ### Answer by username_5 on 2020-04-03. Score: 6 | Accepted answer
  
  use **{debug output=html}**
  
  To have a nice formatting in html email
  
  
  ---
  
  ### Answer by username_1 on 2015-04-27. Score: 7
  
  Insert **{debug}** into a message template then perform the relevant action (ie make an online contribution if you modified **Contributions - Receipt (on-line)**). The email sent will contain a list of all the smarty variables assigned to that template
  
  > **Comments:**
  > **username_3**: A limitation of this approach is that it doesn't work for all templates.  For instance, in 4.6.2 I can make this work on emails sent from a Contact screen, for a Contribution email ... but NOT for an activity reminder email.  In fact, I'm not even sure Smarty is active for the reminder emails?  
  > **username_2**: When I inserted {debug} in the message template, the debug information was showing only in the headers of the email (viewable only when you click "View Source" or equivalent). So I copied that debug information from there, pasted it into Notepad++ and saved it as an HTML file. I had to remove the javascript surrounding the html. I also replaced all instances of `\/` with `/`. Now when I loaded the HTML file in my browser, I had a READABLE debug information, showing me all the smarty variables available to me.  
  > **username_2**: Also, I was modifying the **Contributions - Receipt (on-line)** message template but I didn't want to go through submitting the whole donation form just to check whether my changes looked good. So I went to **Find Contributions**, then selected one of the contributions I had already made and from the Actions dropdown at the top, I chose **Print or Email Contribution Receipt**. This way I could quickly make small changes to the template and see if I achieved what I wanted.  
  
  ---
  
  ### Answer by username_4 on 2015-04-27. Score: 4
  
  You can insert the `{debug}` Smarty token into your template: <http://forum.civicrm.org/index.php/topic,14845.msg63471.html#msg63471>
  
  
  ---
  
  