More actions
m Change collapsible into collapsed |
Add TemplateData. |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
;Description | ; Description | ||
:This template is used to do include various messages in text. Escalation messages, pop-up messages from Combat complexes, messages in local chat channel. | : 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 | ;Syntax | ||
: | : {{T|MessageBox|head|text|4= collapsed= yes}} | ||
: | :; Parameters | ||
;Sample | ::; head : Text in the header of the message box | ||
:<code><nowiki>{{MessageBox|In local chat channel:|Serpentis Mug: Blah.}}</nowiki></code> | ::; text : Text in the body of the box | ||
::; collapsed= : Controls whether the box is initially collapsed. use <code>collapsed= yes</code> to have the box initially collapsed, otherwise omit it. | |||
; Sample | |||
: <code><nowiki>{{MessageBox|In local chat channel:|Serpentis Mug: Blah.}}</nowiki></code> | |||
::gives... | ::gives... | ||
{{MessageBox|In local chat channel:|Serpentis Mug: Blah.}} | {{MessageBox|In local chat channel:|Serpentis Mug: Blah.}} | ||
:<code><nowiki>{{MessageBox|In local chat channel:|Serpentis Lion: And who are you, the proud lord said, that I must bow so low?|collapsed=yes}}</nowiki></code> | :<code><nowiki>{{MessageBox|In local chat channel:|Serpentis Lion: And who are you, the proud lord said, that I must bow so low?|collapsed=yes}}</nowiki></code> | ||
::gives... | ::gives... | ||
{{MessageBox|In local chat channel:|Serpentis Lion: And who are you, the proud lord said, that I must bow so low?|collapsed=yes}} | {{MessageBox|In local chat channel:|Serpentis Lion: And who are you, the proud lord said, that I must bow so low?|collapsed=yes}} | ||
<includeonly>[[Category:Formatting templates | |||
<noinclude>[[Category:Template documentation | ; Template data | ||
: This is the [[mediawikiwiki:Help:TemplateData|TemplateData]] documentation for this template used by [[mediawikiwiki:VisualEditor|VisualEditor]] and other tools. | |||
:: <templatedata> | |||
{ | |||
"params": { | |||
"1": { | |||
"label": "Message title", | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"2": { | |||
"label": "Message text", | |||
"required": true | |||
}, | |||
"collapsed": { | |||
"label": "Initially collapsed?", | |||
"type": "string", | |||
"suggestedvalues": [ | |||
"yes" | |||
], | |||
"description": "Leave empty when box should be initially expanded." | |||
} | |||
}, | |||
"description": "Box (collapsible) to show in-game messages etc.", | |||
"format": "block" | |||
}</templatedata> | |||
<includeonly>[[Category:Formatting templates]]<!-- Any categories for the template itself --></includeonly> | |||
<noinclude>[[Category:Template documentation]]</noinclude> | |||
Latest revision as of 18:11, 25 June 2025
- 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
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