Board Thread:Script Suggestions/@comment-36009152-20190825142631/@comment-36009152-20190827145655

Are there handy things to make for wikis that lua can be used for?

So for the switch template there are:

{{#switch:{{{1}}}|

{{#if:{{{2|}}} {{#if:{{{n|}}} {{#if:{{{q|}}}
 * (p. {{{2}}})}}
 * — {{{n|}}} }}
 * — "{{{q}}}" }}

What do they do? Like is {{{1}}} what causes what is after the : in  |1 = Owari no Seraph: Chapter 1 to change? Then also what would the 2, q and n achieve?