Module talk:DemoTemplate

Doesn't preserve outer spacing
See how it doesn't preserve outer spaces around " two inner spaces ". Is that the way we want it to behave? Or is it just the MediaWiki software?

&rarr; Thanks. &mdash; Cp i r al  Cpiral  08:43, 24 June 2015 (UTC)
 * All templates do that. Whitespace at the start and end is stripped in all named and explicitly numbered parameters, but not in unnamed ones:
 * &rarr; ""
 * &rarr; ""
 * &rarr; ""
 * &rarr; ""
 * Since whitespace is stripped before a parameter is passed into a module/template, nothing can be done within this module, but whitespace can be kept by adding  when using it:
 * &rarr; ""
 * &rarr; ""
 * SiBr4 (talk) 15:28, 24 June 2015 (UTC)

Doesn't preserve order of parameters
&rarr; &mdash; Cp i r al  Cpiral  23:16, 19 July 2015 (UTC)
 * This is a result of standard behavior of Scribunto/Lua. Parameters are passed into a module as a Lua table, which does not preserve the order of named fields. When looping over named table fields, like this template does, they are therefore evaluated in arbitrary order. Nothing can be done in this module, short of adding a front-end parameter to explicitly specify the list of parameters and their order. SiBr4 (talk) 17:46, 26 July 2015 (UTC)