Difference between revisions of "Template:Chat example"
From Worms Knowledge Base
Explorer09 (Talk | contribs) m (margin) |
Explorer09 (Talk | contribs) (new version - more complex now) |
||
Line 1: | Line 1: | ||
− | + | {{#if: {{{c|}}} | <code>{{{c}}}</code> {{{t1|}}}}}<!-- | |
− | + | -->{{#if: {{{f1|}}} | | |
− | -->{{#if: {{{2|}}} | | + | {{Chat example/frontend |
− | -->{{#if: {{{ | + | |1={{{f1}}} |
− | -->{{#if: {{{ | + | |2={{{f2|}}} |
− | + | |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]]. | |
===Parameters=== | ===Parameters=== | ||
− | {{Chat example|{{{ | + | {{Chat example |
+ | |c={{{c}}} | ||
+ | |f1={{{f1}}} | ||
+ | |f2={{{f2}}} | ||
+ | |f1e={{{f1e}}} | ||
+ | |f2e={{{f2e}}} | ||
+ | |g1={{{g1}}} | ||
+ | |g2={{{g2}}} | ||
+ | |g1e={{{g1e}}} | ||
+ | |g2e={{{g2e}}} | ||
+ | |t1={{{t1}}} | ||
+ | |t2={{{t2}}} | ||
+ | }} | ||
− | *''' | + | *'''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 (<code>{{{c}}}</code>) 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). |
− | + | ||
</noinclude> | </noinclude> |
Revision as of 13:37, 27 July 2010
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).