Difference between revisions of "Template:Infobox landform/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>Hike395
(test new infobox map)
imported>WOSlinker
(sync)
Line 12: Line 12:
 
|caption1 = {{ifempty|{{{caption|}}}|{{{photo_caption|}}}}}
 
|caption1 = {{ifempty|{{{caption|}}}|{{{photo_caption|}}}}}
  
|image2  = {{#if:{{{map|}}}|{{Infobox map/sandbox
+
|image2  = {{#if:{{{map|}}}|{{Infobox map
 
             | map            = {{{map}}}
 
             | map            = {{{map}}}
 
             | map_width      = {{{map_width|}}}
 
             | map_width      = {{{map_width|}}}
Line 24: Line 24:
 
             | mark          = {{{mark|}}}
 
             | mark          = {{{mark|}}}
 
             | mark_width    = {{{marker_size|}}}
 
             | mark_width    = {{{marker_size|}}}
            | lat_deg = {{{lat_d|}}}
 
            | lat_min = {{{lat_m|}}}
 
            | lat_sec = {{{lat_s|}}}
 
            | lat_dir = {{{lat_NS|}}}
 
            | lon_deg = {{{long_d|}}}
 
            | lon_min = {{{long_m|}}}
 
            | lon_sec = {{{long_s|}}}
 
            | lon_dir = {{{long_EW|}}}
 
 
             | coordinates = {{ifempty|{{{coordinates|}}}|{{{coords|}}}}} }} }}
 
             | coordinates = {{ifempty|{{{coordinates|}}}|{{{coords|}}}}} }} }}
  
Line 44: Line 36:
  
 
|label4  = [[Geographic coordinate system|Coordinates]]
 
|label4  = [[Geographic coordinate system|Coordinates]]
|data4    = {{#if:{{{lat_d|}}}{{{long_d|}}}
+
|data4    = {{ifempty|{{{coordinates|}}}|{{{coords|}}}}}{{ifempty|{{{coordinates_ref|}}}|{{{coords_ref|}}} }}
            | {{Infobox coord
 
              | lat_d  = {{{lat_d|}}}
 
              | lat_m  = {{{lat_m|}}}
 
              | lat_s  = {{{lat_s|}}}
 
              | lat_NS  = {{{lat_NS|}}}
 
              | long_d  = {{{long_d|}}}
 
              | long_m  = {{{long_m|}}}
 
              | long_s  = {{{long_s|}}}
 
              | long_EW = {{{long_EW|}}}
 
              | type    = {{ifempty|{{{coords_type|}}}|landmark}}
 
              | region  = {{{region|}}}
 
              | scale  = {{{scale|}}}
 
              | source  = {{{source|}}}
 
              | display = {{{display|}}}
 
              | format  = {{{format|}}}
 
              | name    = <!-- leave undefined -->
 
              }}
 
            | {{ifempty|{{{coordinates|}}}|{{{coords|}}}}}
 
            }}{{ifempty|{{{coordinates_ref|}}}|{{{coords_ref|}}} }}
 
  
 
|label5  =  Range
 
|label5  =  Range
Line 159: Line 132:
  
 
|data31  = {{ifempty|{{{embed|}}}|{{{embedded|}}}}}
 
|data31  = {{ifempty|{{{embed|}}}|{{{embedded|}}}}}
}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox landform with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox landform]] with unknown parameter "_VALUE_"|ignoreblank=y| age | alt | alt_name | area | caption | coordinates | coordinates_ref | coords | coords_ref | depth | designation | display | drop | elevation | elevation_ft | elevation_m | elevation_ref | embed | embedded | eruption | format | formed_by | free_data_1 | free_data_2 | free_label_1 | free_label_2 | geology | grid_ref | grid_ref_Ireland | grid_ref_UK | highest_coords | highest_elevation | highest_point | image | image_size | label | label_position | last_eruption | length | location | map | map_alt | map_caption | map_width | mark | marker_size | name | operator | orogeny | other_name | part_of | photo | photo_alt | photo_caption | photo_width | range | region | relief | scale | source | surface_elevation | surface_elevation_ft | surface_elevation_m | surface_elevation_ref | topo | type | volcanic_arc | volcanic_arc/belt | volcanic_belt | volcanic_field | water | water_bodies | website | width | x | x% | y | y% }}<noinclude>
+
}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox landform with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox landform]] with unknown parameter "_VALUE_"|ignoreblank=y| age | alt | alt_name | area | caption | coordinates | coordinates_ref | coords | coords_ref | depth | designation | display | drop | elevation | elevation_ft | elevation_m | elevation_ref | embed | embedded | eruption | format | formed_by | free_data_1 | free_data_2 | free_label_1 | free_label_2 | geology | grid_ref | grid_ref_Ireland | grid_ref_UK | highest_coords | highest_elevation | highest_point | image | image_size | label | label_position | last_eruption | length | location | map | map_alt | map_caption | map_width | mark | marker_size | name | operator | orogeny | other_name | part_of | photo | photo_alt | photo_caption | photo_width | range | region | relief | scale | source | surface_elevation | surface_elevation_ft | surface_elevation_m | surface_elevation_ref | topo | type | volcanic_arc | volcanic_arc/belt | volcanic_belt | volcanic_field | water | water_bodies | website | width  
 +
}}{{#ifeq:{{{x|¶}}}{{{y|¶}}}{{{x%|¶}}}{{{y%|¶}}}|¶¶¶¶||[[Category:Pages using Template:Infobox map needing attention]]
 +
}}<noinclude>
 
{{documentation}}
 
{{documentation}}
 
<!--
 
<!--

Revision as of 08:21, 5 June 2017

Script error: No such module "If empty".
CoordinatesScript error: No such module "If empty".Script error: No such module "If empty".
GeologyScript error: No such module "If empty".
Last eruptionScript error: No such module "If empty".
Script error: No such module "If empty".
50px Template documentation[view] [edit] [history] [purge]

The Template:Infobox landform formats a right-side infobox to be used in articles about geological features for which no other infobox exists.

Usage

Assigning any value to the parameter |water= will generate a blue header. Only articles about features that are predominantly water, such as maars and whirlpools, should use this option. The default is brown.

Template:Parameter names example

{{Infobox landform
| water             = 
| name              = {{subst:PAGENAME}}
| other_name        = 
| photo             = 
| photo_width       = 
| photo_alt         = 
| photo_caption     = 
| map               = 
| map_width         = 
| map_caption       = 
| map_alt           = 
| relief            = 
| label             = 
| label_position    = 
| mark              = 
| marker_size       = 
| location          = 
| grid_ref          = 
| grid_ref_UK       = 
| grid_ref_Ireland  = 
| coordinates       = <!-- {{Coord|LAT|LON|type:landmark|display=inline,title}} -->
| coordinates_ref   = 
| range             = 
| part_of           = 
| water_bodies      = 
| elevation_ft      = <!-- or |elevation_m = -->
| elevation_ref     = 
| surface_elevation_ft = <!-- or |surface_elevation_m = -->
| surface_elevation_ref =
| highest_point     = 
| highest_elevation = 
| highest_coords    = 
| length            = 
| width             = 
| area              = <!-- {{Convert|NN|ha|acres}} -->
| depth             = 
| drop              = 
| formed_by         = 
| geology           = <!-- or |type = -->
| age               = 
| orogeny           = 
| volcanic_arc/belt = 
| volcanic_arc      = 
| volcanic_belt     = 
| volcanic_field    = 
| eruption          = 
| last_eruption     = 
| topo              = 
| operator          = 
| designation       = 
| free_label_1      = 
| free_data_1       = 
| free_label_2      = 
| free_data_2       = 
| free_label_3      = 
| free_data_3       = 
| website           = <!-- {{URL|example.com}} -->
| embedded          = 
}}

Example

Waterloo Bay
Script error: No such module "If empty".
256px
Script error: No such module "If empty".
Lua error in Module:Location_map at line 399: Malformed coordinates value.
LocationCounty Antrim, Northern Ireland
OSI/OSNI gridTemplate:OS coord
CoordinatesScript error: No such module "If empty".Script error: No such module "If empty".
Elevation0 m
GeologyScript error: No such module "If empty".
AgeJurassic, Triassic
Last eruptionScript error: No such module "If empty".
Topo mapOSNI Discoverer 9
{{Infobox landform
| water = 
| name = Waterloo Bay
| photo = Waterloo - geograph.org.uk - 454845.jpg
| photo_caption = Tilted [[Mercia Mudstone Group|mudstones]] at Waterloo Bay, Larne
| elevation = 0 m
| elevation_ref = 
| map = UK Northern Ireland
| map_relief = 1 
| map_caption = Location in Northern Ireland
| label_position = none
| location = [[County Antrim]], [[Northern Ireland]]
| coordinates = {{coord|54.852|-5.83|display=inline,title}}
| grid_ref_Ireland = D408037
| topo = [[Ordnance Survey of Northern Ireland|OSNI]] ''Discoverer'' 9 
| type = [[Mercia Mudstone Group]], [[Lias Group]]
| age = [[Jurassic]], [[Triassic]]
| volcanic_arc/belt = 
| last_eruption = 
}}

Tracking category

See also