Template:MP box/doc: Difference between revisions
From Portals of Phereon Wiki
Content added Content deleted
No edit summary |
No edit summary |
||
(4 intermediate revisions by the same user not shown) | |||
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 44: | Line 40: | ||
"suggested": true |
"suggested": true |
||
}, |
}, |
||
" |
"style": { |
||
"label": " |
"label": "Style", |
||
"description": " |
"description": "Set wrapper css style" |
||
"type": "string" |
|||
} |
} |
||
}, |
}, |
||
Line 57: | Line 52: | ||
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox|| |
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox|| |
||
<!-- Categories go here --> |
<!-- Categories go here --> |
||
[[Category:Main page templates]] |
|||
}}</includeonly> |
}}</includeonly> |
Latest revision as of 05:04, 9 September 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 |