Difference between revisions of "Template:Infobox landform"

From blackwiki
Jump to navigation Jump to search
imported>Hike395
(rv: OS coord now converted to Lua)
imported>Frietjes
m
 
Line 11: Line 11:
 
| title          = {{#ifeq:{{lc:{{{child|}}}}}|yes|<div style="background-color:#{{#if:{{{water|}}}|cedeff|e7dcc3}};width:100%;font-weight:bold; padding-top:0.3em;padding-bottom:0.3em;display:inline-block;">{{{name|}}}</div>}}
 
| title          = {{#ifeq:{{lc:{{{child|}}}}}|yes|<div style="background-color:#{{#if:{{{water|}}}|cedeff|e7dcc3}};width:100%;font-weight:bold; padding-top:0.3em;padding-bottom:0.3em;display:inline-block;">{{{name|}}}</div>}}
  
|subheader      = {{ifempty|{{{other_name|}}}|{{{alt_name|}}}}}
+
|subheader      = {{if empty|{{{other_name|}}}|{{{alt_name|}}}}}
 
| suheaderclass = nickname
 
| suheaderclass = nickname
  
 
|image1  = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|{{{photo|}}}}}}|size={{{image_size|{{{photo_width|}}}}}}|sizedefault=256px|alt={{{alt|{{{photo_alt|}}}}}}}}
 
|image1  = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|{{{photo|}}}}}}|size={{{image_size|{{{photo_width|}}}}}}|sizedefault=256px|alt={{{alt|{{{photo_alt|}}}}}}}}
|caption1 = {{ifempty|{{{caption|}}}|{{{photo_caption|}}}}}
+
|caption1 = {{if empty|{{{caption|}}}|{{{photo_caption|}}}}}
  
 
|image2  = {{#if:{{{map|}}}
 
|image2  = {{#if:{{{map|}}}
Line 24: Line 24:
 
     | max_width = 256
 
     | max_width = 256
 
     | relief = {{{map_relief|{{{relief|}}}}}}
 
     | relief = {{{map_relief|{{{relief|}}}}}}
     | label = {{ifempty|{{{label|}}}|{{{name|}}} }}
+
     | label = {{if empty|{{{label|}}}|{{{name|}}} }}
     | position = {{ifempty|{{{label_position|}}}|none}} <!-- change default to none -->
+
     | position = {{if empty|{{{label_position|}}}|none}} <!-- change default to none -->
 
     | caption = {{{map_caption|}}}
 
     | caption = {{{map_caption|}}}
     | alt = {{ifempty|{{{map_alt|}}}|Map showing the location of {{if empty|{{{name|}}}|{{PAGENAMEBASE}}}} }}
+
     | alt = {{if empty|{{{map_alt|}}}|Map showing the location of {{if empty|{{{name|}}}|{{PAGENAMEBASE}}}} }}
 
     | mark = {{{mark|}}}
 
     | mark = {{{mark|}}}
 
     | marksize = {{{marker_width|{{{marker_size|}}}}}}
 
     | marksize = {{{marker_width|{{{marker_size|}}}}}}
     | coordinates = {{ifempty|{{{coordinates|}}}|{{{coords|}}}}} }}
+
     | coordinates = {{if empty|{{{coordinates|}}}|{{{coords|}}}}} }}
 
   |{{#invoke:InfoboxImage|InfoboxImage|image={{{map_image|}}}|size={{{map_size|{{{map_width|}}}}}}|sizedefault=240px|maxsize=256px|alt={{{map_alt|}}}}}
 
   |{{#invoke:InfoboxImage|InfoboxImage|image={{{map_image|}}}|size={{{map_size|{{{map_width|}}}}}}|sizedefault=240px|maxsize=256px|alt={{{map_alt|}}}}}
 
   }}
 
   }}
Line 45: Line 45:
  
 
|label4  = [[Geographic coordinate system|Coordinates]]
 
|label4  = [[Geographic coordinate system|Coordinates]]
|data4    = {{ifempty|{{{coordinates|}}}|{{{coords|}}}}}{{ifempty|{{{coordinates_ref|}}}|{{{coords_ref|}}} }}
+
|data4    = {{if empty|{{{coordinates|}}}|{{{coords|}}}}}{{if empty|{{{coordinates_ref|}}}|{{{coords_ref|}}} }}
  
 
|label5  =  Range
 
|label5  =  Range
Line 94: Line 94:
  
 
|label19  = Geology
 
|label19  = Geology
|data19  = {{ifempty|{{{geology|}}}|{{{type|}}}}}
+
|data19  = {{if empty|{{{geology|}}}|{{{type|}}}}}
  
 
|label20  = [[Geologic time scale|Age]]
 
|label20  = [[Geologic time scale|Age]]
Line 120: Line 120:
  
 
|label24  = [[Volcano|Last&nbsp;eruption]]
 
|label24  = [[Volcano|Last&nbsp;eruption]]
|data24  = {{ifempty|{{{eruption|}}}|{{{last_eruption|}}}}}
+
|data24  = {{if empty|{{{eruption|}}}|{{{last_eruption|}}}}}
  
 
|label25  = [[Topographic map|Topo map]]
 
|label25  = [[Topographic map|Topo map]]

Latest revision as of 12:23, 11 October 2019

Template:PAGENAMEBASE
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".

[[Category:Infobox templates|Template:Remove first word]]

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".
Waterloo - geograph.org.uk - 454845.jpg
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
[[Category:Infobox templates|Template:Remove first word]]
{{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