Board Thread:Support Requests - Designing Your Wiki/@comment-33688175-20200317170752/@comment-9605025-20200508025802

Uh. How to change the data is a bit hard to explain if you don't understand how Lua works. I'll give it a try though.

The example starts with. What does this do? It gives whatever follows it to whichever function called the module.

So what is it returning? In this case, we are using it to return the data needed to construct the timeline.

Okay, but how is that data represented? It is represented using what Lua refers to as "tables". If you are familiar with other programming languages, you may be more familiar with the some other term such as "struct", "object", or "list". A table contains properties. Each property has a key (i.e. name) that is used to access it's value. Here is an example table. This table has two properties: prop1 and prop2. The value of prop1 is 5 and the value of prop2 is the string (i.e. text) "hello". Values can also be boolean values (i.e. true or false) or other tables.

Timeline has a specific manner in which the table is to be structured in order to correctly indicate the relevant data. A summary of the various table properties can be found here. In the documentation, "root object" refers to the table returned by.

Does this make sense?