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

Revision as of 09:12, 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:Linear-Gradient |Linear-Gradient |



Parameters

Examples

Template loop detected: Template:Background Example

Example