Template:Eventmath note

Description

edit

This is a simple template for displaying notes styled with Eventmath colors. It was created initially for the Eventmath Midpoint report to reduce the need for redundant inline styles. It was later adapted for use in a tutorial on template use and development.

Note: Only custom header colors are supported. Custom colors for the text and the content background could be implemented in the same way as the custom header colors, but this is not currently needed.

Examples

edit

Default header

edit

Code:

{{Eventmath note|content=This is my technical note.}}

Output:

Technical note

This is my technical note.

Custom header

edit

Code:

{{Eventmath note|header=Terminology|content=''Wikitext'' is a term meaning...}}

Output:

Terminology

Wikitext is a term meaning...

No header

edit
{{Eventmath note|header=|content=''Wikitext'' is a term meaning...}}

Output:

Wikitext is a term meaning...

Custom background color in header

edit

Code: (Enter the color in hexadecimal format, without the #.)

{{Eventmath note|header-background=339966|content=This is my technical note.}}

Output:

Technical note

This is my technical note.