Template:Header Template/doc: Difference between revisions
Jump to navigation
Jump to search
m (1 revision imported) |
(→Usage) |
||
Line 8: | Line 8: | ||
This code: | This code: | ||
<pre> | <pre> | ||
{{Header Template|bgColor=cadetblue|image= | {{Header Template|bgColor=cadetblue|image=OOjs UI icon puzzle-ltr-warning.svg|message='''tester'''}} | ||
</pre> | </pre> | ||
Generates: | Generates: | ||
{{Header Template|bgColor=cadetblue|image= | {{Header Template|bgColor=cadetblue|image=OOjs UI icon puzzle-ltr-warning.svg|message='''tester'''}} | ||
== Explanation == | == Explanation == |
Latest revision as of 09:38, 10 March 2024
![]() | This is a documentation subpage for Template:Header Template. It contains usage information, categories and other content that is not part of the original Template page. |
[[Category:Template documentation pages{{#translation:}}]]
Purpose
This template is an attempt to reinvent the "message box template" and to standardize the information contained. This is to prevent templates that look different from one another. One can use this template to make new templates, or use it as a guide to how the new template should look.
Usage
This template has four optional parameters, though each should probably be used:
This code:
{{Header Template|bgColor=cadetblue|image=OOjs UI icon puzzle-ltr-warning.svg|message='''tester'''}}
Generates:
Explanation
The fields, in order, are:
:* The color of the background, :* The color of the bottom border, :* The file image for the template, :* The text on the template.
The template uses only color keywords to know what color to use. You can find them on this website.