Difference between revisions of "Template:Messagebox/doc"

From Goon Wiki
Jump to: navigation, search
(Created page with "This is a global-level style control template for messageboxes. It can be called in the following format: <pre>{{Messagebox |type= |image= |message=...")
 
m
 
(One intermediate revision by the same user not shown)
Line 14: Line 14:


'''type''' sets the type of messagebox. The messagebox types are as follows:
'''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 {{colorbox|#9932cc}} and the icon to [[File:Emblem-important-violet.svg|24px]]
*''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 {{colorbox|#9932cc}} and the icon to [[File:Emblem-important-violet.png|24px]]
*''notice'': For general informational messageboxes. Sets the border to {{colorbox|#1e90ff}} and the icon to [[File:Emblem-important-blue.svg|24px]]
*''notice'': For general informational messageboxes. Sets the border to {{colorbox|#1e90ff}} and the icon to [[File:Emblem-important-blue.png|24px]]
*''info'': For important informational messageboxes. Sets the border to {{colorbox|#1eff60}} and the icon to [[File:Emblem-important-green.svg|24px]]
*''info'': For important informational messageboxes. Sets the border to {{colorbox|#1eff60}} and the icon to [[File:Emblem-important-green.png|24px]]
*''warn'': For warning messageboxes of normal severity, such as flagging an external utility that is known to be relatively safe. Sets the border to {{colorbox|#f4c430}} and the icon to [[File:Emblem-important-yellow.svg|24px]]
*''warn'': For warning messageboxes of normal severity, such as flagging an external utility that is known to be relatively safe. Sets the border to {{colorbox|#f4c430}} and the icon to [[File:Emblem-important-yellow.png|24px]]
*''modwarn'': For warning messageboxes of moderate severity, such as flagging an external utility that may be a honeypot. Sets the border to {{colorbox|#f28500}} and the icon to [[File:Emblem-important-orange.svg|24px]]
*''modwarn'': For warning messageboxes of moderate severity, such as flagging an external utility that may be a honeypot. Sets the border to {{colorbox|#f28500}} and the icon to [[File:Emblem-important-orange.png|24px]]
*''sevwarn'': For warning messageboxes of critical severity, such as flagging an external utility known to be a honeypot. Sets the border to {{colorbox|#b22222}} and the icon to [[File:Emblem-important-red.svg|24px]]
*''sevwarn'': For warning messageboxes of critical severity, such as flagging an external utility known to be a honeypot. Sets the border to {{colorbox|#b22222}} and the icon to [[File:Emblem-important-red.png|24px]]


'''image''' overrides the icons set in '''type''' with a custom image.
'''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.
'''message''' and '''submessage''' are simple text fields, with the latter being in a smaller font.
<noinclude>[[Category:Template documentation]]</noinclude>

Latest revision as of 08:19, 11 November 2021

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.