Difference between revisions of "Template:Chat example"

From Worms Knowledge Base

Jump to: navigation, search
(finalized + added description)
Line 1: Line 1:
 
<includeonly><!--
 
<includeonly><!--
-->{{#if: {{{1|}}} | <p><code>{{{1}}}</code> <small>displays:</small></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: {{{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: {{{3|}}} | <div style="font-family: Tahoma, Verdana, sans-serif; border: 1px solid #808080; background-color: #000040; color: {{{color|#FFFFFF}}};">{{{3}}}</div>}}
+
-->{{#if: {{{msg2|}}} | <p>{{{msg2}}}</p>}}<!--
{{{4|}}}</includeonly><noinclude>
+
-->{{#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}}}|{{{4}}}}}
+
{{Chat example|{{{1}}}|{{{2}}}|{{{3}}}}}
 
----
 
----
  
for [[List of chat commands]]</noinclude>
+
for [[List of chat commands]]
 +
 
 +
===Parameters===
 +
{{Chat example|{{{1}}}|{{{2}}}|{{{3}}}|msg1={{{msg1}}}|msg2={{{msg2}}}}}
 +
 
 +
*'''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.
 +
</noinclude>

Revision as of 16:16, 25 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