Difference between revisions of "Template:Chat example"

From Worms Knowledge Base

Jump to: navigation, search
(finalized + added description)
(Colour references: +color info from Worms2)
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><!--
+
<onlyinclude><includeonly>{{#if: {{{c|}}} | <p>'''Example:''' <code>{{{c}}}</code> {{{t1|}}}</p> }}<!--
-->{{#if: {{{1|}}} | <p><code>{{{1}}}</code> {{{msg1|displays:}}}</p>}}<!--
+
-->{{#if: {{{2|}}} | <div style="font-family: Tahoma, Verdana, sans-serif; font-weight: bold; border: 1px solid #9C9D9C; background-color: #000000; color: {{{color|#FFFFFF}}};">{{{2}}}</div>}}<!--
+
-->{{#if: {{{msg2|}}} | <p>{{{msg2}}}</p>}}<!--
+
-->{{#if: {{{3|}}} | <div style="font-family: Tahoma, Verdana, sans-serif; border: 1px solid #808080; background-color: #000040; color: {{{color2|{{{color|#FFFFFF}}}}}};">{{{3}}}</div>}}</includeonly><noinclude>
+
{{Chat example|{{{1}}}|{{{2}}}|{{{3}}}}}
+
----
+
  
for [[List of chat commands]]
+
-->{{#if: {{{f1|}}} | {{Chat example/frontend
 +
|1={{{f1}}}
 +
|2={{{f2|}}}
 +
|3={{{f3|}}}
 +
|4={{{f4|}}}
 +
|end1={{{f1e|}}}
 +
|end2={{{f2e|}}}
 +
|end3={{{f3e|}}}
 +
|end4={{{f4e|}}}
 +
|color={{{f1c|#FFFFFF}}}
 +
|color2={{{f2c|{{{f1c|#FFFFFF}}}}}}
 +
|color3={{{f3c|{{{f1c|#FFFFFF}}}}}}
 +
|color4={{{f4c|{{{f1c|#FFFFFF}}}}}}
 +
}} }}<!--
  
===Parameters===
+
-->{{#if: {{{t2|}}} | <p>{{{t2}}}</p> }}<!--
{{Chat example|{{{1}}}|{{{2}}}|{{{3}}}|msg1={{{msg1}}}|msg2={{{msg2}}}}}
+
  
*'''1''': code that you type.
+
-->{{#if: {{{g1|}}} | {{Chat example/game
*'''2''': what you get in the in-game chat box. (The box will be hidden if the parameter is empty.)
+
|1={{{g1}}}
*'''3''': what you get in the chat box in the frontend. (The box will be hidden if the parameter is empty.)
+
|2={{{g2|}}}
*'''msg1''': text between {{{1}}} and {{{2}}}, defaults to "displays:" .
+
|3={{{g3|}}}
*'''msg2''': text between {{{2}}} and {{{3}}}.
+
|4={{{g4|}}}
*'''color''': text color of {{{2}}}.
+
|end1={{{g1e|}}}
*'''color2''': text color of {{{3}}}, if it was different from the parameter above.
+
|end2={{{g2e|}}}
</noinclude>
+
|end3={{{g3e|}}}
 +
|end4={{{g4e|}}}
 +
|color={{{g1c|#FCFEFC}}}
 +
|color2={{{g2c|{{{g1c|#FCFEFC}}}}}}
 +
|color3={{{g3c|{{{g1c|#FCFEFC}}}}}}
 +
|color4={{{g4c|{{{g1c|#FCFEFC}}}}}}
 +
}} }}</includeonly></onlyinclude>
 +
 
 +
This template is for [[List of chat commands]], but can be used in other places as well.
 +
 
 +
==Parameters==
 +
{{Chat example
 +
|c={{{c}}}
 +
|f1={{{f1}}}
 +
|f2={{{f2}}}
 +
|f3={{{f3}}}
 +
|f4={{{f4}}}
 +
|f1e={{{f1e}}}
 +
|f2e={{{f2e}}}
 +
|f3e={{{f3e}}}
 +
|f4e={{{f4e}}}
 +
|g1={{{g1}}}
 +
|g2={{{g2}}}
 +
|g3={{{g3}}}
 +
|g4={{{g4}}}
 +
|g1e={{{g1e}}}
 +
|g2e={{{g2e}}}
 +
|g3e={{{g3e}}}
 +
|g4e={{{g4e}}}
 +
|t1={{{t1}}}
 +
|t2={{{t2}}}
 +
}}
 +
 
 +
*'''c''': code that you type. (If this parameter is left empty, the word 'Example:' and {{{t1}}} will be hidden.)
 +
*'''f<sub>n</sub>''' and '''f<sub>n</sub>e''': (f1, f1e, f2, f2e, etc.) what you get in the chat box in the frontend. (The box will be hidden if {{{f1}}} is empty.)
 +
*'''g<sub>n</sub>''' and '''g<sub>n</sub>e''': (g1, g1e, g2, g2e, etc.) what you get in the in-game chat box. (The box will be hidden if {{{g1}}} is empty.)
 +
*'''t1''': text between the code (<code>{{{c}}}</code>) and the first chat box.
 +
*'''t2''': text between the two chat boxes.
 +
*'''f<sub>n</sub>c''' and '''g<sub>n</sub>c''': text color of the corresponding fields (f<sub>n</sub> or g<sub>n</sub>).
 +
 
 +
==Sub-templates==
 +
*[[Template:Chat example/frontend]] - for the chat box in the frontend.
 +
*[[Template:Chat example/game]] - for the chat box in game.
 +
 
 +
==Colour references==
 +
Due to palettising, some colours in the frontend are slightly different from those in game. Here is the comparison.
 +
 
 +
[[File:Colour_scheme_comparison.svg|thumb|right]]
 +
{| border="1"
 +
|+ Worms Armageddon - original colour scheme
 +
|- style="text-align: center;"
 +
! Item !! Colour in Frontend !! Colour in Game
 +
|-
 +
| Team red || {{bg-grad/colour|FF7F7F}}<ref name="lobby">These colour apply to multiplayer lobby screens (offline or online) only. In option screens, they are: {{bg-grad/colour|FF8080}}, {{bg-grad/colour|9E9EFF}}, and {{bg-grad/colour|FF80FF}} respectively.</ref> || {{bg-grad/colour|FC8080}}
 +
|-
 +
| Team blue || {{bg-grad/colour|9D9FFF}}<ref name="lobby"/> || {{bg-grad/colour|9C9DFE}}
 +
|-
 +
| Team green || {{bg-grad/colour|80FF80}} || {{bg-grad/colour|7EFE7E}}
 +
|-
 +
| Team yellow || {{bg-grad/colour|FFFF80}} || {{bg-grad/colour|FCFE80}}
 +
|-
 +
| Team magenta || {{bg-grad/colour|FF82FF}}<ref name="lobby"/> || {{bg-grad/colour|FC80FC}}
 +
|-
 +
| Team cyan || {{bg-grad/colour|80FFFF}} || {{bg-grad/colour|80FEFC}}
 +
|-
 +
| White || {{bg-grad/colour|FFFFFF}} || {{bg-grad/colour|FCFEFC}}
 +
|-
 +
| Gray || {{bg-grad/colour|808080}} || {{bg-grad/colour|9C9D9C}}
 +
|}
 +
 
 +
{| border="1"
 +
|+ Worms Armageddon - alternate colour scheme
 +
|- style="text-align: center;"
 +
! Item !! Colour in Frontend !! Colour in Game
 +
|-
 +
| Team red || {{bg-grad/colour|FF8080}} || {{bg-grad/colour|FE7F7E}}
 +
|-
 +
| Team blue || {{bg-grad/colour|0096FF}} || {{bg-grad/colour|0095FC}}<ref>{{bg-grad/colour|0095FC}} applies to solid fills and borders only. The text colour used in game for blue is {{bg-grad/colour|4296F8}}, rather than #0095FC.</ref>
 +
|-
 +
| Team green || {{bg-grad/colour|00D000}} || {{bg-grad/colour|00D000}}
 +
|-
 +
| Team yellow || {{bg-grad/colour|FFFF40}} || {{bg-grad/colour|FCFE40}}
 +
|-
 +
| Team magenta || {{bg-grad/colour|E800E8}} || {{bg-grad/colour|E600E8}}
 +
|-
 +
| Team cyan || {{bg-grad/colour|50FFFF}} || {{bg-grad/colour|4EFFFC}}
 +
|-
 +
| White || {{bg-grad/colour|FFFFFF}} || {{bg-grad/colour|FCFEFC}}
 +
|-
 +
| Gray || {{bg-grad/colour|808080}} || {{bg-grad/colour|9C9D9C}}
 +
|}
 +
{| border="1"
 +
|+ Worms World Party
 +
|- style="text-align: center;"
 +
! rowspan="2" | Item
 +
! rowspan="2" | Colour in Frontend
 +
! colspan="2" | Colour in Game
 +
|-
 +
! solid fills and borders !! text and sprites
 +
|-
 +
| Team red || {{bg-grad/colour|FF7F7F}} || {{bg-grad/colour|FF8080}} || {{bg-grad/colour|F87E7E}}
 +
|-
 +
| Team blue || {{bg-grad/colour|67A8E7}} || {{bg-grad/colour|8080FF}} || {{bg-grad/colour|A2A0F8}}
 +
|-
 +
| Team green || {{bg-grad/colour|2CB139}}<ref>This colour is the average value.<!--I got this by gathering the dithering pattern and then calculating the mean value of this pattern.--> The original colour block (&lt;WWP&gt;\graphics\HostJoinScreen\Allies\Ally3_btn.bmp) is a dithered image.</ref> || {{bg-grad/colour|80FF80}} || {{bg-grad/colour|80FE7E}}
 +
|-
 +
| Team yellow || {{bg-grad/colour|F7EC69}} || {{bg-grad/colour|FFFF80}} || {{bg-grad/colour|FAFE7C}}
 +
|-
 +
| Team magenta || {{bg-grad/colour|C155A4}} || {{bg-grad/colour|FF80FF}} || {{bg-grad/colour|FA7FFA}}
 +
|-
 +
| Team cyan || {{bg-grad/colour|00FFFF}} || {{bg-grad/colour|80FFFF}} || {{bg-grad/colour|80FAFA}}
 +
|-
 +
| White || {{bg-grad/colour|FFFFFF}} || {{bg-grad/colour|FFFFFF}} || {{bg-grad/colour|FCFEFC}}
 +
|-
 +
| Gray || {{bg-grad/colour|808080}} || {{bg-grad/colour|9D9D9D}} || {{bg-grad/colour|A0A3A2}}
 +
|}
 +
{| border="1"
 +
|+ Worms 2
 +
|- style="text-align: center;"
 +
! rowspan="2" | Item
 +
! colspan="2" | Colour in Game
 +
|-
 +
! solid fills and borders !! text and sprites
 +
|-
 +
| Team red || {{bg-grad/colour|FF8080}} || {{bg-grad/colour|F67D7E}}
 +
|-
 +
| Team blue || {{bg-grad/colour|8080FF}} || {{bg-grad/colour|9E9CF8}}
 +
|-
 +
| Team green || {{bg-grad/colour|80FF80}} || {{bg-grad/colour|88FE76}}
 +
|-
 +
| Team yellow || {{bg-grad/colour|FFFF80}} || {{bg-grad/colour|FAFE7C}}
 +
|-
 +
| Team magenta || {{bg-grad/colour|FF80FF}} || {{bg-grad/colour|FC81FC}}
 +
|-
 +
| Team cyan || {{bg-grad/colour|80FFFF}} || {{bg-grad/colour|80FEFC}}
 +
|-
 +
| White || {{bg-grad/colour|FFFFFF}} || {{bg-grad/colour|FCFEFC}}
 +
|-
 +
| Gray || {{bg-grad/colour|9D9D9D}} || {{bg-grad/colour|A6A3A2}}
 +
|}
 +
 
 +
These values are mostly gathered from screenshots of W2 (v1.05), W:A (v3.6.29.0) and WWP (v1.01).
 +
 
 +
==Notes==
 +
<references/>

Latest revision as of 02:16, 18 June 2011


This template is for List of chat commands, but can be used in other places as well.

Parameters

Example: {{{c}}} {{{t1}}}

{{{f1}}}({{{f1e}}})
{{{f2}}}({{{f2e}}})
{{{f3}}}({{{f3e}}})
{{{f4}}}({{{f4e}}})

{{{t2}}}

{{{g1}}}
({{{g1e}}})
{{{g2}}}
({{{g2e}}})
{{{g3}}}
({{{g3e}}})
{{{g4}}}
({{{g4e}}})
  • c: code that you type. (If this parameter is left empty, the word 'Example:' and {{{t1}}} will be hidden.)
  • fn and fne: (f1, f1e, f2, f2e, etc.) what you get in the chat box in the frontend. (The box will be hidden if {{{f1}}} is empty.)
  • gn and gne: (g1, g1e, g2, g2e, etc.) what you get in the in-game chat box. (The box will be hidden if {{{g1}}} is empty.)
  • t1: text between the code ({{{c}}}) and the first chat box.
  • t2: text between the two chat boxes.
  • fnc and gnc: text color of the corresponding fields (fn or gn).

Sub-templates

Colour references

Due to palettising, some colours in the frontend are slightly different from those in game. Here is the comparison.

Colour scheme comparison.svg
Worms Armageddon - original colour scheme
Item Colour in Frontend Colour in Game
Team red #FF7F7F[1] #FC8080
Team blue #9D9FFF[1] #9C9DFE
Team green #80FF80 #7EFE7E
Team yellow #FFFF80 #FCFE80
Team magenta #FF82FF[1] #FC80FC
Team cyan #80FFFF #80FEFC
White #FFFFFF #FCFEFC
Gray #808080 #9C9D9C
Worms Armageddon - alternate colour scheme
Item Colour in Frontend Colour in Game
Team red #FF8080 #FE7F7E
Team blue #0096FF #0095FC[2]
Team green #00D000 #00D000
Team yellow #FFFF40 #FCFE40
Team magenta #E800E8 #E600E8
Team cyan #50FFFF #4EFFFC
White #FFFFFF #FCFEFC
Gray #808080 #9C9D9C
Worms World Party
Item Colour in Frontend Colour in Game
solid fills and borders text and sprites
Team red #FF7F7F #FF8080 #F87E7E
Team blue #67A8E7 #8080FF #A2A0F8
Team green #2CB139[3] #80FF80 #80FE7E
Team yellow #F7EC69 #FFFF80 #FAFE7C
Team magenta #C155A4 #FF80FF #FA7FFA
Team cyan #00FFFF #80FFFF #80FAFA
White #FFFFFF #FFFFFF #FCFEFC
Gray #808080 #9D9D9D #A0A3A2
Worms 2
Item Colour in Game
solid fills and borders text and sprites
Team red #FF8080 #F67D7E
Team blue #8080FF #9E9CF8
Team green #80FF80 #88FE76
Team yellow #FFFF80 #FAFE7C
Team magenta #FF80FF #FC81FC
Team cyan #80FFFF #80FEFC
White #FFFFFF #FCFEFC
Gray #9D9D9D #A6A3A2

These values are mostly gathered from screenshots of W2 (v1.05), W:A (v3.6.29.0) and WWP (v1.01).

Notes

  1. 1.0 1.1 1.2 These colour apply to multiplayer lobby screens (offline or online) only. In option screens, they are: #FF8080, #9E9EFF, and #FF80FF respectively.
  2. #0095FC applies to solid fills and borders only. The text colour used in game for blue is #4296F8, rather than #0095FC.
  3. This colour is the average value. The original colour block (<WWP>\graphics\HostJoinScreen\Allies\Ally3_btn.bmp) is a dithered image.
Personal tools