Template:MP box/doc: Difference between revisions

From Portals of Phereon Wiki
Content added Content deleted
No edit summary
No edit summary
Line 9: Line 9:
|heading = Title
|heading = Title
|content = Content stuff here
|content = Content stuff here
|footer = I am a footer
|footerlink = https://www.portalsofphereon.com/wiki/Main_Page
}}
}}
</pre>
</pre>
Line 18: Line 16:
|heading = Title
|heading = Title
|content = Content stuff here
|content = Content stuff here
|footer = I am a footer
|footerlink = https://www.portalsofphereon.com/wiki/Main_Page
}}
}}


Line 43: Line 39:
"type": "content",
"type": "content",
"suggested": true
"suggested": true
},
"footer": {
"label": "Footer",
"description": "What shows up in the footer section",
"type": "string"
}
}
},
},

Revision as of 16:34, 29 August 2020

This is a documentation subpage for Template:MP box.
It contains usage information, categories and other content that is not part of the original template page.

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

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