Noita Wiki
(Created page with "<includeonly>{| style="text-align:center; float:right; font-family:'04b03',sans-serif; font-size:0.8em; border:2px solid #928167; border-radius:5px; background-color:rgba(5,5,...")
 
(Rework into grid format so we can reliably hide the arrows when a parameter in the corresponding direction is not supplied.)
Line 1: Line 1:
  +
<includeonly><div style="
<includeonly>{| style="text-align:center; float:right; font-family:'04b03',sans-serif; font-size:0.8em; border:2px solid #928167; border-radius:5px; background-color:rgba(5,5,5,0.8); padding:0.5em; margin:0.5em; width:30%"
 
  +
display: grid;
!colspan="5" style="font-size:1.7em;"|[[Biomes|Biome Navigation]]
 
  +
grid-template-columns: 4fr 1fr auto 1fr 4fr;
|-
 
  +
grid-template-rows: auto 2fr 1fr auto 1fr 2fr;
!colspan="5" style="border:2px solid #928167;"|
 
  +
place-items: center;
|-
 
  +
grid-gap: 0.5em;
|style="width: 30%;"|{{{NW|}}}
 
  +
text-align: center;
|
 
  +
float: right;
|style="width: 40%"|{{{N|}}}
 
  +
font-family: 'noita', '04b03', sans-serif;
|
 
  +
font-size: 0.8em;
|style="width: 30%"|{{{NE|}}}
 
 
border: 2px solid #928167;
|-
 
  +
border-radius: 5px;
|
 
  +
background-color: rgba(5, 5, 5, 0.8);
|↖
 
  +
padding: 0.5em;
|↑
 
  +
margin: 0.5em;
|↗
 
  +
width: 30%;
|
 
  +
line-height: 1em;
|-
 
  +
">
|{{{W|}}}
 
  +
<div style="
|←
 
  +
grid-row: 1 / 2;
|style="font-size:1.7em; border:2px solid #928167; border-radius:5px;"|{{#if:{{{C|}}}|{{{C|}}}|{{PAGENAME}}}}
 
  +
grid-column: 1 / 6;
|→
 
  +
font-size: 1.5em;
|{{{E|}}}
 
  +
line-height: 1.5em;
|-
 
  +
border-bottom: 2px solid #928167;
|
 
  +
width: 100%;
|↙
 
  +
">[[Biomes|Biome Navigation]]</div>
|↓
 
  +
{{#if:{{{NW|}}}|<div style="grid-row: 2 / 3; grid-column: 1 / 3;">{{{NW|}}}</div>
|↘
 
  +
<div style="grid-row: 3 / 4; grid-column: 2 / 3;">↖</div>
|
 
  +
}}
|-
 
  +
{{#if:{{{N|}}}|<div style="grid-row: 2 / 3; grid-column: 3 / 4;">{{{N|}}}</div>
|{{{SW|}}}
 
  +
<div style="grid-row: 3 / 4; grid-column: 3 / 4;">↑</div>
|
 
|{{{S|}}}
+
}}
  +
{{#if:{{{NE|}}}|<div style="grid-row: 2 / 3; grid-column: 4 / 6;">{{{NE|}}}</div>
|
 
  +
<div style="grid-row: 3 / 4; grid-column: 4 / 5;">↗</div>
|{{{SE|}}}
 
  +
}}
|}{{#if:{{NAMESPACE}}||[[Category:Biomes]]}}</includeonly><noinclude>
 
  +
{{#if:{{{W|}}}|<div style="grid-row: 4 / 5; grid-column: 1 / 2;">{{{W|}}}</div>
  +
<div style="grid-row: 4 / 5; grid-column: 2 / 3;">←</div>
  +
}}
  +
<div style="
  +
font-size: 1.5em;
  +
border: 2px solid #928167;
  +
border-radius:5px;
  +
grid-row: 4 / 5;
  +
grid-column: 3 / 4;
  +
padding: 0 1em;
  +
line-height: 0.9em;
  +
">
  +
{{{C|{{PAGENAME}}}}}
  +
</div>
  +
{{#if:{{{E|}}}|<div style="grid-row: 4 / 5; grid-column: 5 / 6;">{{{E|}}}</div>
  +
<div style="grid-row: 4 / 5; grid-column: 4 / 5;">→</div>
  +
}}
  +
{{#if:{{{SW|}}}|<div style="grid-row: 6 / 7; grid-column: 1 / 3;">{{{SW|}}}</div>
  +
<div style="grid-row: 5 / 6; grid-column: 2 / 3;">↙</div>
  +
}}
  +
{{#if:{{{S|}}}|<div style="grid-row: 6 / 7; grid-column: 3 / 4;">{{{S|}}}</div>
  +
<div style="grid-row: 5 / 6; grid-column: 3 / 4;">↓</div>
  +
}}
  +
{{#if:{{{SE|}}}|<div style="grid-row: 6 / 7; grid-column: 4 / 6;">{{{SE|}}}</div>
  +
<div style="grid-row: 5 / 6; grid-column: 4 / 5;">↘</div>
  +
}}
  +
  +
</div>
 
{{#if:{{NAMESPACE}}||[[Category:Biomes]]}}</includeonly><noinclude>
 
{{doc}}
 
{{doc}}
 
</noinclude>
 
</noinclude>

Revision as of 15:01, 22 February 2021

Template-info Documentation

A template used for Biome, showing neighboring biomes and areas.

Template parameters

ParameterDescriptionTypeStatus
NWNW

The neighboring area above and to the left of the current biome.

Page nameoptional
NN

The neighboring area above the current biome.

Page nameoptional
NENE

The neighboring area above and to the right of the current biome.

Page nameoptional
WW

The neighboring area left of the current biome.

Page nameoptional
CC

(Optional) The current biome.

Default
{{PAGENAME}}
Unknownoptional
EE

The neighboring area right of the current biome.

Page nameoptional
SWSW

The neighboring area below and to the left the current biome.

Page nameoptional
SS

The neighboring area below the current biome.

Page nameoptional
SESE

The neighboring area below and to the right the current biome.

Page nameoptional

Usage

{{BiomeNav
| NW = 
| N  = 
| NE = 
| W  = 
| C  = 
| E  = 
| SW = 
| S  = 
| SE = 
}}

Example


{{BiomeNav
| NW = [[Giant Tree]]
| N  = [[Forest]]
| NE = 
| W  = [[Collapsed Mines]]
| C  = [[Mines]]
| E  = [[Lava Lake]]
| SW = 
| S  = [[Coal Pits]]
| SE = 
}}

Example


{{BiomeNav
| NW = 
| N  = [[Pyramid]]
| NE = 
| W  = 
| C  = [[Sandcave]]
| E  = 
| SW = 
| S  = [[Desert Chasm]]
| SE = 
}}

Example

North West
North
North East
West

Center

East
South West
South
South East


{{BiomeNav
| NW = North West
| N  = North
| NE = North East
| W  = West
| C  = Center
| E  = East
| SW = South West
| S  = South
| SE = South East
}}