Difference between revisions of "Template:Header Template"

(Creation (as this is needed))
 
m
Line 1: Line 1:
 
{| style="border:1px solid #E0E0E0;border-top-left-radius:10px;border-top-right-radius:10px;box-shadow:0 2px 3px rgba(34, 25, 25, 0.5);padding:7px 20px;position:relative;background-color:{{#if:{{{bgColor|}}}|{{{bgColor}}}|<nowiki>#F7F7F7</nowiki>}};border-bottom:1px solid {{#if:{{{borderColor|}}}|{{{borderColor}}}|<nowiki>#E0E0E0</nowiki>}};"
 
{| style="border:1px solid #E0E0E0;border-top-left-radius:10px;border-top-right-radius:10px;box-shadow:0 2px 3px rgba(34, 25, 25, 0.5);padding:7px 20px;position:relative;background-color:{{#if:{{{bgColor|}}}|{{{bgColor}}}|<nowiki>#F7F7F7</nowiki>}};border-bottom:1px solid {{#if:{{{borderColor|}}}|{{{borderColor}}}|<nowiki>#E0E0E0</nowiki>}};"
 
|-
 
|-
| style="padding-right:10px;" | {{{1|[[File:Wiki.png|50px]]}}}
+
| style="padding-right:10px;" | {{{1|[[File:Puzzle icon orange.svg|50px]]}}}
 
| {{{2|This is a "meta-template" used to standardize other templates. The first argument is usually an image, the second is the text. The <code>bgColor</code> param allows a background color to be set, and <code>borderColor</code>, a border color.}}}
 
| {{{2|This is a "meta-template" used to standardize other templates. The first argument is usually an image, the second is the text. The <code>bgColor</code> param allows a background color to be set, and <code>borderColor</code>, a border color.}}}
 
|}
 
|}

Revision as of 03:53, 30 June 2021

Puzzle icon orange.svg This is a "meta-template" used to standardize other templates. The first argument is usually an image, the second is the text. The bgColor param allows a background color to be set, and borderColor, a border color.


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=Puzzle icon orange.svg|message='''tester'''}}

Generates:

Puzzle icon orange.svg This is a "meta-template" used to standardize other templates. The first argument is usually an image, the second is the text. The bgColor param allows a background color to be set, and borderColor, a border color.


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.