Noita Wiki
Vexx32 (talk | contribs)
(Add sub-message support for the messages that include sub-messages. Thanks be to our saviour, css grids)
Vexx32 (talk | contribs)
(use noita-font class for easier font handling in spoilers)
(8 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>{{#if:{{{1|}}}{{{2|}}}|<span class="GameMessage noita-font" {{#if:{{{1|}}}|style="text-transform: uppercase;"}}
<span style="display: inline-grid; grid-template-rows: auto auto; font-family: 'noita','04b03',sans-serif; text-transform: uppercase; color: #fff; margin: 2px 5px; vertical-align: middle;">
">{{#if:{{{1|}}}|<span class="GameMessageInner" style="grid-row: 1 / 2;">{{{1|}}}</span>}}{{#if:{{{2|}}}|<span class="GameMessageUnder" style="
<span style="grid-row: 1 / 2; background-color: rgba(248,144,0,0.25); border-radius: 8px; border: 2px solid rgb(248,144,0); border-left: 5px groove rgb(248,144,0); border-right: 5px ridge rgb(248,144,0); padding: 4px 15px 0 15px; font-size: 1.2em;">
grid-row: 2 / 3;
<span style="grid-row: 2 / 3; text-align: center; font-size: 0.8em;>
[[Category:Content templates]]

Latest revision as of 01:16, 17 April 2021

Template-info.png Documentation

A minimal template to render a string of text in a similar way as in-game messages.

Template parameters

text1 text

The text to show as a game message

The world has been restored

The text to show as a the sub-message

and everyone is much happier


{{gameMessage|message here}}


When you destroy a [[Holy Mountain]] you receive the message {{gameMessage|You have angered the gods}} and [[Stevari]] spawns shortly thereafter.

When you destroy a Holy Mountain you receive the message You have angered the gods and Stevari spawns shortly thereafter.


The message shown is {{gameMessage|main message|and sub message}} at some determined event

The message shown is main messageand sub message at some determined event


When picking up gold, the message {{gameMessage||Picked up X gold.}} appears in the lower left corner of the screen.

When picking up gold, the message Picked up X gold. appears in the lower left corner of the screen.