Docs: Replace template variable lists with tables

This commit is contained in:
MivoDev
2026-01-18 11:44:58 +07:00
parent e48286c910
commit 41477bd5ad
2 changed files with 42 additions and 12 deletions

View File

@@ -6,12 +6,27 @@ MIVO memiliki engine template yang mumpuni untuk membuat voucher yang cantik dan
Template menggunakan HTML dan placeholder khusus untuk menampilkan data voucher.
- **Variabel**:
- **Kredensial**: `\{\{username\}\}`, `\{\{password\}\}`
- **Server**: `\{\{server_name\}\}`, `\{\{dns_name\}\}`
- **Paket**: `\{\{profile\}\}`, `\{\{price\}\}`, `\{\{validity\}\}`, `\{\{time_limit\}\}`, `\{\{data_limit\}\}`
- **Jaringan**: `\{\{ip_address\}\}`, `\{\{mac_address\}\}`
- **Ekstra**: `\{\{comment\}\}`, `\{\{copyright\}\}`, `\{\{qrcode\}\}` (mendukung opsi seperti `size=100 fg=red`)
### Variabel yang Didukung
| Variabel | Deskripsi |
| :--- | :--- |
| `\{\{username\}\}` | Username login pengguna |
| `\{\{password\}\}` | Password login pengguna |
| `\{\{server_name\}\}` | Nama server hotspot |
| `\{\{dns_name\}\}` | Nama DNS untuk login (cth: `hotspot.lan`) |
| `\{\{profile\}\}` | Nama profil/paket pengguna |
| `\{\{price\}\}` | Harga paket (terformat) |
| `\{\{validity\}\}` | Durasi masa aktif |
| `\{\{time_limit\}\}` | Batas waktu sesi |
| `\{\{data_limit\}\}` | Batas kuota data |
| `\{\{ip_address\}\}` | Alamat IP pengguna |
| `\{\{mac_address\}\}` | Alamat MAC pengguna |
| `\{\{comment\}\}` | Komentar pengguna |
| `\{\{copyright\}\}` | Teks hak cipta |
| `\{\{qrcode\}\}` | Menghasilkan kode QR untuk URL login |
> [!TIP]
> Variabel `\{\{qrcode\}\}` mendukung atribut kustom untuk gaya, contohnya: `\{\{qrcode size=100 fg=red\}\}`.
- **Preview**: Uji template Anda secara instan dari editor.
## <Icon name="Printer" color="info" /> Cetak Cepat