Template:MP box/doc: Difference between revisions
From Portals of Phereon Wiki
Content added Content deleted
(Created page with "{{Documentation subpage}} <!-- Categories go at the bottom of this page --> == Usage == <includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox|| <!-- Categories go here --> {{Category...") |
No edit summary |
||
Line 3: | Line 3: | ||
== Usage == |
== Usage == |
||
Using this: |
|||
<pre> |
|||
{{MP box |
|||
|id = mybox1 |
|||
|header = Title |
|||
|content = Content stuff here |
|||
|footer = I am a footer |
|||
}} |
|||
</pre> |
|||
Gets you this: |
|||
{{MP box |
|||
|id = mybox1 |
|||
|header = Title |
|||
|content = Content stuff here |
|||
|footer = I am a footer |
|||
}} |
|||
== Template data == |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
<templatedata> |
<templatedata> |
||
{ |
{ |
||
Line 39: | Line 52: | ||
} |
} |
||
</templatedata> |
</templatedata> |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ |
Revision as of 16:19, 29 August 2020
Usage
Using this:
{{MP box |id = mybox1 |header = Title |content = Content stuff here |footer = I am a footer }}
Gets you this:
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 |
Footer | footer | What shows up in the footer section | String | optional |