Template:Mbox/doc: Difference between revisions

From Destiny Wiki
Jump to navigation Jump to search
(added doccumentation for Mbox)
 
m (fixed example code text)
Line 46: Line 46:
Additionally, with some finagling, you can add an image like the other message boxes have without ''too'' much effort.
Additionally, with some finagling, you can add an image like the other message boxes have without ''too'' much effort.


:<code><nowiki>{{Mbox|#aaeeff|You are a loser! You are a big stupid loser head!}}</nowiki></code>
:<code><nowiki>{{Mbox|#ff9900|[[File:ACKSHUALLYexclaim.png]]{{!!}}You are a loser! You are a big stupid loser head!}}</nowiki></code>


Will result in the following:
Will result in the following:

Revision as of 05:24, 23 March 2024

Documentation for Template:Mbox

Useage

A generic message box with an adjustable color, and (technically) should have a way to add an image inside of it. Any silly questions can be directed to User:Devonnn.

{{Mbox|1|2}}
{{Mbox|color|text}}

Parameters

Parameter Description Type Status
1 Desired side color, either a color name or Hex code. Leaving blank will leave the color as the default text color (red). content optional
2 The desired message to be but into the message box. Will automatically be italicized (like all other message boxes). content required

Examples

Inputting the following:

{{Mbox||You are a loser! You are a big stupid loser head!}}

Will result in the following:


Alternatively, a hex code for a non-html color can be used in order to specify a specific color. For example:

{{Mbox|#aaeeff|You are a loser! You are a big stupid loser head!}}

Will result in the following:


Or, an html color can be used:

{{Mbox|yellow|You are a loser! You are a big stupid loser head!}}

Will result in the following:


Additionally, with some finagling, you can add an image like the other message boxes have without too much effort.

{{Mbox|#ff9900|[[File:ACKSHUALLYexclaim.png]]{{!!}}You are a loser! You are a big stupid loser head!}}

Will result in the following:


Last updated by Devonnn (talk) 05:17, 23 March 2024 (UTC)