Using Templates
Accessing Templates
- Open WeakAuras with
/wa - Click “New” button
- Browse the template categories:
- Class Templates: Abilities, resources, and mechanics for each class
- General Templates: Universal tracking (cooldowns, proc alerts, resources)
- Encounter Templates: Boss mechanics and timers
Template Categories
- Class Templates
- General Templates
- Encounter Templates
Templates specific to each class and specialization:Available for Each Class:
- Core abilities and cooldowns
- Resource tracking (combo points, holy power, runes, etc.)
- Important procs and buffs
- Spec-specific mechanics
- Rune display with cooldowns
- Blood Shield tracker
- Bone Shield stacks
- Army of the Dead duration
Customizing Templates
After loading a template:- Select the aura in the WeakAuras window
- Modify the display:
- Change position and size
- Adjust colors and textures
- Modify fonts and text
- Adjust triggers:
- Change spell IDs or names
- Modify stack requirements
- Add additional conditions
- Update actions:
- Add custom sounds
- Include chat announcements
- Modify animation behavior
Template Structure
Templates are defined in theWeakAurasTemplates addon.
Template Components
Each template consists of:- Display Configuration: Visual settings (position, size, appearance)
- Trigger Setup: Conditions for showing/hiding
- Load Conditions: When the aura should be active
- Actions: Sound, animations, and custom code
Template Metadata
Templates include metadata for organization:Creating Custom Templates
Template Development
Templates are defined inWeakAurasTemplates/TriggerTemplates.lua:
- Define your template structure:
- Add to template registry:
Template Best Practices
Use Spell IDs
Use Spell IDs
When possible, use spell IDs instead of names for better compatibility across locales:
Include Load Conditions
Include Load Conditions
Always include appropriate load conditions to optimize performance:
Provide Clear Descriptions
Provide Clear Descriptions
Help users understand what the template does:
Test Across Specs
Test Across Specs
If your template targets multiple specs, test it thoroughly in each one.
Advanced Template Features
Dynamic Values
Templates can use dynamic values based on player stats:Multiple Triggers
Create templates with complex trigger logic:Child Auras in Groups
Create group templates with multiple child auras:Sharing Templates
Templates can be shared with other players:Exporting Templates
- Create and configure your aura
- Select it in the WeakAuras window
- Click the export icon (📋)
- Copy the generated string
Publishing Templates
Share your templates with the community:Wago.io
Upload to wago.io for easy sharing
GitHub
Contribute templates to the official repository
Discord
Share in the WeakAuras Discord community
Forums
Post on WoW community forums
Template Resources
Source Files
Template definitions are in:WeakAurasTemplates/TriggerTemplates.lua- Main template logicWeakAurasTemplates/TriggerTemplatesDataWrath.lua- WotLK-specific templates
Example Templates
Study existing templates to learn best practices:Next Steps
Creating Auras
Learn to create custom auras
Lua Scripting
Add custom functionality
Import/Export
Share your creations