Template:MessageBox: Difference between revisions
(Further styling tweaks) |
m (Make header text sliiiiightly larger) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{| class=" | <includeonly>{| class="messagebox {{{class|}}}" {{#if:{{{style|}}}|style="{{{style}}}"}} role="presentation" | ||
| style="width:40px; border:none;" | {{{img|[[File:Event_Clue_1_(item).svg|35x35px|center|link=]]}}} | | style="width:40px; border:none;" | {{{img|[[File:Event_Clue_1_(item).svg|35x35px|center|link=]]}}} | ||
| style="border:none;" | <b>{{{1|}}}</b>{{#if:{{{2|}}}|<br style="clear: both;" /><div style="font-size:0.85em; line-height:1.4em;">{{{2}}}</div>|}} | | style="border:none;" | <b style="font-size:0.97em;">{{{1|}}}</b>{{#if:{{{2|}}}|<br style="clear: both;" /><div style="font-size:0.85em; line-height:1.4em;">{{{2}}}</div>|}} | ||
|}</includeonly><noinclude>{{/doc}}</noinclude> | |}</includeonly><noinclude>{{/doc}}</noinclude> |
Latest revision as of 22:03, 15 June 2024
The MessageBox template generates a generic message box to be displayed at or near the top of pages. This template can be wrapped to form more specific templates, such as Template:HasMMG and Template:HasGuide.
Parameters
To use this template, copy the below code replacing the parameter values as appropriate.
{{MessageBox |class = (Optional) Table classes |style = (Optional) Inline table styles |img = (Optional) Image | Header text | (Optional) Additional text }}
First Parameter
Required. Specifies the header text displayed within the message box. Should ideally be succinct and to the point.
Second Parameter
Additional text to be displayed under the header text, serves as supplementary information where more detail can be given.
img
Image displayed within the message box. It is advised that the centre
and link=
parameters are specified.
Defaults to [[File:Event_Clue_1_(item).svg|35x35px|center|link=]]
if not specified.
class
Table classes to give the message box additional, custom styling as defined by the class.
style
Inline CSS styles to further customize the appearance of the message box.
Examples
{{MessageBox |Example MessageBox Usage |This is an example of how the MessageBox template may be used }}
{{MessageBox|MessageBox with header text only}}
{{MessageBox| img=[[File:Golbin_(monster).svg|35x35px|center|link=]] |This is a Golbin |Click [[Golbin (monster)|here]] to find out more. Note it is ''Golbin'', not Goblin }}