Difference between revisions of "Template:Chat example"

From Worms Knowledge Base

Jump to: navigation, search
m (margin)
(new version - more complex now)
Line 1: Line 1:
<includeonly><!--
+
{{#if: {{{c|}}} | <code>{{{c}}}</code> {{{t1|}}}}}<!--
-->{{#if: {{{1|}}} | <code>{{{1}}}</code> {{{msg1|displays:}}}}}<!--
+
-->{{#if: {{{f1|}}} |
-->{{#if: {{{2|}}} | <div style="font-family: Tahoma, Verdana, sans-serif; font-weight: bold; margin: 0.25em; border: 1px solid #9C9D9C; background-color: #000000; color: {{{color|#FFFFFF}}};">{{{2}}}</div>}}<!--
+
{{Chat example/frontend
-->{{#if: {{{msg2|}}} | <p>{{{msg2}}}</p>}}<!--
+
|1={{{f1}}}
-->{{#if: {{{3|}}} | <div style="font-family: Tahoma, Verdana, sans-serif; margin: 0.25em; border: 1px solid #808080; background-color: #000040; color: {{{color2|{{{color|#FFFFFF}}}}}};">{{{3}}}</div>}}</includeonly><noinclude>
+
|2={{{f2|}}}
{{Chat example|{{{1}}}|{{{2}}}|{{{3}}}}}
+
|end1={{{f1e|}}}
 +
|end2={{{f2e|}}}
 +
|color={{{f1c|#FFFFFF}}}
 +
|color2={{{f2c|#FFFFFF}}}
 +
}}
 +
}}<!--
 +
 
 +
-->{{#if: {{{t2|}}} | <p>{{{t2}}}</p>}}<!--
 +
 
 +
-->{{#if: {{{g1|}}} |
 +
{{Chat example/game
 +
|1={{{g1}}}
 +
|2={{{g2|}}}
 +
|end1={{{g1e|}}}
 +
|end2={{{g2e|}}}
 +
|color={{{g1c|#FFFFFF}}}
 +
|color2={{{g2c|#FFFFFF}}}
 +
}}
 +
}}<noinclude>
 
----
 
----
  
for [[List of chat commands]]
+
For [[List of chat commands]].
  
 
===Parameters===
 
===Parameters===
{{Chat example|{{{1}}}|{{{2}}}|{{{3}}}|msg1={{{msg1}}}|msg2={{{msg2}}}}}
+
{{Chat example
 +
|c={{{c}}}
 +
|f1={{{f1}}}
 +
|f2={{{f2}}}
 +
|f1e={{{f1e}}}
 +
|f2e={{{f2e}}}
 +
|g1={{{g1}}}
 +
|g2={{{g2}}}
 +
|g1e={{{g1e}}}
 +
|g2e={{{g2e}}}
 +
|t1={{{t1}}}
 +
|t2={{{t2}}}
 +
}}
  
*'''1''': code that you type.
+
*'''c''': code that you type.
*'''2''': what you get in the in-game chat box. (The box will be hidden if the parameter is empty.)
+
*'''f1''', '''f2''', '''f1e''', and '''f2e''': what you get in the chat box in the frontend. (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.)
+
*'''g1''', '''g2''', '''g1e''', and '''g2e''': what you get in the in-game chat box. (The box will be hidden if the parameter is empty.)
*'''msg1''': text between {{{1}}} and {{{2}}}, defaults to "displays:" .
+
*'''t1''': text between the code (<code>{{{c}}}</code>) and the first chat box.
*'''msg2''': text between {{{2}}} and {{{3}}}.
+
*'''t2''': text between the two chat boxes.
*'''color''': text color of {{{2}}}.
+
*'''f1c''', '''f2c''', '''g1c''', and '''g2c''': text color of the corresponding fields (f1, f2, g1, or g2).
*'''color2''': text color of {{{3}}}, if it was different from the parameter above.
+
 
</noinclude>
 
</noinclude>

Revision as of 13:37, 27 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.
  • f1, f2, f1e, and f2e: what you get in the chat box in the frontend. (The box will be hidden if the parameter is empty.)
  • g1, g2, g1e, and g2e: what you get in the in-game chat box. (The box will be hidden if the parameter is 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