Template:MP-Box: Difference between revisions
Jump to navigation
Jump to search
m 5 revisions imported: Copied from Official Wiki https://geometrydash.wiki.gg/index.php?title=Template%3AMP-Box&oldid=232488 ; contributors: https://geometrydash.wiki.gg/index.php?title=Template%3AMP-Box&action=history |
Keep main page panels inside their frames and prevent heading wrappers from offsetting them |
||
| Line 6: | Line 6: | ||
-->{{#ifeq:{{#explode:{{#var:imp-variable-display-box}}|,|1}}|0|mp-hide-on-tablet}} <!-- | -->{{#ifeq:{{#explode:{{#var:imp-variable-display-box}}|,|1}}|0|mp-hide-on-tablet}} <!-- | ||
-->{{#ifeq:{{#explode:{{#var:imp-variable-display-box}}|,|2}}|0|mp-hide-on-mobile}} <!-- | -->{{#ifeq:{{#explode:{{#var:imp-variable-display-box}}|,|2}}|0|mp-hide-on-mobile}} <!-- | ||
-->{{{class|}}}" style="grid-area:{{#var:imp-variable-id}}; {{{style|}}}" id="mp-box-{{#var:imp-variable-id}}" data-box-id="{{#var:imp-variable-id}}"><!-- | -->{{{class|}}}" style="display:flex;flex-direction:column;min-width:0;box-sizing:border-box;grid-area:{{#var:imp-variable-id}}; {{{style|}}}" id="mp-box-{{#var:imp-variable-id}}" data-box-id="{{#var:imp-variable-id}}"><!-- | ||
-->{{#if:{{{header|}}}|< | -->{{#if:{{{header|}}}|<div class="mp-box-heading" role="heading" aria-level="2" style="position:absolute;overflow:hidden;width:100%;box-sizing:border-box;top:-2.84rem;left:0;margin:0;padding:0 1.78rem;border:none;line-height:2.46rem;white-space:nowrap;text-align:center;text-overflow:ellipsis;text-shadow:var(--wiki-sidebar-heading-text-shadow);-webkit-text-stroke-width:var(--custom-sidebar-heading-text-stroke-width);-webkit-text-stroke-color:var(--custom-sidebar-heading-text-stroke-color);font-family:var(--wiki-sidebar-heading-font-family);font-size:2rem;font-weight:var(--wiki-sidebar-heading-font-weight);color:var(--wiki-sidebar-heading-color);"> {{{header|}}} </div>}} | ||
<div class="mp-box-body"> | <div class="mp-box-body" style="box-sizing:border-box;flex:1 1 auto;min-width:0;height:auto;"> | ||
{{{body|}}} | {{{body|}}} | ||
</div></div><noinclude> | </div></div><noinclude> | ||
Revision as of 05:16, 11 October 2026
- Description
- This template is used to create a styled header/body container designed specifically for the main page in conjunction with Template:MainPage as part the Improved Main Page (IMP) framework.
- Main page boxes can additionally be created using the page-create input on Template:MP-Box--Missing.
- Syntax
{{MP-Box
|class = [CSS classes, space-separated words without preceding periods]
|style = [CSS styling attributes, without quotation marks]
|header =
|body =
}}
- Sample
{{MP-Box
|class = project-board-list
|style = font-size:110%;color:lime;
|header = Project Board
|body =
{{TaskList}}
}}
- Sample output
- Create and develop new articles missing from the Gauntlets list.
- Create and develop new articles missing from the Map Packs list (5 Harder, 26 Demon).
- Remove redlinks from articles.
- Develop stub articles.
- Search and replace phrasing of 1x, 2x, 3x, 4x, 0.5x/.5x speed to normal, fast, very fast, extremely fast, slow speed.
- Update level infoboxes with external links to artist and music.