Help talk:TemplateData
Add topicLUA parameters in Template Data ?
[edit]Following discussion -> Project:Support_desk#should_the_Template_Data_panel_show_also_the_LUA_parameters_? i have no clear idea about the response: i think the JSON of the Template should hold the description of the LUA interpreted parameters, shouldn't it ? --Christian 🇫🇷 FR 🚨 (talk) 15:47, 22 January 2025 (UTC)
Question about spaces in format strings
[edit]I tried to correct what I perceived as a mistake in a format string example but it was reverted so clearly there’s something I didn’t understand.
In the example “Pipe characters at the end of the previous line”, the format string {{_|\n _______________ = _}} is said to give the following result:
{{Foo|
bar = baz|
longparameter = quux}}{{Bar}}
My issue is that in the string, there is only 1 space before the argument name, but in the result there are 2. What confuses me more is that, in the last example, the format string \n{{_ |\n _______________ = _}} gives:
{{Foo |
bar = baz |
longparameter = quux}}
{{Bar}}
where there are 2 spaces in both cases.
So which example is correct, which one is not? Or is there something I’m missing? Cheers. (I’m pinging @Jdforrester (WMF) as they’re the one who reverted my edit) — Danÿa (talk) 15:37, 26 August 2025 (UTC)
- The padding is provided by the
_character; the simple space means "always add this space regardless of context", which is not what happens. Jdforrester (WMF) (talk) 15:59, 26 August 2025 (UTC)- Ok so if there is at least one space here after the \n, the line will always be indented with exactly 2 spaces? — Danÿa (talk) 16:29, 26 August 2025 (UTC)