VOOZH about

URL: https://minecraft.wiki/w/Template:Mainpage_section_notice

⇱ Template:Mainpage section notice – Minecraft Wiki


Template:Mainpage section notice

From Minecraft Wiki
Jump to navigation Jump to search
Documentation[view] [edit] [history] [purge]
This template is used by the main page.
 
It is recommended to invoke this template using {{mainpage}} so the editcopy version may be correctly used.

When used on other pages, necessary styles are needed to be loaded for this template to work. {{mainpage template}} is available as a helper template for this.

An editcopy for this template exists. Compare with editcopy.

This template is used to provide a notice box at the top of the main page, below the portal tabs. It is usually blank.

Usage

This template accepts one unnamed param, which should be one of minecraft, movie, dungeons, legends, storymode, or earth. This is used to control which notices are displayed.

Content

A notice usually consists of:

  • an image
  • title
  • description
  • call-to-action button(s)

Here are some tools often used in constructing a banner.

Only show a banner on some portal pages

As explained above, the unnamed param can be used to only show a banner on select portal pages.

{{#switch: {{{1|}}
| minecraft | movie =
<!-- only shown to the main page and the movie portal -->
}}

Schedule a banner

{{#ifexpr: {{#time:U}} > 1742940000|
<!-- only shown after Unix time 1742940000 (March 25, 2025 at 22:00:00 UTC) -->
}}

Showing localized time

{{LocalizedTime}} can be used to show time in the user's timezone. This is useful for scheduled events.

{{LocalizedTime|2025-04-14T21:00Z|April 14 at 21:00 UTC}} yields .

Showing a countdown

{{Countdown}} can be used to show a countdown. This is useful for scheduled events.

{{Countdown|3000-01-01T00:00Z|prefix=Minecraft Live will be back in|suffix=!|done=Minecraft Live has started!}} yields Minecraft Live will be back in !Minecraft Live has started! when the event hasn't started, and Minecraft Live has started! when the event has started.

Examples

Minecraft LIVE

Minecraft Live will be back in !Minecraft Live has started!

Minecraft Live returns on ! Tune in for news, sneak peeks, and more.

<divclass="mp-section mp-banner dismissible-alert noexcerpt"style="display: none"data-alertid="mclive-2025-march-1">
<divclass="mp-banner-content">
<divclass="mp-banner-image">[[File:Tiny Agnes invitation.png|x70px|link=Minecraft Live 2025|class=pixel-image]]</div>

<div>
<h2class="mp-title"style="padding-right: 8px !important">
{{Countdown|2025-03-22T17:00Z|prefix=Minecraft Live will be back in|suffix=!|done=Minecraft Live has started!}}
</h2>
Minecraft Live returns on {{LocalizedTime|2025-03-22T17:00Z|March 22 at 17:00 UTC}}! Tune in for news, sneak peeks, and more.
</div>
</div>

<divclass="dismissible-alert-dismiss cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only"role="button"aria-label="Dismiss"></div>
<divclass="mp-button-wrapper">
{{mainpage button|Minecraft Live 2025|2=Learn more}}
{{mainpage button|progressive=1|https://youtu.be/jGNgh5zEFkY|2=Watch on YouTube}}
</div>
</div>

A Minecraft Movie Live Event

Join the A Minecraft Movie Live Event and get a cape!

Midport Village is under a piglin attack! Play mini-games inspired by A Minecraft Movie, save the village, and get the Yearn Cape! Event lasts until .

{{#ifexpr:{{#time:U}}>1742940000|{{#switch:{{{1|}}}
|minecraft|movie=
<divclass="mp-section mp-banner dismissible-alert noexcerpt"style="display: none"data-alertid="movie-live-event">
<divclass="mp-banner-content">
<divclass="mp-banner-image">[[File:Movie badge.gif|x70px|link=A Minecraft Movie Event|class=pixel-image]]</div>

<div>
<h2class="mp-title"style="padding-right: 8px !important">
Join the [[A Minecraft Movie Live Event|''A Minecraft Movie'' Live Event]] and get a cape!
</h2>
[[Movie:Midport Village|Midport Village]] is under a [[Movie:piglin|piglin]] attack! Play mini-games inspired by ''[[A Minecraft Movie]]'', save the village, and get the [[Yearn Cape]]! Event lasts until {{LocalizedTime|2025-04-14T21:00Z|April 14 at 21:00 UTC}}.
</div>
</div>

<divclass="dismissible-alert-dismiss cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only"role="button"aria-label="Dismiss"></div>
<divclass="mp-button-wrapper">
{{mainpage button|progressive=1|A Minecraft Movie Live Event|Learn more}}
</div>
</div>
}}}}

Zombie Horse Cape

Get the Zombie Horse Cape!

As part of the "Spear Mayhem" challenge, you can get a new cape by defeating five mobs using a spear in Bedrock Edition.

This challenge ends in has ended already ().

{{#ifexpr:{{#time:U}}<=1765821600|{{#switch:{{{1|}}}
|minecraft=
<divclass="mp-section mp-banner dismissible-alert noexcerpt"style="display: none"data-alertid="alert-zombie-horse-cape">
<divclass="mp-banner-content">
<divclass="mp-banner-image">[[File:CharacterCreatorZombieHorseCape.png|x70px|link=Zombie Horse Cape]]</div>

<div>
<h2class="mp-title"style="padding-right: 8px !important">
Get the [[Zombie Horse Cape]]!
</h2>
As part of the [{{mcnet|mounts-of-mayhem-challenges}} "Spear Mayhem" challenge], you can get a new cape by defeating five mobs using a [[spear]] in ''[[Bedrock Edition]]''.

This challenge {{Countdown|2025-12-15T18:00Z|prefix=ends '''in|suffix='''|done=has ended already}} ({{LocalizedTime|2025-12-15T18:00Z|December 15 at 18:00 UTC}}).
</div>
</div>

<divclass="dismissible-alert-dismiss cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only"role="button"aria-label="Dismiss"></div>
<divclass="mp-button-wrapper">
{{mainpage button|progressive=1|Zombie Horse Cape|Learn more}}
</div>
</div>
}}}}

Year in Review

The Wiki's Year in Review

Check out our 2025 Year in Review, with lots of fun wiki statistics!

<divclass="mp-section mp-banner dismissible-alert noexcerpt"style="display: none"data-alertid="alert-2025-year-in-review">
<divclass="mp-banner-content">
<divclass="mp-banner-image">[[File:Happy_Ghast_pixel_art.png|x70px|link=|class=pixel-image]]</div>

<div>
<h2class="mp-title"style="padding-right: 8px !important">
The Wiki's Year in Review
</h2>
Check out our 2025 Year in Review, with lots of fun wiki statistics!
</div>
</div>

<divclass="dismissible-alert-dismiss cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only"role="button"aria-label="Dismiss"></div>
<divclass="mp-button-wrapper">
{{mainpage button|progressive=1|https://minecraft.wiki/year-in-review-2025/|Take me there}}
</div>
</div>
[view] [edit] [history] [purge]The above documentation is transcluded from Template:Mainpage section notice/doc.
Retrieved from "https://minecraft.wiki/w/Template:Mainpage_section_notice?oldid=3602499"

Navigation menu