Template:Divesite infobox: Difference between revisions

From Dive Atlas
(move css out of template)
Tags: Mobile edit Mobile web edit
(Add dive site category assignment, invoke IsPartOf)
Line 1: Line 1:
<!-- Info box -->
<div class="divesiteinfobox">
<div class="divesiteinfobox">
{| class="wikitable" style="border:1px solid black; width:100%;"
{| class="wikitable" style="border:1px solid black; width:100%;"
Line 12: Line 13:
| {{{region}}}
| {{{region}}}
|-
|-
! Access via
! Access
| {{{site_access_type}}}
| {{{site_access_type}}}
|-
|-
Line 19: Line 20:
|-
|-
|}
|}
<!-- Map -->
{{#if:{{{coordinates}}}|{{ #display_map:{{{coordinates}}}|copycoords=yes|defzoom=13|resizable=yes|fullscreen=yes }} }}
{{#if:{{{coordinates}}}|{{ #display_map:{{{coordinates}}}|copycoords=yes|defzoom=13|resizable=yes|fullscreen=yes }} }}
</div>
</div>
Line 28: Line 31:
{{#set:Has region={{{region}}} }}
{{#set:Has region={{{region}}} }}


<!-- Categories -->
{{#if:{{{type}}}|[[Category:{{{type}}}]]}}
{{#if:{{{type}}}|[[Category:{{{type}}}]]}}
{{IsPartOf|{{{region}}}}}
[[Category:Dive sites]]


<noinclude>
<noinclude>

Revision as of 17:05, 3 January 2025

Site Info
Type {{{type}}}
Coordinates {{{coordinates}}}
Region {{{region}}}
Access {{{site_access_type}}}
Depth range {{{depth_range}}}
Loading map...

The following coordinate was not recognized: {{{coordinates}}}. "{{{type}}}" is not in the list (Cavern, Cave, Wreck, Lake, Reef, Cove, Inlet) of allowed values for the "Has site type" property. Property "Has access type" (as page type) with input value "{{{site_access_type}}}" contains invalid characters or is incomplete and therefore can cause unexpected results during a query or annotation process. Property "Has region" (as page type) with input value "{{{region}}}" contains invalid characters or is incomplete and therefore can cause unexpected results during a query or annotation process.

[[Category:{{{type}}}]]


Property "Part of" (as page type) with input value "{{{region}}}" contains invalid characters or is incomplete and therefore can cause unexpected results during a query or annotation process.


No description.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Regionregion

The general region

Suggested values
Arctic Circle
Example
Caribbean
Stringrequired
Site access typesite_access_type

How the site is typically accessed - boat, shore, etc.

Example
Boat
Unknownrequired
Depth rangedepth_range

The depth range for dives at this site. It's okay for this to be very large; e.g. for sites where both recreational and technical dives can be conducted, the range could be something like 5-100m

Example
5-10m
Stringsuggested
GPS coordinatescoordinates

Decimal GPS coordinates of the site. For large sites such as lakes, use something representative such as the typical entrypoint or a major feature. Format should be 'lat,long'.

Example
36.032611, -75.663972
Stringsuggested
Typetype

General type of site; ocean, lake, wreck, cave, river, etc. If multiple types are present, add multiple.

Example
Wreck
Unknownrequired