Difference between revisions of "Template:Header Template/doc"

(Creation (as this is needed))
 
m (Updating)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{documentation}}
+
{{documentation subpage}}
 
== Purpose ==
 
== Purpose ==
This template is a 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.
+
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 ==
 
== Usage ==
This template has four parameters, which are all optional (Though you should probably use them):
+
This template has four optional parameters, though each should probably be used:
  
 
This code:
 
This code:
 
<pre>
 
<pre>
{{Header Template|bgColor=cadetblue|borderColor=black|[[File:Puzzle icon orange.svg|100px]]|'''tester'''}}
+
{{Header Template|bgColor=cadetblue|image=Puzzle icon orange.svg|message='''tester'''}}
 
</pre>
 
</pre>
  
 
Generates:
 
Generates:
  
{{Header Template|bgColor=cadetblue|borderColor=black|[[File:Puzzle icon orange.svg|100px]]|'''tester'''}}
+
{{Header Template|bgColor=cadetblue|image=Puzzle icon orange.svg|message='''tester'''}}
 
 
  
 
== Explanation ==
 
== Explanation ==
The fields in order are:
+
The fields, in order, are:
  :* The color of the background.
+
  :* The color of the background,
  :* The color of the bottom border.
+
  :* The color of the bottom border,
  :* The file image for the template
+
  :* The file image for the template,
 
  :* The text on the template.
 
  :* The text on the template.
  

Latest revision as of 09:37, 3 October 2023

Purpose[edit]

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[edit]

This template has four optional parameters, though each should probably be used:

This code:

{{Header Template|bgColor=cadetblue|image=Puzzle icon orange.svg|message='''tester'''}}

Generates:

Puzzle icon orange.svg
tester


Explanation[edit]

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.