docs: fix variable display and rename sidebar item

This commit is contained in:
dyzulk
2026-01-18 17:50:23 +07:00
parent 26b0a20af7
commit ecb026a88f
3 changed files with 31 additions and 35 deletions

View File

@@ -8,25 +8,23 @@ Templates use HTML and specialized placeholders to display voucher data.
### Supported Variables
| Variable | Description |
| :--- | :--- |
| `\{\{username\}\}` | User's login username |
| `\{\{password\}\}` | User's login password |
| `\{\{server_name\}\}` | Hotspot server name |
| `\{\{dns_name\}\}` | DNS name for login (e.g., `hotspot.lan`) |
| `\{\{profile\}\}` | User profile/package name |
| `\{\{price\}\}` | Plan price (formatted) |
| `\{\{validity\}\}` | Validity duration |
| `\{\{time_limit\}\}` | Time limit session |
| `\{\{data_limit\}\}` | Data quota limit |
| `\{\{ip_address\}\}` | User's IP address |
| `\{\{mac_address\}\}` | User's MAC address |
| `\{\{comment\}\}` | User comment |
| `\{\{copyright\}\}` | Copyright text |
| `\{\{qrcode\}\}` | Generates a QR Code for login URL |
| `{{username}}` | User's login username |
| `{{password}}` | User's login password |
| `{{server_name}}` | Hotspot server name |
| `{{dns_name}}` | DNS name for login (e.g., `hotspot.lan`) |
| `{{profile}}` | User profile/package name |
| `{{price}}` | Plan price (formatted) |
| `{{validity}}` | Validity duration |
| `{{time_limit}}` | Time limit session |
| `{{data_limit}}` | Data quota limit |
| `{{ip_address}}` | User's IP address |
| `{{mac_address}}` | User's MAC address |
| `{{comment}}` | User comment |
| `{{copyright}}` | Copyright text |
| `{{qrcode}}` | Generates a QR Code for login URL |
> [!TIP]
> The `\{\{qrcode\}\}` variable supports custom attributes for styling, for example: `\{\{qrcode size=100 fg=red\}\}`.
> The `{{qrcode}}` variable supports custom attributes for styling, for example: `{{qrcode size=100 fg=red}}`.
- **Preview**: Test your template instantly from the editor.
## <Icon name="Printer" color="info" /> Quick Print