Template:MP box: Difference between revisions
From Portals of Phereon Wiki
Content added Content deleted
No edit summary |
No edit summary |
||
Line 1:
<includeonly><div class="
{{#if:{{{heading|}}}|<div class="
<div class="
{{#if:{{{footer|}}}|<div class="
</div></includeonly><!--
--><noinclude>
Line 8:
</noinclude>
<!--
.
--
display: flex;
flex-flow: row wrap;
border: 1px solid var(--
background: var(--secondary-lighter);
box-shadow: 0 0.25rem 0.35rem -0.25rem var(--
max-width: 60%;
}
.
width: 100%;
padding: 0.5em 2em;
}
.
padding-top: 1.5rem;
}
.
padding-bottom: 1rem;
}
.
font-size: 1.4em;
font-weight: bold;
Line 38:
}
.
background: var(--secondary-desaturatedish);
transition: 0.3s ease-out;
align-self: flex-end;
padding: 0;
border-top: 1px solid var(--
width: 100%;
}
.
background: rgba(0, 0, 0, 0.1);
}
.
color: var(--gray-darker);
font-weight: bold;
|
Revision as of 16:07, 29 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.