Difference between revisions of "Template:Chat example"

From Worms Knowledge Base

Jump to: navigation, search
m
Line 1: Line 1:
{{#if: {{{c|}}} | <code>{{{c}}}</code> {{{t1|}}}}}<!--
+
{{#if: {{{c|}}} | <p>'''Example:''' <code>{{{c}}}</code> {{{t1|}}}</p> }}<!--
-->{{#if: {{{f1|}}} |
+
 
{{Chat example/frontend
+
-->{{#if: {{{f1|}}} | {{Chat example/frontend
 
|1={{{f1}}}
 
|1={{{f1}}}
 
|2={{{f2|}}}
 
|2={{{f2|}}}
Line 8: Line 8:
 
|color={{{f1c|#FFFFFF}}}
 
|color={{{f1c|#FFFFFF}}}
 
|color2={{{f2c|#FFFFFF}}}
 
|color2={{{f2c|#FFFFFF}}}
}}
+
}} }}<!--
}}<!--
+
  
-->{{#if: {{{t2|}}} | <p>{{{t2}}}</p>}}<!--
+
-->{{#if: {{{t2|}}} | <p>{{{t2}}}</p> }}<!--
  
-->{{#if: {{{g1|}}} |
+
-->{{#if: {{{g1|}}} | {{Chat example/game
{{Chat example/game
+
 
|1={{{g1}}}
 
|1={{{g1}}}
 
|2={{{g2|}}}
 
|2={{{g2|}}}
 
|end1={{{g1e|}}}
 
|end1={{{g1e|}}}
 
|end2={{{g2e|}}}
 
|end2={{{g2e|}}}
|color={{{g1c|#FFFFFF}}}
+
|color={{{g1c|#FCFEFC}}}
|color2={{{g2c|#FFFFFF}}}
+
|color2={{{g2c|#FCFEFC}}}
}}
+
}} }}<noinclude>
}}<noinclude>
+
 
----
 
----
  
Line 42: Line 39:
 
}}
 
}}
  
*'''c''': code that you type.
+
*'''c''': code that you type. (If this parameter is left empty, the word 'Example:' and {{{t1}}} will be hidden.)
 
*'''f1''', '''f2''', '''f1e''', and '''f2e''': what you get in the chat box in the frontend. (The box will be hidden if the parameters are empty.)
 
*'''f1''', '''f2''', '''f1e''', and '''f2e''': what you get in the chat box in the frontend. (The box will be hidden if the parameters are empty.)
 
*'''g1''', '''g2''', '''g1e''', and '''g2e''': what you get in the in-game chat box. (The box will be hidden if the parameters are empty.)
 
*'''g1''', '''g2''', '''g1e''', and '''g2e''': what you get in the in-game chat box. (The box will be hidden if the parameters are empty.)

Revision as of 15:06, 29 July 2010


For List of chat commands.

Parameters

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

{{{f1}}}({{{f1e}}})
{{{f2}}}({{{f2e}}})

{{{t2}}}

{{{g1}}}
({{{g1e}}})
{{{g2}}}
({{{g2e}}})
  • c: code that you type. (If this parameter is left empty, the word 'Example:' and {{{t1}}} will be hidden.)
  • f1, f2, f1e, and f2e: what you get in the chat box in the frontend. (The box will be hidden if the parameters are empty.)
  • g1, g2, g1e, and g2e: what you get in the in-game chat box. (The box will be hidden if the parameters are empty.)
  • t1: text between the code ({{{c}}}) and the first chat box.
  • t2: text between the two chat boxes.
  • f1c, f2c, g1c, and g2c: text color of the corresponding fields (f1, f2, g1, or g2).
Personal tools