Template:MC/Toast/doc
Template page
More actions
Template:Documentation header This template is used to show toast similar to Minecraft.
Basic usage
{{toast
| title = This is a normal toast
| text = With helpful and descriptive subtext
}}
Themed usage
Narrator
{{toast
| theme = narrator
| title = This is a normal themed toast
| text = With helpful and descriptive subtext
}}
Advancement
{{toast
| theme = advancement
| title = This is a normal themed toast
| text = With helpful and descriptive subtext
}}
Recipe
{{toast
| theme = recipe
| title = This is a normal themed toast
| text = With helpful and descriptive subtext
}}
Story Mode
The template automatically applies the Story Mode theme in the Story Mode namespace. See also {{Dialogue}} and {{Interact}}
Parameters
type— the type of icon.- File:MCSM ui notification choiceIcon.png —
choice(default) - File:MCSM2 ui notification iconBranch.png —
branch
- File:MCSM ui notification choiceIcon.png —
icon— the icon to display. Overridestypeparameter. (e.g.ItemSprite diamond.png)
{{dialogue|
: '''Citizen:''' You... would you like... Esteban... or Smushy Cutecheeks... or Lord von Thunderpork VI? They’re all good... Were good... They were so good...
: {{interact|talk|Esteban}}
:: '''Jesse:''' I think Esteban sounds... good.
:: '''Citizen:''' Right... away...
:; (Jesse eats Esteban's porkchop.)
:: {{toast|theme=story mode|You ate the porkchop. Wow.}}
: {{interact|talk|...}}
:: '''Citizen:''' You... changed your mind? You don’t want one?
}}
<hr>
{{dialogue|
: '''Nell:''' Like I see it out of the corner of my eye... Just like that. Bam! Whoa...
: {{interact|talk|Change it back.}}
:: '''Jesse:''' You know what? I changed my mind. Let's bring the old one back, shall we?
:: '''Nell:''' Dude! Can't wait to see it again. Not that, y'know, this one wasn't... Like, go with your gut, dude. 'Specially if it wants the old one back. Cha!
:: {{toast|theme=story mode|type=branch|Your story is changing.}}
}}
Advanced usage
{{toast
| theme = advancement
| title = Challenge Complete!
| titlecolor = #FF55FF
| text = Sniper Duel
| image = Invicon Arrow.png
| imageclass = pixel-image
| align = left
}}
{{toast
| bgcol = #eef
| inlinecol = #e0f4ff
| outlinecol = #ddf
| title = This is a blue toast
| text = It has some custom CSS
| align = left
| css = box-shadow: 0px 0px 6px #888
}}
{{toast
| theme = recipe
| bgcol = #eef
| inlinecol = #e0f4ff
| outlinecol = #ddf
| title = This is a blue toast
| text = It has some custom CSS and a custom image<br><span style="color: red">This is an additional line of text</span>
| image = Bot.png
| align = left
| css = filter: drop-shadow(0px 0px 2px #888)
}}
A custom image size can also be specified with "imagesize", for example: imagesize = 50px
Advanced themed usage
{{toast
| theme = narrator
| outlinecol = #dff
| title = This is a blue themed toast
| text = It has some custom CSS
| align = left
| css = box-shadow: 0px 0px 6px #777
}}
{{toast
| theme = narrator
| outlinecol = #dff
| title = This is a blue themed toast
| text = It has some custom CSS and a custom image
| image = Bot.png
| align = left
| css = box-shadow: 0px 0px 6px #777
}}
A custom image size can also be specified with "imagesize", for example: imagesize = 50px
Category
This template automatically adds templates that use it to Category:Notice templates. To prevent that, simply set the parameter Template:P.