Noita Wiki
Vexx32 (talk | contribs)
m (reformat style strings to multiline so they're easier to read/edit and fixed a missing quotation mark)
Pcj (talk | contribs)
Line 1: Line 1:
<includeonly>{{#if:{{{1|}}}{{{2|}}}|<span style="
<includeonly>{{#if:{{{1|}}}{{{2|}}}|<span class="GameMessage" {{#if:{{{1|}}}|style="text-transform: uppercase;"}}
display: inline-grid;
">{{#if:{{{1|}}}|<span class="GameMessageInner" style="grid-row: 1 / 2;">{{{1|}}}</span>}}{{#if:{{{2|}}}|<span style="
grid-template-rows: auto auto;
font-family: 'noita', '04b03', sans-serif;
{{#if:{{{1|}}}| text-transform: uppercase;}}
color: #fff;
margin: 2px 5px;
vertical-align: middle;
text-align: center;
">{{#if:{{{1|}}}|<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
">{{{1|}}}</span>}}{{#if:{{{2|}}}|<span style="
grid-row: 2 / 3;
grid-row: 2 / 3;
{{#if:{{{1|}}}| font-size: 0.8em;}}
{{#if:{{{1|}}}| font-size: 0.8em;}}

Revision as of 16:58, 22 February 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.