Template:Mbox: Difference between revisions

From Destiny Wiki
Jump to navigation Jump to search
No edit summary
(Style change so that it looks better across most themes, prep to integrate other box templates to use mbox so that they can share a common base tempalte, remove like 2 unnecessary divisions)
Line 1: Line 1:
<div style="background: {{#if:{{{1|}}}|{{{1}}}|#f44352}}; margin: 0.5em; padding: 0.0em;"><div class="boilerplate plainlinks" id="stub"><div style="border: 1px solid #b4b7bc; background: #f8f9fa; margin: 0.0em auto 0em; margin-left: .8em; padding:.3em;">
<div style="border: 1px solid {{#if:{{{1|}}}|{{{1}}}|hsla(205, 78%, 63%, 1)}}; background: hsla(219, 25%, 80%, 0.1);border-radius: 4px; margin: 0.0em auto 0em; margin-left: .8em; padding:.3em; class="boilerplate plainlinks" id="stub"">
{| style="margin: 0.0em auto 1m; padding: 0.0em" <div class="boilerplate plainlinks" id="stub">
{| style="margin: 0.0em auto 1m; padding: 0.0em" <div class="boilerplate plainlinks" id="stub">
|-
|-
| ''{{{2}}}''
| ''{{{2}}}''
|}</div></div></div></div><noinclude>
|}</div></div><noinclude>
{{doccumentation}}
{{doccumentation}}
</noinclude>
</noinclude>

Revision as of 23:13, 9 April 2024

Template doc page transcluded from Template:Mbox/doc

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|3}}
{{Mbox|stroke|color|text}}

Parameters

Parameter Description Type Status
1 The stroke type that the Mbox will use. By default uses solid, however other options would include dotted, dashed or other CSS borders. content optional
2 Desired side color, either a color name or Hex code. Leaving blank will leave the color as the default text color (blue). content optional
3 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||red|You are a loser! You are a big stupid loser head!}}

Will result in the following:


Or, a specific border size and type can be used:

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

Will result in the following:

Or you could do something like:

{{Mbox|8px inset|green|You are a loser! You are a big stupid loser head!}}

Will result in the following:

However, it looks absolutely ugly.


Additionally, with some finagling, you can add an image like the other message boxes have without too much effort. Be sure to add a double pipe using {{!!}} (Template:!!) so that the succeeding text displays.

{{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)