Difference between revisions of "Template:Nmbox"

From RobotX
Jump to navigation Jump to search
Mediawiki>SamanthaNguyen
m (restyle)
 
m (1 revision imported)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<table class="nmbox" style="border: 1px solid #a2a9b1; border-collapse: collapse; clear:both; margin: .5em 0;">
+
<templatestyles src="Template:Nmbox/styles.css" />
<tr style="background: #eaecf0;">
+
<div class="nmbox noprint">{{#if: {{{image|}}}{{{header|}}}
{{#if:{{{image|}}}{{{header|}}}
+
|<div class="nmbox-header">{{#if: {{{image|}}}|<div class="nmbox-image mbox-image">{{{image|}}}</div>}}{{{header|}}}
| <th class="mbox-image" style="white-space: nowrap; padding: .25em 1em;">{{{image|}}} {{{header|}}}</th>
+
</div>}}
| <td class="mbox-empty-cell"></td>  <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. -->
+
{{#if:{{{text|}}}|<div class="nmbox-text mbox-text">{{{text|}}}</div>}}
}}
+
</div><noinclude>
<td class="mbox-text" style="background: #f8f9fa">{{{text|}}}</td>
 
</tr></table><noinclude>
 
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 21:17, 1 October 2020

Template documentation[view] [edit] [history] [purge]

This is a meta-template for generating navigation boxes to go at the bottom of pages.

Examples

{{nmbox
 | image = [[File:Geographylogo.png|25px|Languages|link=]]
 | header = [[Project:Language policy|{{Languages/Title|{{SUBPAGENAME}}}}]] 
 | text = Languages code
}}
Languages code

No description.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Imageimage

no description

Unknownoptional
Headerheader

no description

Userdeprecated
Texttext

no description

Unknownoptional