When a template parameter has been repeated, e.g.
{{ttt | title=XYZ | url=http://example.org | title=ABC}}
a message is shown in source text preview
- Warning: page is calling Template:ttt with more than one value for the "title" parameter. Only the last value provided will be used.
That message should be characterised by class="error".
- Currently red color is inherited from .previewnote context.
Rationale:
- Gadgets might detect errors somewhere in the preview and issue a warning next to [save] button, as remindErrorMessages already does.
BTW:
- Is #invoke parameter list inspected, too? Same warning recommended.