Template:MP-Box: Difference between revisions

From Geometry Dash Expanded Wiki
Jump to navigation Jump to search
Keep main page panels inside their frames and prevent heading wrappers from offsetting them
Reduce main page box heading size and lower text slightly within frame
 
Line 7: Line 7:
-->{{#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="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}}"><!--
-->{{{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|}}}|<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>}}
-->{{#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.72rem;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:1.5rem;font-weight:var(--wiki-sidebar-heading-font-weight);color:var(--wiki-sidebar-heading-color);"> {{{header|}}} </div>}}
<div class="mp-box-body" style="box-sizing:border-box;flex:1 1 auto;min-width:0;height:auto;">
<div class="mp-box-body" style="box-sizing:border-box;flex:1 1 auto;min-width:0;height:auto;">
{{{body|}}}
{{{body|}}}

Latest revision as of 07:38, 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
Project Board
  • 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.