From c8548192ac3064b73d0092099ce27c24a2ab17c8 Mon Sep 17 00:00:00 2001 From: Annwan Date: Thu, 15 Aug 2024 04:23:53 +0200 Subject: [PATCH] [YQTemplate] do stuff --- yqform.etlua | 30 +++++++++++++++++++++++++----- yqtemplate.lua | 2 +- 2 files changed, 26 insertions(+), 6 deletions(-) diff --git a/yqform.etlua b/yqform.etlua index 5c0dda2..ed36668 100644 --- a/yqform.etlua +++ b/yqform.etlua @@ -11,31 +11,51 @@

General Information

Name
-
<%= args.name.v %>
+
+ <% if args.name then %> + <%= args.name.v %> + <% end %> +
Avatar
-
+
+ <% if args.avatar then %> + + <% end %> +
Is Leader
<% if args.is_leader and args.is_leader.v == "on" then %> <% else %> - <% end %>c + <% end %>

Classes and Levels

Class 1
+ <% if args.class1 then %> + <% if args.class1_lvl then %> Lvl <%= args.class1_lvl %> + <% end %> + <% end %>
Class 2
+ <% if args.class2 then %> + <% if args.class2_lvl then %> Lvl <%= args.class2_lvl %> + <% end %> + <% end %> +
+
Class leaning
+ <% if args.class_leaning then %> + <%= args.class_leaning %> + <% end %>
-
Class leaning
<%= args.class_leaning %>
<% end %>
@@ -49,7 +69,7 @@

Classes and Levels

diff --git a/yqtemplate.lua b/yqtemplate.lua index b792750..8844d55 100644 --- a/yqtemplate.lua +++ b/yqtemplate.lua @@ -50,7 +50,7 @@ return { encoder = require "base64".encode, readfile = utils.readfile, args = args, - classes = classes + classes = classes, elements = { "Fire", "Water", "Earth", "Air", "Wood", "Electricity", "Metals", "Dreams",