Tag Info

New answers tagged


The problem is that code inside “extension tags” like <syntaxhighlight> is not parsed, which is why the {{{code}}} is not replaced with the value of the code parameter. What you need to use is to use {{#tag}} parser function: {{#tag:syntaxhighlight|{{{code}}}|lang=java|style=background-color:lightgray; border:1px dashed gray;}}


Yes, you can do that with <includeonly> tags, like so: (custom styles removed for clarity) <includeonly><syntaxhighlight lang="Java"></includeonly> {{{code}}} <includeonly></syntaxhighlight></includeonly> From mediawiki.org: The markup <includeonly>...</includeonly> means that the text between the ...

Top 50 recent answers are included