From Test-Scratch-Wiki

m (Fixed image.)
 
Line 1: Line 1:
 +
<noinclude>{{:Template:Header Template/translate}}</noinclude>
 
{| 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>}};"
 
|-
 
|-

Latest revision as of 09:04, 4 May 2020

Translate: - English (no prefix) - Türkçe 
Scratch-wiki-watch-logo.png 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.

[edit] [history] [purge] Documentation Template documentation

This documentation is transcluded from Template:Header Template/doc.

Usage

This template is to standardize the templates on the Scratch Wiki. 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.

Syntax

This template has four parameters, which are all optional (default may not suit the use of the template, though):

positional parameter number 1

The file image for the template. {{Header Template|[[File:File too big.png|100px]]}} produces

File too big.png 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.

positional parameter number 2

The text on the template. {{Header Template|[[File:File too big.png|100px]]|tester}} produces

File too big.png tester

bgColor

The color of the background. {{Header Template|bgColor=blue|[[File:File too big.png|100px]]|tester}} produces

File too big.png tester

borderColor

The color of the border. {{Header Template|bgColor=blue|borderColor=yellow|[[File:File too big.png|100px]]|tester}} produces

File too big.png tester