You are viewing the MafiaScum.net Wiki. To play the game, visit the forum.
Template:Background: Difference between revisions
No edit summary |
No edit summary |
||
Line 5: | Line 5: | ||
</includeonly><noinclude> | </includeonly><noinclude> | ||
This template is used to create a background. There are 3 types of backgrounds currently useable; Block Colour, Linear-Gradient and Radial-Gradient. | This template is used to create a background. There are 3 types of backgrounds currently useable; Block Colour, Linear-Gradient and Radial-Gradient. | ||
Line 38: | Line 37: | ||
*'''Linear-Gradient''':2 | *'''Linear-Gradient''':2 | ||
*'''Radial-Gradient''':2-6 | *'''Radial-Gradient''':2-6 | ||
==={{{Background Type}}}=== | ==={{{Background Type}}}=== | ||
Line 44: | Line 44: | ||
*'''Linear-Gradient''' | *'''Linear-Gradient''' | ||
*'''Radial-Gradient''' | *'''Radial-Gradient''' | ||
==={{{Text}}}=== | ==={{{Text}}}=== | ||
Add the text you want to add a background to here. | Add the text you want to add a background to here. | ||
==={{{Gradient Type}}}=== | ==={{{Gradient Type}}}=== | ||
Add the Gradient Type here. For linear-gradients you can choose from "top, bottom, left, right" or a mix of two and for radial gradients choose out of "circle or ellipse". | Add the Gradient Type here. For linear-gradients you can choose from "top, bottom, left, right" or a mix of two and for radial gradients choose out of "circle or ellipse". | ||
==={{{Gradient Position}}}=== | |||
Use only with the radial-gradient, specify a CSS coordinate here. | |||
==={{{Color# Stop}}}=== | |||
Specify a number 1-100 here to change where gradient colors stop. This isn't necessary however. | |||
Revision as of 20:15, 9 November 2014
This template is used to create a background. There are 3 types of backgrounds currently useable; Block Colour, Linear-Gradient and Radial-Gradient.
Syntax
{{Background |Background Type= |Text= |Color1= |Color2= |Color3= |Color4= |Color5= |Color6= |Gradient Type= |Gradient Position= |Color1 Stop= |Color2 Stop= |Color3 Stop= |Color4 Stop= |Color5 Stop= |Color6 Stop= }}
Parameters
{{{Color#}}}
Specify a color here using the "#" hex number coding system. Depending on the background type you choose you need to specify a minimum amount of colors.
The amount of colors needed are:
- Block: 1
- Linear-Gradient:2
- Radial-Gradient:2-6
{{{Background Type}}}
Specify the type of background here out of one of these three:
- Block
- Linear-Gradient
- Radial-Gradient
{{{Text}}}
Add the text you want to add a background to here.
{{{Gradient Type}}}
Add the Gradient Type here. For linear-gradients you can choose from "top, bottom, left, right" or a mix of two and for radial gradients choose out of "circle or ellipse".
{{{Gradient Position}}}
Use only with the radial-gradient, specify a CSS coordinate here.
{{{Color# Stop}}}
Specify a number 1-100 here to change where gradient colors stop. This isn't necessary however.
Examples
Block Color
{{Background |Text=Example |Background Type=Block Color |Color1=#DD00DD}}
Linear-Gradient
{{Background |Background Type=Linear-Gradient |Text=Example |Color1=#1A70DD |Color1 Stop=15 |Color2=#FFDDBB |Gradient Type=left}}
Radial-Gradient
{{Background |Background Type=Radial-Gradient |Gradient Position=center center |Gradient Type=circle |Color1=#FF0000 |Color2=#00FF00}}