Template:Messagebox: Difference between revisions
From MediaWiki
Jump to navigationJump to search
m So it doesn't construct silly article names like "Talk talk:Fred" |
No edit summary |
||
| Line 2: | Line 2: | ||
{| cellspacing="0" style="{{ #if:{{{width|}}}| width:{{{width}}};|}}{{ #if:{{{clearall|}}}| clear: both;|}}" {{#ifeq:{{{print|false}}}|false|class="noprint"}} | {| cellspacing="0" style="{{ #if:{{{width|}}}| width:{{{width}}};|}}{{ #if:{{{clearall|}}}| clear: both;|}}" {{#ifeq:{{{print|false}}}|false|class="noprint"}} | ||
|- | |- | ||
| style="padding:0 1em 0 1em;text-align:right;" |<div style="padding:.5em; background-color:#{{{bgcolor|efefff}}}; border:solid 1px #{{{border|9f9fff}}};text-align:{{{justification|center}}};margin:auto;">{{#if: {{{image_name|}}} | | | style="padding:0 1em 0 1em;text-align:right;object-fit: cover;" |<div style="padding:.5em; background-color:#{{{bgcolor|efefff}}}; border:solid 1px #{{{border|9f9fff}}};text-align:{{{justification|center}}};margin:auto;">{{#if: {{{image_name|}}} | | ||
[[Image:{{{image_name|}}}|left{{ #if: {{{image_width|}}}|{{!}}{{{image_width|}}}px|}}{{ #if: {{{mouseover|}}} |{{!}}{{{mouseover|}}}|}}]] | }} | [[Image:{{{image_name|}}}|left{{ #if: {{{image_width|}}}|{{!}}{{{image_width|}}}px|}}{{ #if: {{{mouseover|}}} |{{!}}{{{mouseover|}}}|}}]] | }} | ||
{{ #if: {{{header|}}} |<span style="font-size:125%;font-weight:900;">{{{header|}}}</span><hr/>|}} | {{ #if: {{{header|}}} |<span style="font-size:125%;font-weight:900;">{{{header|}}}</span><hr/>|}} | ||
Revision as of 19:25, 7 October 2020
(Transcluded documentation: view)
{{Messagebox|
|message_text=
|header=
|image_name=
|talkpage=
|categories=
|mouseover=
|image_width=
|border=
|bgcolor=
|justification=
|talkSameLine=
|clearall=
|print=true
}}
|
There is an additional parameter 'bottomtext' that should really never be used unless you know what you're doing, because its presence is often conditional; it's used for clarifying something.
If you do need to use it, the format usually looks something like this; |bottomtext={{#if: {{{pending|}}}|<b>Decision Pending:</b> {{{pending|}}} |}}
Printing
By default, this template will not appear when the page is printed. To force it to appear set print=true.

