(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; |
||
⚫ | |||
+ | 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-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> |
||
− | | |
||
− | + | }} |
|
+ | {{#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:{{{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> |
||
⚫ | |||
{{doc}} |
{{doc}} |
||
</noinclude> |
</noinclude> |
Revision as of 15:01, 22 February 2021
Documentation
[purge]
A template used for Biome, showing neighboring biomes and areas.
Parameter | Description | Type | Status | |
---|---|---|---|---|
NW | NW | The neighboring area above and to the left of the current biome. | Page name | optional |
N | N | The neighboring area above the current biome. | Page name | optional |
NE | NE | The neighboring area above and to the right of the current biome. | Page name | optional |
W | W | The neighboring area left of the current biome. | Page name | optional |
C | C | (Optional) The current biome.
| Unknown | optional |
E | E | The neighboring area right of the current biome. | Page name | optional |
SW | SW | The neighboring area below and to the left the current biome. | Page name | optional |
S | S | The neighboring area below the current biome. | Page name | optional |
SE | SE | The neighboring area below and to the right the current biome. | Page name | optional |
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 }}