Difference between revisions of "Template:Chat example/frontend"

From Worms Knowledge Base

Jump to: navigation, search
m
(allows chat box to be Worms-2-style)
Line 1: Line 1:
<div style="font-family: Tahoma, Verdana, sans-serif; margin: 0.25em; border: 1px solid #808080; background-color: #000040;"><!--
+
<div style="font-family: Tahoma, Verdana, sans-serif; margin: 0.25em; border: 1px solid #808080; background-color: {{#select:{{uc:{{{type|}}}}}|W2=#000000|W2-PRIVATE=#008080|#default=#000040}};"><!--
  
--><div style="color: {{{color|#FFFFFF}}};">{{{1}}}<!--
+
--><div style="color: {{{color|#FFFFFF}}}; {{{style1|}}}">{{{1}}}<!--
 
-->{{#if: {{{end1|}}} | <div style="float: right; margin-right: 0.25em; text-align: right; font-size: 80%;">''({{{end1}}})''</div>}}<!--
 
-->{{#if: {{{end1|}}} | <div style="float: right; margin-right: 0.25em; text-align: right; font-size: 80%;">''({{{end1}}})''</div>}}<!--
 
--></div><!--
 
--></div><!--
  
-->{{#if: {{{2|}}} | <div style="color: {{{color2|{{{color|#FFFFFF}}}}}};">{{{2}}}<!--
+
-->{{#if: {{{2|}}} | <div style="color: {{{color2|{{{color|#FFFFFF}}}}}}; {{{style2|}}}">{{{2}}}<!--
 
-->{{#if: {{{end2|}}} | <div style="float: right; margin-right: 0.25em; text-align: right; font-size: 80%;">''({{{end2}}})''</div>}}<!--
 
-->{{#if: {{{end2|}}} | <div style="float: right; margin-right: 0.25em; text-align: right; font-size: 80%;">''({{{end2}}})''</div>}}<!--
 
--></div>}}<!--
 
--></div>}}<!--
  
-->{{#if: {{{3|}}} | <div style="color: {{{color3|{{{color|#FFFFFF}}}}}};">{{{3}}}<!--
+
-->{{#if: {{{3|}}} | <div style="color: {{{color3|{{{color|#FFFFFF}}}}}}; {{{style3|}}}">{{{3}}}<!--
 
-->{{#if: {{{end3|}}} | <div style="float: right; margin-right: 0.25em; text-align: right; font-size: 80%;">''({{{end3}}})''</div>}}<!--
 
-->{{#if: {{{end3|}}} | <div style="float: right; margin-right: 0.25em; text-align: right; font-size: 80%;">''({{{end3}}})''</div>}}<!--
 
--></div>}}<!--
 
--></div>}}<!--
  
-->{{#if: {{{4|}}} | <div style="color: {{{color4|{{{color|#FFFFFF}}}}}};">{{{4}}}<!--
+
-->{{#if: {{{4|}}} | <div style="color: {{{color4|{{{color|#FFFFFF}}}}}}; {{{style4|}}}">{{{4}}}<!--
 
-->{{#if: {{{end4|}}} | <div style="float: right; margin-right: 0.25em; text-align: right; font-size: 80%;">''({{{end4}}})''</div>}}<!--
 
-->{{#if: {{{end4|}}} | <div style="float: right; margin-right: 0.25em; text-align: right; font-size: 80%;">''({{{end4}}})''</div>}}<!--
 
--></div>}}<!--
 
--></div>}}<!--
Line 21: Line 21:
 
===Parameters===
 
===Parameters===
 
{{Chat example/frontend|{{{1}}}|{{{2}}}|{{{3}}}|{{{4}}}|end1={{{end1}}}|end2={{{end2}}}|end3={{{end3}}}|end4={{{end4}}}}}
 
{{Chat example/frontend|{{{1}}}|{{{2}}}|{{{3}}}|{{{4}}}|end1={{{end1}}}|end2={{{end2}}}|end3={{{end3}}}|end4={{{end4}}}}}
*'''color''': text color of {{{1}}}.
+
*'''color''': text color of {{{1}}}, by default it's white.
 
*'''color2''', '''color3''', and '''color4''': text color of {{{2}}}, {{{3}}}, and {{{4}}}. By default they are the same as {{{color1}}} .
 
*'''color2''', '''color3''', and '''color4''': text color of {{{2}}}, {{{3}}}, and {{{4}}}. By default they are the same as {{{color1}}} .
 +
*'''style1''', '''style2''', '''style3''', and '''style4''': other CSS styles that can be applied to {{{1}}}, {{{2}}}, {{{3}}} or {{{4}}}.
 +
 +
===Chat box styles===
 +
The {{{type}}} parameter specifys how the chat box looks.
 +
;(nothing)
 +
:{{Chat example/frontend|W:A and WWP chat box (both games have the same looking box)}}
 +
:background-color: #000040;
 +
;type=w2
 +
:{{Chat example/frontend|Worms 2 (Everyone) chat box|type=W2}}
 +
:background-color: #000000;
 +
;type=w2-private
 +
:{{Chat example/frontend|Worms 2 (Private) chat box|type=W2-private}}
 +
:background-color: #008080;
 
</noinclude>
 
</noinclude>

Revision as of 14:22, 3 August 2010

{{{1}}}

Parameters

{{{1}}}({{{end1}}})
{{{2}}}({{{end2}}})
{{{3}}}({{{end3}}})
{{{4}}}({{{end4}}})
  • color: text color of {{{1}}}, by default it's white.
  • color2, color3, and color4: text color of {{{2}}}, {{{3}}}, and {{{4}}}. By default they are the same as {{{color1}}} .
  • style1, style2, style3, and style4: other CSS styles that can be applied to {{{1}}}, {{{2}}}, {{{3}}} or {{{4}}}.

Chat box styles

The {{{type}}} parameter specifys how the chat box looks.

(nothing)
W:A and WWP chat box (both games have the same looking box)
background-color: #000040;
type=w2
Worms 2 (Everyone) chat box
background-color: #000000;
type=w2-private
Worms 2 (Private) chat box
background-color: #008080;
Personal tools