UDWiki:Location Block Style Guide
Location Style Guides
|
---|
This page details on the purpose and the use of the 9-block Template and the 16-block Template.
It should be used in conjunction with the Location Style Guide.
The Navigation blocks are two different templates that have been created to display the location of a site, and the blocks surrounding the site.
- The 9-block Template is used to display single block locations.
- The 9-block modified Template is used to display single block locations on a page that has multiple locations.
- The 16-block Template is used to display double, triple or 4-block locations.
There are no templates for Multiblock locations with more than 4 blocks (e.g. the City Zoo). These would have to be coded on the page itself.
There are two reasons to include the Navigation blocks into each location page.
- To provide the user with a visual picture of the block and its environs.
- To enable easier navigation to adjacent blocks.
What does the Block contain?
Each block contains the following:
- Name of the block/location
- The suburb the block/location is located in
- Co-ordinates of the block/location
- A picture of the location and the blocks immediately adjacent to it.
How do I use the template?
Block Links
The template has been deliberately created such that the individual locations on each page does not automatically link to another page. Hence, each location requires to be "wrapped" with the [[
and ]]
tags.
The reason it is not automatic is to allow for the locations in the edge of a suburb to display the adjacent suburb. e.g. on the Pagram Library page, the locations in Chudleyton, West Becktown and East Becktown are all shown with the adjacent suburb names in parentheses beneath the locations. Locations in Darvall Heights, the suburb where Pagram Library is located, does not have the suburb mentioned beneath the location. This is to reduce clutter.
Links to generic locations should not be created as, e.g. a carpark, but instead to a page qualified with the coordinates [[Carpark 96,3|a carpark]]
which will display as a carpark. For cemeteries, it should be in the style of [[Cemetary 14,42|a cemetary]]
, etc.
Links to locations which has a counterpart with a different name in a separate suburb should include the suburb name in the link (as per the location style guide), e.g. [[Catherine General Hospital (Yagoton)|Catherine General Hospital]]
instead of [[Catherine General Hospital]]
. This will enable navigation to the correct building.
Block Colours
These are the colours used to represent each block. The colours are obtained from the game itself. It is strongly preferable however, for the place names listed to be used instead. This will make altering the colours an easier task should Kevan ever decide to change the colours.
Armory | 888888 | Arms | 887766 | Auto Repair | CCCCCC | Bank | DDEEDD | Border | 000000 | ||||
Building | AAAADD | Carpark | 666666 | Cemetery | 99CC99 | Church | FFFFFF | Cinema | DDDDDD | ||||
Club | CC99CC | Factory | AAAAAA | Fire Station | FFDDDD | Fort | 998877 | Hospital | FF9999 | ||||
Hotel | CC9944 | Junkyard | 776655 | Library | EEEEEE | Mall | EEEEFF | Mansion | EEEEEE | ||||
Monument | 666666 | Motel | CC9944 | Museum | 889988 | Park | 99CC99 | Police Dept | DDDDFF | ||||
Power Station | AAAAAA | Railway Station | 888888 | School | 889999 | Stadium | 99CC99 | Street | 646464 | ||||
Tower | EEEEEE | Warehouse | 998877 | Wasteland | 776655 | Zoo | 996655 |
Block Display
To ensure that the location blocks are aligned correctly on the pages that have more than one location block, insert <br style="clear:both" /> at the end of each section, instead of <br><br><br><br><br><br><br><br><br><br><br><br>
Location Types
- "location_type" is the type of location that the template shows. Valid entries are shown below.
Location Types | |||||
---|---|---|---|---|---|
Valid Entries | Deprecated Entries | ||||
Armoury | Church | Junkyard | Park | Warehouse | Car Park |
9-block Template
The general structure of the 9-block template is as follows:
{{Locationblock| suburb=XXXXX| coordinates=XX,YY| location_type=XXXXX| NW_location=[[XXXXX]]|NW_color=XXXXX| N_location=[[XXXXX]]|N_color=XXXXX| NE_location=[[XXXXX]]|NE_color=XXXXX| W_location=[[XXXXX]]|W_color=XXXXX| This_location=XXXXX|location_color=XXXXX| E_location=[[XXXXX]]|E_color=XXXXX| SW_location=[[XXXXX]]|SW_color=XXXXX| S_location=[[XXXXX]]|S_color=XXXXX| SE_location=[[XXXXX]]|SE_color=XXXXX}}
Copy and paste the above onto a locations edit page. Replace the XXXXX's with the appropriate Information. Refer to the Map of Malton and the Color table above.
Example:
{{Locationblock| suburb=Molebank| coordinates=11,47| location_type=Arms| NW_location=[[Harrison Park]]|NW_color=Park| N_location=[[Jouxson Cinema]]|N_color=Cinema| NE_location=[[Stallworthy Square]]|NE_color=Street| W_location=[[the Vaughan Arms]]|W_color=Arms| This_location=The Hateley Arms|location_color=Arms| E_location=[[St Jude's Cathedral]]|E_color=Church| SW_location=[[Stockley Walk Police Dept]]|SW_color=Police Station| S_location=[[Maishman Bank]]|S_color=Bank| SE_location=[[St Jude's Cathedral]]|SE_color=Church}}
Above Example Rendered:
The Hateley Arms
Molebank [11,47]
Basic Info:
|
9-block modified Template
The general structure of the 9-block modified template is the same as the 9-block template, with the exception that there is no location_type field. It is as follows:
{{Locationblockmerge| suburb=XXXXX| coordinates=XX,YY| NW_location=[[XXXXX]]|NW_color=XXXXX| N_location=[[XXXXX]]|N_color=XXXXX| NE_location=[[XXXXX]]|NE_color=XXXXX| W_location=[[XXXXX]]|W_color=XXXXX| This_location=XXXXX|location_color=XXXXX| E_location=[[XXXXX]]|E_color=XXXXX| SW_location=[[XXXXX]]|SW_color=XXXXX| S_location=[[XXXXX]]|S_color=XXXXX| SE_location=[[XXXXX]]|SE_color=XXXXX}}
Copy and paste the above onto a locations edit page. Replace the XXXXX's with the appropriate Information. Refer to the Map of Malton and the Color table above.
Example:
{{Locationblockmerge| suburb=Molebank| coordinates=11,47| NW_location=[[Harrison Park]]|NW_color=Park| N_location=[[Jouxson Cinema]]|N_color=Cinema| NE_location=[[Stallworthy Square]]|NE_color=Street| W_location=[[the Vaughan Arms]]|W_color=Arms| This_location=The Hateley Arms|location_color=Arms| E_location=[[St Jude's Cathedral]]|E_color=Church| SW_location=[[Stockley Walk Police Dept]]|SW_color=Police Station| S_location=[[Maishman Bank]]|S_color=Bank| SE_location=[[St Jude's Cathedral]]|SE_color=Church}}
Above Example Rendered:
The Hateley Arms
Molebank [11,47]
|
Because there are multiple locations on that page, the infomation for the building type can be merged and placed near the top. to do this simply include {{infomerge|location_type}} and replace the location_type with a valid location type.
16-block Template
The general structure of the 16-block template is as follows:
{{Multiblock Structure| location_name=XXXXXX| suburb=XXXXXX| coordinates=XX,YY| location_type=XXXXX| NW_location=[[XXXXXX]]|NW_color=XXXXXX| WN_location=[[XXXXXX]]|WN_color=XXXXXX| EN_location=[[XXXXXX]]|EN_color=XXXXXX| NE_location=[[XXXXXX]]|NE_color=XXXXXX| NNW_location=[[XXXXXX]]|NNW_color=XXXXXX| NW_This_location=XXXXXX|NW_location_color=XXXXXX| NE_This_location=XXXXXX|NE_location_color=XXXXXX| NNE_location=[[XXXXXX]]|NNE_color=XXXXXX| SSW_location=[[XXXXXX]]|SSW_color=XXXXXX| SW_This_location=XXXXXX|SW_location_color=XXXXXX| SE_This_location=XXXXXX|SE_location_color=XXXXXX| SSE_location=[[XXXXXX]]|SSE_color=XXXXXX| SW_location=[[XXXXXX]]|SW_color=XXXXXX| WS_location=[[XXXXXX]]|WS_color=XXXXXX| ES_location=[[XXXXXX]]|ES_color=XXXXXX| SE_location=[[XXXXXX]]|SE_color=XXXXXX}}
Copy and paste the above onto a locations edit page. Replace the XXXXX's with the appropriate Information. Refer to either Map of Malton, or it's Mirror and the Color table above.
Example:
{{Multiblock Structure| location_name=Caiger Mall| suburb=[[Chudleyton]] / [[Darvall Heights]]| coordinates=19,27] - [20,28| location_type=Mall| NW_location=[[18,26|a carpark]]<br /><small>([[Chudleyton]])</small>|NW_color=Carpark| WN_location=[[Silwood Crescent]]<br /><small>([[Chudleyton]])</small>|WN_color=Street| EN_location=[[20,26|a warehouse]]<br /><small>([[Darvall Heights]])</small>|EN_color=Warehouse| NE_location=[[Coker Avenue]]<br /><small>([[Darvall Heights]])</small>|NE_color=Street| NNW_location=[[Eden Library]]<br /><small>([[Chudleyton]])</small>|NNW_color=Library| NW_This_location=Caiger Mall|NW_location_color=Mall| NE_This_location=Caiger Mall|NE_location_color=Mall| NNE_location=[[Holloms Auto Repair]]<br /><small>([[Darvall Heights]])</small>|NNE_color=Auto Repair| SSW_location=[[the Tynte Building]]<br />(<small>[[Chudleyton]])</small>|SSW_color=Building| SW_This_location=Caiger Mall|SW_location_color=Mall| SE_This_location=Caiger Mall|SE_location_color=Mall| SSE_location=[[the Latrobe Building]]<br /><small>([[Darvall Heights]])</small>|SSE_color=Building| SW_location=[[the Hussey Monument]]<br /><small>([[Chudleyton]])</small>|SW_color=Monument| WS_location=[[the Hearne Building]]<br /><small>([[Chudleyton]])</small>|WS_color=Building| ES_location=[[Pagram Library]]<br /><small>([[Darvall Heights]])</small>|ES_color=Library| SE_location=[[Salopia Row]]<br /><small>([[Darvall Heights]])</small>|SE_color=Street}}
- Note:
- There are instances of the
<BR />
XHTML tag in this example, so that the suburb appears under those locations, making it easy to notice that the surrounding locations are in differing suburbs. Using the<small>
XHTML tag on the suburb name can help preserve the even layout of the block template.
Above Example Rendered:
Caiger Mall
[[Chudleyton / Darvall Heights]] [19,27] - [20,28]
Basic Info:
|