Template:MC/Mainpage section notice/doc
More actions
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
Template:Mainpage template |-| Code=<syntaxhighlight lang="wikitext">
</syntaxhighlight> </tabber>
Zombie Horse Cape
Template:Hatnote <tabber> Preview=Template:Mainpage template
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