Difference between revisions of "Template:Chat example"

From Worms Knowledge Base

Jump to: navigation, search
(extended to 4 lines per box)
('Colour references' section)
Line 1: Line 1:
{{#if: {{{c|}}} | <p>'''Example:''' <code>{{{c}}}</code> {{{t1|}}}</p> }}<!--
+
<onlyinclude><includeonly>{{#if: {{{c|}}} | <p>'''Example:''' <code>{{{c}}}</code> {{{t1|}}}</p> }}<!--
  
 
-->{{#if: {{{f1|}}} | {{Chat example/frontend
 
-->{{#if: {{{f1|}}} | {{Chat example/frontend
Line 31: Line 31:
 
|color3={{{g3c|{{{g1c|#FCFEFC}}}}}}
 
|color3={{{g3c|{{{g1c|#FCFEFC}}}}}}
 
|color4={{{g4c|{{{g1c|#FCFEFC}}}}}}
 
|color4={{{g4c|{{{g1c|#FCFEFC}}}}}}
}} }}<noinclude>
+
}} }}</includeonly></onlyinclude>
----
+
  
For [[List of chat commands]].
+
This template is for [[List of chat commands]], but can be used in other places as well.
  
===Parameters===
+
==Parameters==
 
{{Chat example
 
{{Chat example
 
|c={{{c}}}
 
|c={{{c}}}
Line 65: Line 64:
 
*'''t2''': text between the two chat boxes.
 
*'''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>).
 
*'''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>).
</noinclude>
+
 
 +
==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.
 +
 
 +
{| border="1"
 +
|+ Worms Armageddon - original colour scheme
 +
|-
 +
! Item !! Colour in Frontend !! Colour in Game
 +
|-
 +
| Team red || {{bg-grad/colour|FF7F7F}} || {{bg-grad/colour|FC8080}}
 +
|-
 +
| Team blue || {{bg-grad/colour|9D9FFF}} || {{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}} || {{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
 +
|-
 +
! 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}}
 +
|}
 +
 
 +
These values are gathered from screenshots.
 +
 
 +
==Notes==
 +
<references/>

Revision as of 13:40, 4 August 2010


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.

Worms Armageddon - original colour scheme
Item Colour in Frontend Colour in Game
Team red #FF7F7F #FC8080
Team blue #9D9FFF #9C9DFE
Team green #80FF80 #7EFE7E
Team yellow #FFFF80 #FCFE80
Team magenta #FF82FF #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[1]
Team green #00D000 #00D000
Team yellow #FFFF40 #FCFE40
Team magenta #E800E8 #E600E8
Team cyan #50FFFF #4EFFFC
White #FFFFFF #FCFEFC
Gray #808080 #9C9D9C

These values are gathered from screenshots.

Notes

  1. #0095FC applies to solid fills and borders only. The text colour used in game for blue is #4296F8, rather than #0095FC.
Personal tools