Template:MP-Box: Difference between revisions
Jump to navigation
Jump to search
geometrydash.wiki.gg>Jamasto mNo edit summary |
Reduce main page box heading size and lower text slightly within frame |
||
| (6 intermediate revisions by 2 users not shown) | |||
| 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.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"> | <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> | ||
;Description | ;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 | ;Syntax | ||
<pre> | <pre> | ||
{{MP-Box | {{MP-Box | ||
|class = | |class = [CSS classes, space-separated words without preceding periods] | ||
|style = | |style = [CSS styling attributes, without quotation marks] | ||
|header = | |header = | ||
|body = | |body = | ||
| Line 25: | Line 26: | ||
<pre> | <pre> | ||
{{MP-Box | {{MP-Box | ||
|header = | |class = project-board-list | ||
|style = font-size:110%;color:lime; | |||
|header = Project Board | |||
|body = | |body = | ||
{{TaskList}} | |||
}} | }} | ||
</pre> | </pre> | ||
;Sample output | ;Sample output | ||
{{MP-Box | {{MP-Box | ||
|header = | |class = project-board-list | ||
|style = font-size:110%;color:lime; | |||
|header = Project Board | |||
|body = | |body = | ||
{{TaskList}} | |||
}}<noinclude> | }}<noinclude> | ||
[[Category:Container templates]]</noinclude> | [[Category:Container templates]]</noinclude> | ||
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
- 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.