Template:MP box: Difference between revisions
From Portals of Phereon Wiki
Content added Content deleted
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly><div class="mp-box" {{#if:{{{id|}}}|id="{{{id}}}"}}> |
<includeonly><div class="mp-box" {{#if:{{{id|}}}|id="{{{id}}}"}}> |
||
{{#if:{{{heading|}}}|<div class="mp-heading"><h2>{{{heading}}}</h2></div>}} |
{{#if:{{{heading|}}}|<div class="mp-heading"><h2>{{{heading}}}</h2></div>}} |
||
<div class="mp-content" |
<div class="mp-content">{{{content|}}}</div> |
||
{{#if:{{{footer|}}}|<div class="mp-footer" |
{{#if:{{{footer|}}}|<div class="mp-footer">{{{footer}}}</div>}} |
||
</div></includeonly><!-- |
</div></includeonly><!-- |
||
--><noinclude> |
--><noinclude> |
Revision as of 13:15, 30 August 2020
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
Parameter | Description | Type | Status | |
---|---|---|---|---|
id | id | A unique ID for this box, to be referenced in CSS or JS
| String | optional |
Heading | heading | What shows up in the heading section
| String | suggested |
Content | content | Content goes here | Content | suggested |
Style | style | Set wrapper css style | Unknown | optional |
[view | edit | purge]The above documentation is transcluded fromTemplate:MP box/doc.