Template:Relative location: Difference between revisions

No edit summary
(More correct to use "room" when talking about rooms.)
 
(One intermediate revision by one other user not shown)
Line 5: Line 5:
| colspan="5" class="relative-location-header" | Relative location
| colspan="5" class="relative-location-header" | Relative location
|-
|-
| colspan="5" style="text-align:center;" | {{#if:{{{north|}}}|[[{{{north|}}}]]|}}
| style="width:25%" | {{#if:{{{northwest|}}}|[[{{{northwest|}}}]]|}}
|
| style="width:25%; align-items: center;" | {{#if:{{{north|}}}|[[{{{north|}}}]]|}}
|
| style="width:25%" | {{#if:{{{northeast|}}}|[[{{{northeast|}}}]]|}}
|-
|-
| colspan="5" style="text-align:center;" | {{#if:{{{north|}}}|↑|}}
| style="width:7.5%; text-align:right;" | {{#if:{{{northwest|}}}||}}
|
| style="width:7.5%; align-items: center; text-align:center;" | {{#if:{{{north|}}}|↑|}}
|
| style="width:7.5%; text-align:left;" | {{#if:{{{northeast|}}}|↗|}}
|-
|-
| style="width:25%" | {{#if:{{{west|}}}|[[{{{west|}}}]]|}}
| style="width:25%" | {{#if:{{{west|}}}|[[{{{west|}}}]]|}}
| style="width:7.5%" | {{#if:{{{west|}}}|←|}}
| style="width:7.5%" | {{#if:{{{west|}}}|←|}}
| style="width:25%; align-items: center;" | '''{{{location|{{PAGENAME}}}}}'''
| style="width:25%; align-items: center;" | '''{{{room|{{{location|{{PAGENAME}}}}}}}}'''
| style="width:7.5%" | {{#if:{{{east|}}}|→|}}
| style="width:7.5%" | {{#if:{{{east|}}}|→|}}
| style="width:25%" | {{#if:{{{east|}}}|[[{{{east|}}}]]|}}
| style="width:25%" | {{#if:{{{east|}}}|[[{{{east|}}}]]|}}
|-
|-
| colspan="5" style="text-align:center;" | {{#if:{{{south|}}}|↓|}}
| style="width:7.5%; text-align:right;" | {{#if:{{{southwest|}}}||}}
|
| style="width:7.5%; align-items: center; text-align:center;" | {{#if:{{{south|}}}|↓|}}
|
| style="width:7.5%; text-align:left;" | {{#if:{{{southeast|}}}|↘|}}
|-
|-
| colspan="5" style="text-align:center;" | {{#if:{{{south|}}}|[[{{{south|}}}]]|}}
| style="width:25%" | {{#if:{{{southwest|}}}|[[{{{southwest|}}}]]|}}
|
| style="width:25%; align-items: center;" | {{#if:{{{south|}}}|[[{{{south|}}}]]|}}
|
| style="width:25%" | {{#if:{{{southeast|}}}|[[{{{southeast|}}}]]|}}
|}<noinclude>{{/doc}}</noinclude>
|}<noinclude>{{/doc}}</noinclude>

Latest revision as of 11:56, 13 November 2024

Relative location
Relative location
Template documentation
This documentation is transcluded from Template:Relative location/doc. [edit] [history] [purge]

The Relative location template is used to display graphically where a room is in terms of other rooms.

Refer to the list of rooms page to see what should be given the Relative Location template.

Usage

{{Relative location
|room =
|north = 
|east =
|south = 
|west = 
}}

Examples

North, south, east, and west

Relative location
Sea Road West Waterfront
East Beach
{{Relative location
|room = Sea Road
|north = 
|east = West Waterfront
|south = East Beach
|west = 
}}

South only; width 400 pixels

Relative location
Sea Road
East Beach
{{Relative location
|room = Sea Road
|width = 400px
|south = East Beach
}}

North, south, east, west; floated to the left

Relative location
Sea Road West Waterfront
East Beach
{{Relative location
|room = Sea Road
|north = 
|east = West Waterfront
|south = East Beach
|west = 
|float = left
}}