More actions
Added max-width so message is still readable on widescreens |
Made template collapsible (had to replace DIV with TABLE to make the collapsing JS work correctly) |
||
| Line 1: | Line 1: | ||
{| style="margin: 1em; max-width: 600px;" class="wikitable {{#ifeq:{{{collapsed|no}}}|yes|collapsible collapsed|}}" | |||
! style="font-size:0.9em; background-color:#000000; padding: 0.25em 0.5em;font-weight:normal" | {{{1|Message:}}} | |||
|- | |||
| style="background-color:#222222; padding: 1em;" | {{{2|Text}}} | |||
<noinclude> | |}<noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
[[Category:Template]] | [[Category:Template]] | ||
</noinclude> | </noinclude> | ||
Revision as of 12:25, 10 November 2014
| Message: |
|---|
| Text |
Template documentation (for the above template, sometimes hidden or invisible)
- Description
- This template is used to do include various messages, in a collapsible box in text. Escalation messages, pop-up messages from Combat complexes, messages in local chat channel etc.
- Syntax
- {{MessageBox|<head>|<text>|<collapsed= yes>}}
- Parameters
-
- head
- Text in the header of the message box
- text
- Text in the body of the box
- collapsed=
- Controls whether the box is initially collapsed. use
collapsed= yesto have the box initially collapsed, otherwise omit it.
- Sample
{{MessageBox|In local chat channel:|Serpentis Mug: Blah.}}- gives...
| In local chat channel: |
|---|
| Serpentis Mug: Blah. |
{{MessageBox|In local chat channel:|Serpentis Lion: And who are you, the proud lord said, that I must bow so low?|collapsed=yes}}- gives...
| In local chat channel: |
|---|
| Serpentis Lion: And who are you, the proud lord said, that I must bow so low? |
- Template data
- This is the TemplateData documentation for this template used by VisualEditor and other tools.
Box (collapsible) to show in-game messages etc.
Template parameters[Edit template data]
This template prefers block formatting of parameters.
Parameter Description Type Status Message title 1no description
String suggested Message text 2no description
Unknown required Initially collapsed? collapsedLeave empty when box should be initially expanded.
- Suggested values
yes
String optional