Template Component
1. Entry
Settings -> Components -> Template
On this page you can:
- Enable / disable template feature
- Create / edit / delete templates
- Configure template variables
- Open variable reference docs
2. How to use
After enabling templates, tap the template icon in editor toolbar.
Selecting a template renders variables and replaces current input content.
Templates are available in main editor and quick-input style entry points.
3. Template variables
Base variables
{{date}}{{time}}{{datetime}}{{weekday}}
Weather variables
{{weather}}{{weather.summary}}{{weather.city}}{{weather.province}}{{weather.condition}}{{weather.temperature}}{{weather.humidity}}{{weather.wind_direction}}{{weather.wind_power}}{{weather.report_time}}{{weather.adcode}}
4. Variable settings notes
Template variable settings include:
- Date / time format
- Enable weather variables
- Weather city (city name or adcode)
- Fallback text for weather variables
- Keep unknown variables as raw text (or replace with empty string)
Weather variables depend on AMap weather settings in Location configuration.
If config is incomplete, renderer falls back to your fallback text.
5. Example template
## {{date}} {{weekday}} Notes
- Time: {{time}}
- Weather: {{weather.summary}}
### Done Today
-
### Plan Tomorrow
-
6. Common issues
Why did applying a template overwrite my draft?
That is current behavior by design: applying template replaces the input box content.
Save draft or copy your current text before applying template.
Why weather variable shows -- or empty?
- Check weather variable switch is enabled.
- Check weather city and AMap key are configured correctly.
- Check network connection.