Template:MP box: Difference between revisions

From Portals of Phereon Wiki
Content added Content deleted
No edit summary
(Clearfix stuff)
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><div class="mp-box" {{#if:{{{id|}}}|id="{{{id}}}"}} {{#if:{{{style|}}}|style="{{{style}}}"}}>
<includeonly><div class="mp-box" {{#if:{{{id|}}}|id="{{{id}}}"}} {{#if:{{{style|}}}|style="{{{style}}}"}}>
{{#if:{{{heading|}}}|<div class="mp-heading"><h2>{{{heading}}}</h2></div>}}
{{#if:{{{heading|}}}|<div class="mp-heading">{{{heading}}}</div>}}
<div class="mp-content" style="{{{style|}}}">{{{content|}}}</div>
<div class="mp-content clearfix cf-fix">{{{content|}}}</div>
<!--{{#if:{{{footer|}}}|<div class="mp-footer">{{{footer}}}</div>}}-->
<!--{{#if:{{{footer|}}}|<div class="mp-footer">{{{footer}}}</div>}}-->
</div></includeonly><!--
</div></includeonly><!--
--><noinclude>
--><noinclude>
{{Doc}}
{{doc}}
</noinclude>
</noinclude>

Latest revision as of 01:42, 12 September 2020

[view | edit | purge]Documentation

Usage[]

Using this:

{{MP box
|id         = mybox1
|heading    = Title
|content    = Content stuff here
}}

Gets you this:

Title
Content stuff here

Template data[]

A box designed for the main page

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
idid

A unique ID for this box, to be referenced in CSS or JS

Example
custom-box-1
Stringoptional
Headingheading

What shows up in the heading section

Example
Title
Stringsuggested
Contentcontent

Content goes here

Contentsuggested
Stylestyle

Set wrapper css style

Unknownoptional
[view | edit | purge]The above documentation is transcluded fromTemplate:MP box/doc.