Template talk:Scribunto

Deprecated parameter for syntaxhighlight

edit

Template:Scribunto/helper contains

{{#tag:syntaxhighlight|{{{pre}}}|lang=lua|inline=1}}

which renders as {{{pre}}} gets turned into the equivalent of

<syntaxhighlight lang="lua" inline>{{{pre}}}</syntaxhighlight>

which renders as {{{pre}}}, which is what we want.

According to the information at the top of Category:Pages using deprecated enclose attributes, Example text should be replaced with inline.

I did a test of

 {{#tag:syntaxhighlight|{{{pre}}}|lang=lua|inline}}

and as you can see it renders as

{{{pre}}}

which is not what we want. We want everything to be on one line.

However if you put an = after inline, it works fine:

 {{#tag:syntaxhighlight|{{{pre}}}|lang=lua|inline=}}

renders as {{{pre}}}, which is what we want.

I'm not very well versed in this so I'm not going to make the change. If you see this and are confident the fix works, please make the change, so this template will be removed from Category:Pages using deprecated enclose attributes. davidwr/(talk)/(contribs) 21:27, 19 August 2020 (UTC)Reply

  Done by Codehydro, also required a parallel change to Template:Scribunto/helper2 (discussion). davidwr/(talk)/(contribs) 16:15, 25 August 2020 (UTC)Reply