Template talk:Messagebox: Difference between revisions

From The Urban Dead Wiki
Jump to navigationJump to search
m (→‎Example: fixing example)
 
(No difference)

Latest revision as of 05:27, 2 March 2006

What is it?

Template:Messagebox is a generalised version of the Urbandead message boxes. Most if not all message boxes currently in existence on Urban Dead should be creatable from this template, and in theory any message box required by others should be creatable from this template.

Usage

Template:Messagebox has five parameters:

  • msgbox_colour - this indicates the primary colour of the Message box. The template is set up so that the border and the hand image both share this parameter, and as a result, the useable colours are limited by which "hand images" are currently available. The current list includes:
Handgreen.png
Handred.png
Handblue.png
Handpurple.png
Handgrey.png
Image:Handgreen.png Image:Handred.png Image:Handblue.png Image:Handpurple Image:Handgrey.png
  • msgbox_imagesize - this indicates the width of the hand image, in pixels. as a general rule, most image boxes do not need this set any higher than 55, and one-line boxes typically only need it set to 45
  • msgbox_titlecolour - the colour of the title background. This needs to be included in hex, if the colour does not have a recognised colour name. We have found that the following sets work well together:
msgbox_colour msgbox_titlecolour
green #66CC66
red #FF9999
blue #9999FF
purple #CC66CC
grey #999999
  • msgbox_title - The title of the message box. This can be anything, including a link.
  • msgbox_message - The message of the message box. This should be informative and brief.

Example

{{messagebox|
 msgbox_colour=red|
 msgbox_titlecolour=#ff9999|
 msgbox_imagesize=55|
 msgbox_title=Example Title|
 msgbox_message=This is an example of a message box, and how it looks like 
 when all the parameters are filled in. Note it looks exactly 
 like the more common message boxes on the wiki.}}
Handred.png Example Title
This is an example of a message box, and how it looks like when all the parameters are filled in. Note it looks exactly like the more common message boxes on the wiki.

Discussion

I'm aware that Handgreen.png does not currently work. I'll ensure that it does by tonight, if noone else does it sooner. I'll probably also include a few other possible colours by tonight's end as well. -- Odd Starter talk | Mod 03:47, 18 Jan 2006 (GMT)