Difference between revisions of "Template:Messagebox"

From Goon Wiki
Jump to: navigation, search
(Created page with "<div class="t_msg_box" style="background-color:#f0f0f0; color:#000000; border:solid {{#switch:{{{type|}}}|admin-msg=#9932cc|notice=#1e90ff|info=#1eff60|warn=#f4c430|modwarn=#...")
 
 
Line 3: Line 3:
{{#if:{{{image|}}}|{{{image}}}
{{#if:{{{image|}}}|{{{image}}}
|[[File:{{#switch:{{{type|}}}
|[[File:{{#switch:{{{type|}}}
|admin-msg=Emblem-important-violet.svg
|admin-msg=Emblem-important-violet.png
|notice=Emblem-important-blue.svg
|notice=Emblem-important-blue.png
|info=Emblem-important-green.svg
|info=Emblem-important-green.png
|warn=Emblem-important-yellow.svg
|warn=Emblem-important-yellow.png
|modwarn=Emblem-important-orange.svg
|modwarn=Emblem-important-orange.png
|sevwarn=Emblem-important-red.svg
|sevwarn=Emblem-important-red.png
|Emblem-important-black.svg}}|48px]]}}
|Emblem-important-black.png}}|48px]]}}
</div>
</div>
<div class="t_msg_box_content" style="text-align:left;margin-left:66px;">
<div class="t_msg_box_content" style="text-align:left;margin-left:66px;">

Latest revision as of 08:09, 11 November 2021

Emblem-important-black.png

A message should go here.

[edit] Template-info.png Template documentation

This is a global-level style control template for messageboxes.

It can be called in the following format:

{{Messagebox
|type=
|image=
|message=
|submessage=
|small=
}}

Parameters

type sets the type of messagebox. The messagebox types are as follows:

  • admin-msg: For messages specifically to/from wiki admins, such as requesting page deletions or moving content to a protected page. Sets the border to      and the icon to Emblem-important-violet.png
  • notice: For general informational messageboxes. Sets the border to      and the icon to Emblem-important-blue.png
  • info: For important informational messageboxes. Sets the border to      and the icon to Emblem-important-green.png
  • warn: For warning messageboxes of normal severity, such as flagging an external utility that is known to be relatively safe. Sets the border to      and the icon to Emblem-important-yellow.png
  • modwarn: For warning messageboxes of moderate severity, such as flagging an external utility that may be a honeypot. Sets the border to      and the icon to Emblem-important-orange.png
  • sevwarn: For warning messageboxes of critical severity, such as flagging an external utility known to be a honeypot. Sets the border to      and the icon to Emblem-important-red.png

image overrides the icons set in type with a custom image.

message and submessage are simple text fields, with the latter being in a smaller font.