Template:MC/Mainpage section notice
More actions
Template:Mainpage templateTemplate:Mainpage template
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>
Template:Sandbox otherIf you're done making changes, please refresh the text.
Please add categories and interwikis to Template:MC/Mainpage section notice/doc. (View all subpages of this page.)