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

Importing the Module

I have already done this for you. However, for future reference, you need to import the module before you can use it. If the module is a global Lua module from the dev wiki (as is in this case), then you can just create the corresponding page and use. For example, if the module name is "Example", create page "Module:Example" with the following content. In this case, the page you want to create it Module:Timeline. If the module is not a global Lua module from the dev wiki, then you need to copy the entire code from the source to your wiki.

Specifying Data

The data is specified in the format described in the documentation and shown by the example. However, what you were not doing correctly was putting it on the right page. The data is stored not on the page where the timeline is displayed but as another Lua module. I have moved the example data to Module:Timeline/Example. You create a new module for each timeline you want.

Displaying the Timeline

After specifying the data as mentioned above, you display it by placing this where you want the timeline to be displayed.

Replace "DataSource" with the name of the module you specified the data in (without the preceeding "Module:"). Since I moved the example data to Module:Timeline/Example, the example timeline is displayed by doing this.

This allows you to display the same timeline in multiple places despite having only a single copy of the data.