Noita Wiki
Vexx32 (talk | contribs)
(add template for game messages)
 
Vexx32 (talk | contribs)
m (fix janky formatting and make border a little nicer)
Line 8: Line 8:
 
border-radius: 8px;
 
border-radius: 8px;
 
border: 2px solid rgb(248,144,0);
 
border: 2px solid rgb(248,144,0);
padding: 5px 15px 0 15px;
+
border-left: 5px groove rgb(248,144,0);
  +
border-right: 5px ridge rgb(248,144,0);
  +
padding: 4px 15px 0 15px;
 
margin: 2px 5px;
 
margin: 2px 5px;
 
font-family: 'noita','04b03',sans-serif;
 
font-family: 'noita','04b03',sans-serif;
Line 14: Line 16:
 
">
 
">
 
{{{1|}}}
 
{{{1|}}}
</span>
+
</span>}}</includeonly><noinclude>
}}
 
</includeonly>
 
<noinclude>
 
 
{{doc}}
 
{{doc}}
 
</noinclude>
 
</noinclude>

Revision as of 17:49, 30 January 2021

Template-info.png Documentation

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

Template parameters

ParameterDescriptionTypeStatus
text1 text

The text to show as a game message

Example
The world has been restored
Stringrequired
text2

The text to show as a the sub-message

Example
and everyone is much happier
Stringoptional

Usage

{{gameMessage|message here}}

Example

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.

Example

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

The message shown is main message at some determined event

Example

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

appears in the lower left corner of the screen.