Difference between revisions of "Template:Chat example"

From Worms Knowledge Base

Jump to: navigation, search
(finalized + added description)
m
Line 1: Line 1:
 
<includeonly><!--
 
<includeonly><!--
-->{{#if: {{{1|}}} | <p><code>{{{1}}}</code> {{{msg1|displays:}}}</p>}}<!--
+
-->{{#if: {{{1|}}} | <code>{{{1}}}</code> {{{msg1|displays:}}}}}<!--
 
-->{{#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: {{{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: {{{msg2|}}} | <p>{{{msg2}}}</p>}}<!--

Revision as of 10:06, 26 July 2010



for List of chat commands

Parameters

  • 1: code that you type.
  • 2: what you get in the in-game chat box. (The box will be hidden if the parameter is empty.)
  • 3: what you get in the chat box in the frontend. (The box will be hidden if the parameter is empty.)
  • msg1: text between {{{1}}} and {{{2}}}, defaults to "displays:" .
  • msg2: text between {{{2}}} and {{{3}}}.
  • color: text color of {{{2}}}.
  • color2: text color of {{{3}}}, if it was different from the parameter above.
Personal tools