Template:Mbox: Difference between revisions

From Zelda Wiki, the Zelda encyclopedia
Jump to navigation Jump to search
m (Added display:table back for now)
(Now using CSS selectors to target section/file mboxes)
 
(23 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{{#if:{{{maxwidth|}}}||[[Category:Maxwidth omitted from Mbox]]}}<div class="mbox" style="display:table; text-align:left; overflow:auto; margin:0 auto 1em; padding:5px 7px; border: 1px solid #{{ZWborder}}; background-color: #{{ZWheader}}; {{#if:{{{maxwidth|}}}|max-width:{{{maxwidth|}}};}}">
<templatestyles src="Template:Mbox/Styles.css"></templatestyles><div class="mbox">
<div style="padding:2px 5px 2px 0.5em; <!--float:left;-->display:table-cell;">{{{image|[[File:Zwlogo2dlarge.png|50px]]}}}</div>
<div class="mbox-image">{{{image|[[File:Zwlogo2dlarge.png|50px]]}}}</div>
<div style="vertical-align:middle; padding:1px; <!--float:left;-->display:table-cell;"><span style="font-size: 14px; font-weight:bold;">{{{header|Header text}}}</span><br/><p style="font-size: 13px;">{{{info|Explanation}}}</p></div>
<div class="mbox-content"><div class="mbox-header">{{{header|Header text}}}</div>{{#if: {{{reason|}}} | <div class="mbox-reason">'''Reason:''' {{{reason|}}} </div>}}<div class="mbox-info">{{{info|Explanation}}}</div></div>
</div><noinclude>
</div><noinclude>
This template is used to make message box notices, namely [[:Category:Notice Templates|notice templates]].
This template is used to make message box notices, namely [[:Category:Notice templates|notice templates]].


==Usage==
==Usage==
Line 11: Line 11:
|image=  
|image=  
|header=  
|header=  
|reason=
|info=  
|info=  
}}
}}
</pre>
</pre>


[[Category:Formatting Templates]]</noinclude>
[[Category:Formatting templates]]</noinclude>

Latest revision as of 13:04, 23 May 2024

Header text
Explanation

This template is used to make message box notices, namely notice templates.

Usage

{{Mbox
|maxwidth= 
|image= 
|header= 
|reason= 
|info= 
}}