I want to create a MediaWiki template like
<syntaxhighlight lang="Java" style="background-color:lightgray; border:1px dashed gray;">
{{{code}}}
</syntaxhighlight>
and use it in normal article pages as
{{SourceCode|source=public static void main() {...}}}
but the problem is the <syntaxhighlight></syntaxhighlight>
tags defeats {{{code}}}
parameter, and the actual formatted result is
<syntaxhighlight lang="Java" style="background-color:lightgray; border:1px dashed gray;">
{{{code}}}
</syntaxhighlight>
instead of
<syntaxhighlight lang="Java" style="background-color:lightgray; border:1px dashed gray;">
public static void main() {...}
</syntaxhighlight>
Any idea?