Difference between revisions of "Template:Infobox landform/sandbox"
Jump to navigation
Jump to search
imported>Frietjes |
imported>Frietjes m |
||
| (2 intermediate revisions by one other user not shown) | |||
| 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 = {{ | + | |above = {{{name|{{PAGENAMEBASE}}}}} |
| − | |subheader = {{ | + | <!-- 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 = {{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 17: | Line 22: | ||
| width = {{{map_width|}}} | | width = {{{map_width|}}} | ||
| default_width = 220 | | default_width = 220 | ||
| − | | relief = {{{relief|}}} | + | | max_width = 256 |
| − | | label = {{ | + | | relief = {{{map_relief|{{{relief|}}}}}} |
| − | | position = {{ | + | | label = {{if empty|{{{label|}}}|{{{name|}}} }} |
| + | | 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=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 33: | Line 39: | ||
|label2 = [[Ordnance Survey National Grid|OS grid]] | |label2 = [[Ordnance Survey National Grid|OS grid]] | ||
| − | |data2 = {{#if:{{{grid_ref_UK|}}}|{{gbm4ibx|{{{grid_ref_UK|}}}}}{{{grid_ref|}}}}} | + | |data2 = {{#if:{{{grid_ref_UK|}}}|{{{grid_ref_UK}}}{{{grid_ref|}}}}} <!--{{#if:{{{grid_ref_UK|}}}|{{gbm4ibx|{{{grid_ref_UK|}}}}}{{{grid_ref|}}}}}--> |
|label3 = [[Irish grid reference system|OSI/OSNI grid]] | |label3 = [[Irish grid reference system|OSI/OSNI grid]] | ||
| − | |data3 = {{#if:{{{grid_ref_Ireland|}}}|{{iem4ibx|{{{grid_ref_Ireland|}}}}}{{{grid_ref|}}}}} | + | |data3 = {{#if:{{{grid_ref_Ireland|}}}|{{{grid_ref_Ireland}}}{{{grid_ref|}}}}} <!--{{#if:{{{grid_ref_Ireland|}}}|{{iem4ibx|{{{grid_ref_Ireland|}}}}}{{{grid_ref|}}}}}--> |
|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 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 88: | Line 94: | ||
|label19 = Geology | |label19 = Geology | ||
| − | |data19 = {{ | + | |data19 = {{if empty|{{{geology|}}}|{{{type|}}}}} |
|label20 = [[Geologic time scale|Age]] | |label20 = [[Geologic time scale|Age]] | ||
| Line 114: | 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]] | ||
| 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}} | ||
Latest revision as of 12:39, 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". |
| 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. |