Board Thread:Lua Help/@comment-24520859-20160103085441/@comment-24473195-20160103114918

Plover-Y wrote: Thank you very much for your advices, but, to be honest, Lua templating/Converting Wikitext templates is too difficult for me.

Because of "args", I thought maybe I should understand module:if of the page before fixing w:c:ja.templates:template:ifexist (see also: w:c:templates:template:ifexist), but, excuse me, I haven't understood how to use the module (I copied it to w:c:ja.templates:module:if) yet. Well, lua is designed to be easy to learn and use. But it requires some time and practice to learn how it works.

The simplest explanation I can think of is that "frame" contains the tools or contents of the page or template. For example: In the template :

frame.args  > 1=bar, 2= bar2 , monkey = baba

So : frame.args[1] === bar frame.args[2] === bar2 frame.args["monkey"] = baba

Also : - > frame.args[1] or frame.args[2]

But really, if you want to use Lua often by taking shortcuts you'll just confuse yourself. You could try learning more from Lua templating/Basics or Lua.