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
No edit summary
Line 1: Line 1:
<includeonly>
<includeonly>
{{#ifeq:{{{Background Type|}}}
{{#ifeq:{{{Background Type|}}}
|Block Color
|Block Color|{{#if:{{{Color1|}}}{!}<div style="background:{{{Color1}}}">{!}<div style="background:#FFFFFF">}}|}}
|{{#if:{{{Color1|}}}{!}<div style="background:{{{Color1}}}">{!}<div style="background:#FFFFFF">}}
|}}
{{#ifeq:{{{Background Type|}}}
{{#ifeq:{{{Background Type|}}}
|Linear-Gradient
|{{#ifeq:{{{Color1|}}}{{{Color2|}}}{!}{{{Color1|}}}{{{Color2|}}}{!}
{{Linear-gradient{!}{{{Gradient Type}}}{!}{{{Color1|#FFF}}}{{#if:{{{Color1 Stop{!}}}}{!} {{{Color1 Stop}}}%{!}}}, {{{Color2|#FFF}}}{{#if:{{{Color2 Stop{!}}}}{!} {{{Color2 Stop}}}%{!}}}}}|}}


</includeonly><noinclude>
</includeonly><noinclude>
Line 29: Line 24:
==Examples==
==Examples==
{{Background
{{Background
|Background Type=Linear-Gradient
|Background Type=Block Color
|Color1=#DD00DD
|Color1=#DD00DD}}
|Color2=#DDFFAA
|Gradient Type=top
|Color1 Stop=10}}
Example
Example
</div>
</div>

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


Parameters

Examples

{{#ifeq:Block Color



Parameters

Examples

Template loop detected: Template:Background Example

Example