Difference between revisions of "Template:MessageBox/doc"

From EVE University Wiki
Jump to: navigation, search
(Provided documentation for the page)
 
m (Clarify Description. Add Parameter desciption.)
 
(5 intermediate revisions by 3 users 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}}</code> somewhere.
+
: {{T|MessageBox|head|text|4= collapsed= yes}}
;Sample output
+
:; Parameters
:<code><nowiki>{{MessageBox|In local chat channel:|Serpentis Mug: Blah.}}</nowiki></code>
+
::; 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 <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.}}
<includeonly>[[Category:Templates|{{PAGENAME}}]]<!-- Any categories for the template itself --></includeonly>
+
 
<noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>
+
:<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...
 +
{{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]]<!-- Any categories for the template itself --></includeonly>
 +
<noinclude>[[Category:Template documentation]]</noinclude>

Latest revision as of 14:25, 1 September 2024

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= yes to 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?