Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:MC/Mainpage section notice/doc

Template page
Revision as of 18:33, 17 January 2026 by imported>Xujinxuan2008 (Interwiki link)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Template:Documentation header Template:Mainpage template documentation

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 Template:Cd. 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. <syntaxhighlight lang="wikitext">

</syntaxhighlight>

Schedule a banner

<syntaxhighlight lang="wikitext">

</syntaxhighlight>

Showing localized time

Template:Tl can be used to show time in the user's timezone. This is useful for scheduled events.

Template:Tl yields Template:LocalizedTime.

Showing a countdown

Template:Tl can be used to show a countdown. This is useful for scheduled events.

Template:Tl yields Template:Countdown when the event hasn't started, and Minecraft Live has started! when the event has started.

Examples

Minecraft LIVE

Template:Hatnote <tabber> Preview=Template:Mainpage template

Template:Mainpage template |-| Code=<syntaxhighlight lang="wikitext">

</syntaxhighlight> </tabber>

A Minecraft Movie Live Event

Template:Hatnote <tabber> Preview=Template:Mainpage template

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 Template:LocalizedTime.

Template:Mainpage template |-| Code=<syntaxhighlight lang="wikitext">

</syntaxhighlight> </tabber>

Zombie Horse Cape

Template:Hatnote <tabber> Preview=Template:Mainpage template

Get the Zombie Horse Cape!

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

This challenge Template:Countdown (Template:LocalizedTime).

Template:Mainpage template |-| Code=<syntaxhighlight lang="wikitext">

</syntaxhighlight> </tabber>

Year in Review

Template:Hatnote <tabber> Preview=Template:Mainpage template

Template:Mainpage template |-| Code=<syntaxhighlight lang="wikitext">

</syntaxhighlight> </tabber>


es:Plantilla:Portada sección aviso/doc fr:Modèle:Mainpage section notice/doc it:Template:Mainpage section notice/doc ja:テンプレート:Mainpage section notice/doc ko:틀:Mainpage section notice/doc lzh:模板:Mainpage section notice/doc nl:Sjabloon:hoofdpagina sectie kennisgeving/doc pt:Predefinição:Mainpage section notice/doc ru:Шаблон:Раздел уведомлений на заглавной странице/док uk:Шаблон:Розділ повідомлення головної сторінки/док zh:Template:Mainpage section notice/doc