You are viewing the MafiaScum.net Wiki. To play the game, visit the forum.

Template:Background: Difference between revisions

From MafiaWiki
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
<includeonly>{{#ifeq: {{{Background Type|}}}|Block Color|<div style="background:{{{Color1}}}">{{{Text|}}}</div>|}}</includeonly><noinclude>
<includeonly>{{#ifeq: {{{Background Type|}}}|Block Color|<div style="background:{{{Color1|#FFFFFF}}}">{{{Text|}}}</div>|}} {{#ifeq:{{{Background Type|}}}|Linear-Gradient|<div style="{{Linear-gradient|{{{Gradient Type}}}|{{{Color1|#FFFFFF}}} {{#if:{{{Color1 Stop|}}}|{{{Color1 Stop}}}%|}}, {{{Color2|#FFFFFF}}}{{#if:{{{Color2 Stop|}}}|{{{Color2 Stop}}}%|}}}}">{{{Text|}}}</div>|}}</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 30: Line 30:
|Background Type=Block Color
|Background Type=Block Color
|Color1=#DD00DD}}
|Color1=#DD00DD}}
===Linear-Gradient==+
<pre>{{Background
|Background Type=Linear-Gradient
|Text=Example
|Color1=#DD00DD
|Color1 Stop=45
|Color 2=#FFDDBB
|Gradient Type=left}}</pre>
{{Background
|Background Type=Linear-Gradient
|Text=Example
|Color1=#DD00DD
|Color1 Stop=45
|Color 2=#FFDDBB
|Gradient Type=left}}
</noinclude>
</noinclude>

Revision as of 09:27, 8 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=
|Gradient Type=
|Color1 Stop=
|Color2 Stop=
}}


Parameters

Examples

Block Color

{{Background
|Text=Example
|Background Type=Block Color
|Color1=#DD00DD}}
Example

===Linear-Gradient==+

{{Background
|Background Type=Linear-Gradient
|Text=Example
|Color1=#DD00DD
|Color1 Stop=45
|Color 2=#FFDDBB
|Gradient Type=left}}
Example