Skip to content

Instantly share code, notes, and snippets.

@d-oit
Created October 31, 2025 21:08
Show Gist options
  • Select an option

  • Save d-oit/691ae42a3eef987a0b6e1ac04f4eb878 to your computer and use it in GitHub Desktop.

Select an option

Save d-oit/691ae42a3eef987a0b6e1ac04f4eb878 to your computer and use it in GitHub Desktop.
Template Variables Reference - Complete guide to all available template variables. Includes usage examples and descriptions. #templates #automation #variables #documentation #reference

Here's the markdown table with all template variables and a concise usage example:

Variable Description
{{today}} Current date in default format
{{current_day}} Current day of the week
{{current_time}} Current time
{{timezone}} Current timezone identifier
{{current_week}} Current ISO week number
{{current_week_start}} Start date of current week
{{current_week_end}} End date of current week
{{yesterday}} Yesterday's date
{{tomorrow}} Tomorrow's date
{{user_city}} User's detected city
{{user_country}} User's detected country
{{user_language}} User's preferred language
{{locale_datetime}} Localized date and time

Usage Example

Date: {{today}} ({{current_day}}) at {{current_time}} {{timezone}}
Week: {{current_week}} ({{current_week_start}} to {{current_week_end}})
User: {{user_city}}, {{user_country}} ({{user_language}})
Localized: {{locale_datetime}}
Previous: {{yesterday}} | Next: {{tomorrow}}

This template structure shows how all 16 variables can be organized in a practical report format, demonstrating date/time context, user location preferences

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment