Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:MessageBox/doc: Difference between revisions

Template page
m Change collapsible into collapsed
document max_width
 
(2 intermediate revisions by one other 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
:Type <code>{{T|MessageBox|head|text|4=collapsed=yes}}</code> somewhere.
: {{T|MessageBox|head|text|4= collapsed= yes|5= max_width= 40em}}
:The <code>collapsed</code> parameter is optional. To make the message box initially collapsed, use <code>collapsed=yes</code>; otherwise, omit it.  
:; Parameters
;Sample output
::; 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.
::; max_width= : for especially large message boxes, you can increase set <code>max_width=100%</code> to allow it to take up the entire page.
 
; 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|{{PAGENAME}}]]<!-- Any categories for the template itself --></includeonly>
:<code><nowiki>{{MessageBox|An Especially Wide MessageBox:|
<noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>
Lord Intra gathered his retainers, who were hungry for tutelage. “Lord Intra!” said his sandal bearer, “What is the first step on the path to Royalty?” “There are no steps,” replied Intra, “It is zero-sum with your reality. It is not measured in finger-lengths.” “Lord Intra,” said his bodyguard, “Is the path to Royalty the path of struggle, then?” “No,” said Intra, “One may attain it without any effort at all. It is, in fact, the antithesis of struggle.” Intra’s steward was very discontent with his master’s evasiveness. “Lord,” he said, “Allow us lowly men some small measure of understanding. For sympathy’s sake, and the sake of we good and loyal servants, please tell us in plain language the nature of Royalty.” “I will tell you precisely what Royalty is,” said Intra, “It is a continuous cutting motion.”
 
-[https://killsixbilliondemons.com/comic/wielder-of-names-6-111/ The Song of Maybe]
|collapsed=yes|max_width=100%}}</nowiki></code>
::gives...
{{MessageBox|An Especially Wide MessageBox:|
Lord Intra gathered his retainers, who were hungry for tutelage. “Lord Intra!” said his sandal bearer, “What is the first step on the path to Royalty?” “There are no steps,” replied Intra, “It is zero-sum with your reality. It is not measured in finger-lengths.” “Lord Intra,” said his bodyguard, “Is the path to Royalty the path of struggle, then?” “No,” said Intra, “One may attain it without any effort at all. It is, in fact, the antithesis of struggle.” Intra’s steward was very discontent with his master’s evasiveness. “Lord,” he said, “Allow us lowly men some small measure of understanding. For sympathy’s sake, and the sake of we good and loyal servants, please tell us in plain language the nature of Royalty.” “I will tell you precisely what Royalty is,” said Intra, “It is a continuous cutting motion.”
 
-[https://killsixbilliondemons.com/comic/wielder-of-names-6-111/ The Song of Maybe]
|collapsed=yes|max_width=100%}}
 
; 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 15:12, 13 March 2026

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>|<max_width= 40em>}}
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= yes to have the box initially collapsed, otherwise omit it.
max_width=
for especially large message boxes, you can increase set max_width=100% to allow it to take up the entire page.
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?
{{MessageBox|An Especially Wide MessageBox:| Lord Intra gathered his retainers, who were hungry for tutelage. “Lord Intra!” said his sandal bearer, “What is the first step on the path to Royalty?” “There are no steps,” replied Intra, “It is zero-sum with your reality. It is not measured in finger-lengths.” “Lord Intra,” said his bodyguard, “Is the path to Royalty the path of struggle, then?” “No,” said Intra, “One may attain it without any effort at all. It is, in fact, the antithesis of struggle.” Intra’s steward was very discontent with his master’s evasiveness. “Lord,” he said, “Allow us lowly men some small measure of understanding. For sympathy’s sake, and the sake of we good and loyal servants, please tell us in plain language the nature of Royalty.” “I will tell you precisely what Royalty is,” said Intra, “It is a continuous cutting motion.” -[https://killsixbilliondemons.com/comic/wielder-of-names-6-111/ The Song of Maybe] |collapsed=yes|max_width=100%}}
gives...
An Especially Wide MessageBox:

Lord Intra gathered his retainers, who were hungry for tutelage. “Lord Intra!” said his sandal bearer, “What is the first step on the path to Royalty?” “There are no steps,” replied Intra, “It is zero-sum with your reality. It is not measured in finger-lengths.” “Lord Intra,” said his bodyguard, “Is the path to Royalty the path of struggle, then?” “No,” said Intra, “One may attain it without any effort at all. It is, in fact, the antithesis of struggle.” Intra’s steward was very discontent with his master’s evasiveness. “Lord,” he said, “Allow us lowly men some small measure of understanding. For sympathy’s sake, and the sake of we good and loyal servants, please tell us in plain language the nature of Royalty.” “I will tell you precisely what Royalty is,” said Intra, “It is a continuous cutting motion.”

-The Song of Maybe

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.

ParameterDescriptionTypeStatus
Message title1

no description

Stringsuggested
Message text2

no description

Unknownrequired
Initially collapsed?collapsed

Leave empty when box should be initially expanded.

Suggested values
yes
Stringoptional