Difference between revisions of "Template:Infobox landform"
Jump to navigation
Jump to search
[[Category:Infobox templates|Template:Remove first word]]
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 = {{ | + | |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 = {{ | + | |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 = {{ | + | | label = {{if empty|{{{label|}}}|{{{name|}}} }} |
− | | position = {{ | + | | position = {{if empty|{{{label_position|}}}|none}} <!-- change default to none --> |
| caption = {{{map_caption|}}} | | caption = {{{map_caption|}}} | ||
− | | alt = {{ | + | | 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 = {{ | + | | 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 = {{ | + | |data4 = {{if empty|{{{coordinates|}}}|{{{coords|}}}}}{{if empty|{{{coordinates_ref|}}}|{{{coords_ref|}}} }} |
|label5 = Range | |label5 = Range | ||
Line 94: | Line 94: | ||
|label19 = Geology | |label19 = Geology | ||
− | |data19 = {{ | + | |data19 = {{if empty|{{{geology|}}}|{{{type|}}}}} |
|label20 = [[Geologic time scale|Age]] | |label20 = [[Geologic time scale|Age]] | ||
Line 120: | Line 120: | ||
|label24 = [[Volcano|Last eruption]] | |label24 = [[Volcano|Last eruption]] | ||
− | |data24 = {{ | + | |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". | |
Coordinates | Script error: No such module "If empty".Script error: No such module "If empty". |
Geology | Script error: No such module "If empty". |
Last eruption | Script error: No such module "If empty". |
[[Category:Infobox templates|Template:Remove first word]]
![]() | This template uses Lua: |
The Template:Infobox landform formats a right-side infobox to be used in articles about geological features for which no other infobox exists.
Contents
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". | |
![]() Script error: No such module "If empty". | |
Lua error in Module:Location_map at line 399: Malformed coordinates value. | |
Location | County Antrim, Northern Ireland |
OSI/OSNI grid | Template:OS coord |
Coordinates | Script error: No such module "If empty".Script error: No such module "If empty". |
Elevation | 0 m |
Geology | Script error: No such module "If empty". |
Age | Jurassic, Triassic |
Last eruption | Script error: No such module "If empty". |
Topo map | OSNI 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
The above documentation is transcluded from Template:Infobox landform/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |