Difference between revisions of "Template:MessageBox"

From EVE University Wiki
Jump to: navigation, search
(Added template category and documentation link)
(Using named variables for good)
Line 1: Line 1:
 
<div style="margin: 1em; border: 1px #555 solid;">
 
<div style="margin: 1em; border: 1px #555 solid;">
<div style="background: #000; border-bottom: 1px #555 solid; padding: 0.25em 0.5em; font-size: 0.9em;" >{{{1|Message:}}}</div>
+
<div style="background: #000; border-bottom: 1px #555 solid; padding: 0.25em 0.5em; font-size: 0.9em;" >{{{head|Message:}}}</div>
<div style="background: #222; padding: 1em;">{{{2|Text}}}</div>
+
<div style="background: #222; padding: 1em;">{{{text|Text}}}</div>
 
</div>
 
</div>
 
<noinclude>
 
<noinclude>

Revision as of 01:34, 5 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= yes to have the box initially collapsed, otherwise omit it.
Sample
{{MessageBox|In local chat channel:|Serpentis Mug: Blah.}}
gives...
Message:
Text


{{MessageBox|In local chat channel:|Serpentis Lion: And who are you, the proud lord said, that I must bow so low?|collapsed=yes}}
gives...
Message:
Text
Visit Template:MessageBox/doc to edit this text! (How does this work?) (Refresh this text - why?)