Difference between revisions of "Template:Infobox landform/sandbox"
Jump to navigation
Jump to search
imported>Frietjes |
imported>Hike395 (sync sandbox) |
||
| Line 1: | Line 1: | ||
{{Infobox | {{Infobox | ||
| + | |child = {{lc:{{{child|{{{embed|}}}}}}}} | ||
|bodyclass = vcard | |bodyclass = vcard | ||
|aboveclass = fn org | |aboveclass = fn org | ||
|abovestyle = background-color:#{{#if:{{{water|}}}|cedeff|e7dcc3}}; | |abovestyle = background-color:#{{#if:{{{water|}}}|cedeff|e7dcc3}}; | ||
| − | |above = {{#ifeq:{{{ | + | |above = {{{name|{{PAGENAMEBASE}}}}} |
| + | |||
| + | <!-- The following is only activated when child = yes --> | ||
| + | | titleclass = fn org | ||
| + | | 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 = {{ifempty|{{{other_name|}}}|{{{alt_name|}}}}} | ||
| Line 17: | Line 22: | ||
| width = {{{map_width|}}} | | width = {{{map_width|}}} | ||
| default_width = 220 | | default_width = 220 | ||
| − | | relief = {{{relief|}}} | + | | max_width = 256 |
| + | | relief = {{{map_relief|{{{relief|}}}}}} | ||
| label = {{ifempty|{{{label|}}}|{{{name|}}} }} | | label = {{ifempty|{{{label|}}}|{{{name|}}} }} | ||
| position = {{ifempty|{{{label_position|}}}|none}} <!-- change default to none --> | | position = {{ifempty|{{{label_position|}}}|none}} <!-- change default to none --> | ||
| Line 25: | Line 31: | ||
| marksize = {{{marker_width|{{{marker_size|}}}}}} | | marksize = {{{marker_width|{{{marker_size|}}}}}} | ||
| coordinates = {{ifempty|{{{coordinates|}}}|{{{coords|}}}}} }} | | coordinates = {{ifempty|{{{coordinates|}}}|{{{coords|}}}}} }} | ||
| − | |{{#invoke:InfoboxImage|InfoboxImage|image={{{map_image|}}}|size={{{map_size|{{{map_width|}}}}}}|sizedefault=256px|alt={{{map_alt|}}}}} | + | |{{#invoke:InfoboxImage|InfoboxImage|image={{{map_image|}}}|size={{{map_size|{{{map_width|}}}}}}|sizedefault=240px|maxsize=256px|alt={{{map_alt|}}}}} |
}} | }} | ||
| caption2 = {{#if:{{{map|}}}||{{{map_caption|}}}}} | | caption2 = {{#if:{{{map|}}}||{{{map_caption|}}}}} | ||
| Line 62: | Line 68: | ||
-->{{{surface_elevation_ref|}}} | -->{{{surface_elevation_ref|}}} | ||
| − | |label10 = Highest point<!-- | + | |label10 = {{nowrap|Highest point}}<!-- |
-->{{#if:{{{highest_elevation|}}}|<br /> – <span style="font-weight:normal;">elevation</span>}}<!-- | -->{{#if:{{{highest_elevation|}}}|<br /> – <span style="font-weight:normal;">elevation</span>}}<!-- | ||
-->{{#if:{{{highest_coords|}}}|<br /> – <span style="font-weight:normal;">coordinates</span>}} | -->{{#if:{{{highest_coords|}}}|<br /> – <span style="font-weight:normal;">coordinates</span>}} | ||
| Line 131: | Line 137: | ||
|data29 = {{{free_data_2|}}} | |data29 = {{{free_data_2|}}} | ||
| − | |label30 = Website | + | |label30 = {{{free_label_3|}}} |
| − | | | + | |data30 = {{{free_data_3|}}} |
| + | |||
| + | |label31 = Website | ||
| + | |data31 = {{{website|}}} | ||
| − | | | + | |data32 = {{{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_image | map_size | 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 | + | }}{{#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 | child | 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_data_3 | free_label_1 | free_label_2 | free_label_3 | 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_image | map_relief | map_size | 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 |
}}<noinclude> | }}<noinclude> | ||
{{documentation}} | {{documentation}} | ||
Revision as of 13:51, 14 August 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". |
| 50px | This is the template sandbox page for Template:Infobox landform (diff). See also the companion subpage for test cases. |
| 30px | 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". | |
| 256px 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. |