Difference between revisions of "Template:Infobox fault"

From blackwiki
Jump to navigation Jump to search
imported>Frietjes
(move coordinates ala template:infobox mountain)
imported>Frietjes
(rv self (accidentally increased to 300 while testing, but would support removing this))
 
(2 intermediate revisions by the same user not shown)
Line 11: Line 11:
 
| autoheaders    = yes
 
| autoheaders    = yes
  
| image          = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|{{{imagesize|}}}}}}|sizedefault=frameless|alt={{{image_alt|{{{alt|}}}}}}}}
+
| image          = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{if empty|{{{image_size|}}}|{{{imagesize|}}}}}|upright={{{image_upright|1.15}}}|sizedefault=frameless|alt={{if empty|{{{image_alt|}}}|{{{alt|}}}}}}}
| caption        = {{{image_caption|{{{caption|}}}}}}
+
| caption        = {{if empty|{{{image_caption|}}}|{{{caption|}}}}}
  
 
| image2        = {{#if:{{{pushpin_map|}}}|{{location map|{{{pushpin_map|}}}
 
| image2        = {{#if:{{{pushpin_map|}}}|{{location map|{{{pushpin_map|}}}
 
                 | border = infobox | float = center
 
                 | border = infobox | float = center
                 | map_width      = {{min|{{if empty|{{{pushpin_map_width|}}}|250}}|270}}
+
                 | width          = {{min|{{if empty|{{{pushpin_map_width|}}}|250}}|270}}
 
                 | default_width  = 250
 
                 | default_width  = 250
                 | relief        = {{{pushpin_relief|{{{relief|}}}}}}
+
                 | relief        = {{if empty|{{{pushpin_relief|}}}|{{{relief|}}}}}
 
                 | label          = {{if empty|{{{pushpin_map_label|}}}|{{{name|}}} }}
 
                 | label          = {{if empty|{{{pushpin_map_label|}}}|{{{name|}}} }}
 
                 | position      = {{if empty|{{{pushpin_label_position|}}}|none}} <!-- change default to none -->
 
                 | position      = {{if empty|{{{pushpin_label_position|}}}|none}} <!-- change default to none -->
Line 28: Line 28:
 
                 }}
 
                 }}
  
| image3      = {{#invoke:InfoboxImage|InfoboxImage|image={{{map_image|{{{image_map|}}}}}}|size={{{map_size|}}}|sizedefault=frameless|alt={{{map_alt|}}}}}
+
| image3      = {{#invoke:InfoboxImage|InfoboxImage|image={{if empty|{{{map_image|}}}|{{{image_map|}}}}}|size={{{map_size|}}}|upright={{{map_upright|1.15}}}|sizedefault=frameless|alt={{{map_alt|}}}}}
 
| caption3    = {{{map_caption|}}}
 
| caption3    = {{{map_caption|}}}
  
 
| label1      = Etymology
 
| label1      = Etymology
| data1      = {{{namedfor|{{{named_for|}}}}}}
+
| data1      = {{if empty|{{{namedfor|}}}|{{{named_for|}}}}}
  
 
| label2      = Named by
 
| label2      = Named by
| data2      = {{{namedby|{{{named_by|}}}}}}
+
| data2      = {{if empty|{{{namedby|}}}|{{{named_by|}}}}}
  
 
| label3      = Year defined
 
| label3      = Year defined
| data3      = {{{yeardef|{{{year_def|}}}}}}
+
| data3      = {{if empty|{{{yeardef|}}}|{{{year_def|}}}}}
  
 
| label4      = Location
 
| label4      = Location
Line 147: Line 147:
 
| data33      = {{{embed|}}}{{{embedded|}}}
 
| data33      = {{{embed|}}}{{{embedded|}}}
  
}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox fault with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox fault]] with unknown parameter "_VALUE_"| age | alt | alt_name | caption | cities | coordinates | coords | country | depth | dip | dip_angle | displacement | earthquakes | elevation | elevation_ft | elevation_m | elevation_ref | embed | embedded | image | image_alt | image_caption | image_map | imagesize | image_size | italic title | length | location | map_alt | map_caption | map_image | map_size | movement | name | Name | named_by | named_for | namedby | namedfor | orogeny | other_name | part_of | plate | pushpin_label_position | pushpin_map | pushpin_map_alt | pushpin_map_caption | pushpin_map_label | pushpin_map_width | pushpin_mark | pushpin_mark_size | pushpin_relief | range | region | relief | rockunit | segments | state | status | strike | topdepth | topdepth_ft | topdepth_m | topdepth_ref | type | volcanic_arc | volcanic_arc/belt | volcanic_belt | volcanic_field | width | year_def | yeardef }}<noinclude>
+
}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox fault with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox fault]] with unknown parameter "_VALUE_" | age | alt | alt_name | caption | cities | coordinates | coords | country | depth | dip | dip_angle | displacement | earthquakes | elevation | elevation_ft | elevation_m | elevation_ref | embed | embedded | image | image_alt | image_caption | image_map | image_size | image_upright | imagesize | italic title | length | location | map_alt | map_caption | map_image | map_size | map_upright | movement | name | Name | named_by | named_for | namedby | namedfor | orogeny | other_name | part_of | plate | pushpin_label_position | pushpin_map | pushpin_map_alt | pushpin_map_caption | pushpin_map_label | pushpin_map_width | pushpin_mark | pushpin_mark_size | pushpin_relief | range | region | relief | rockunit | segments | state | status | strike | topdepth | topdepth_ft | topdepth_m | topdepth_ref | type | volcanic_arc | volcanic_arc/belt | volcanic_belt | volcanic_field | width | year_def | yeardef }}<noinclude>
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 16:39, 9 December 2020

Script error: No such module "If empty".
Script error: No such module "If empty".
Script error: No such module "If empty".
EtymologyScript error: No such module "If empty".
Named byScript error: No such module "If empty".
Year definedScript error: No such module "If empty".
CoordinatesScript error: No such module "If empty".

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

Template documentation[view] [edit] [history] [purge]

This template formats a right-side infobox to be used in articles about faults and fault zones.

Usage

  1. redirect Template:Parameter names example
{{Infobox fault
| name              = <!-- name of the fault (system) or fault zone -->
| other_name        = <!-- alternative or local name -->
| namedfor          = <!-- etymology of the fault (zone) name -->
| namedby           = <!-- author of defining paper -->
| yeardef           = <!-- year of definition -->
| image             = <!-- image/photo of the fault (zone) -->
| image_size        = <!-- width in px, default 250 -->
| image_alt         = 
| image_caption     = <!-- caption for the image -->
| pushpin_map       = <!-- pusphpin map, using {{Location map}} -->
| pushpin_map_width = <!-- width in px, default 250 -->
| pushpin_map_caption = <!-- caption for the location map -->
| pushpin_map_alt   = 
| pushpin_relief    = 
| pushpin_map_label = 
| pushpin_label_position = 
| pushpin_mark      = 
| pushpin_mark_size = 
<!----Location---->
| location          =
| country           = <!-- or |countries = -->
| region            = <!-- geographical region;  -->
| state             = <!-- lower level geographical area; province, county, etc. -->
| cities            = <!-- nearby cities/towns --> 
| coordinates       = <!-- {{coord|d|mm|ss|N/S|d|mm|ss|W/E|display=inline,title}}. Supply approx coords of the fault trace midpoint -->
<!----Properties---->
| elevation_m       = <!-- for surface faults, elevation of outcrop/main location in metres -->
| elevation_ft      = <!-- for surface faults, elevation of outcrop/main location in feet -->
| elevation_ref     = 
| topdepth_m        = <!-- for sea or subsurface faults, depth of outcrop/main location in metres -->
| topdepth_ft       = <!-- for sea or subsurface faults, depth of outcrop/main location in feet -->
| topdepth_ref      = 
| range             = <!-- for faults and fault zones in mountain ranges, be as specific as possible, e.g. [[Cordillera Oriental (Colombia)|Eastern Ranges]], instead of [[Andes]] -->
| part_of           = <!-- when part of a larger system, e.g. faults part of a fault zone -->
| segments          = <!-- for segments of a fault or fault system -->
| length            = <!-- (max/average) length of the fault or fault zone, use {{convert|x|km|mi|abbr=on}} -->
| width             = <!-- (max/average) width of the fault or fault zone, use {{convert|x|km|mi|abbr=on}} -->
| depth             = <!-- (max/average) depth of the fault or fault zone, use {{convert|x|km|mi|abbr=on}} -->
| strike            = <!-- (max/average) strike orientation, e.g. NE-SW or 045 -->
| dip               = <!-- (max/average) dip direction, e.g. NW or 315 -->
| dip_angle         = <!-- (max/average) angle of dip in degrees (0-90) -->
| displacement      = <!-- (max/average) displacement of the fault -->
| plate             = <!-- tectonic plate(s) where the fault is active, use | plate1 = ; | plate2 = ; | plate3 = for more plates -->
| status            = <!-- active or inactive -->
| earthquakes       = <!-- notable earthquakes related to the fault -->
| type              = <!-- 1) normal fault, 2) reverse/thrust fault, 3) oblique fault, 4) strike slip fault -->
| movement          = <!-- dextral/sinistral for strike slip faults, extensional/compressional for 1/3 or 2/3 respectively -->
| rockunit          = <!-- rock unit(s) surrounding the fault, use | rockunit1 = ; | rockunit2 = ; | rockunit3 = ; | rockunit4 = for more rock units -->
| age               = <!-- age span of fault formation/activity -->
| orogeny           = <!-- orogeny the fault movement belongs to, e.g. [[Andean orogeny]] or [[Alpine orogeny]] -->
| volcanic_arc/belt = <!-- volcanic activity related to the fault -->
| map_image         = <!-- for maps or other extra images of the fault (system) -->
| map_caption       = <!-- the caption for this image -->
| embed             = <!-- for other infoboxes to embed (earthquakes, rock units, oilfields, surface features, etc.) -->
}}

Empty full infobox

{{Infobox fault
| name              = 
| other_name        = 
| namedfor          = 
| namedby           = 
| yeardef           = 
| image             = 
| image_size        = 
| image_alt         = 
| image_caption     = 
| pushpin_map       = 
| pushpin_map_width = 
| pushpin_map_caption = 
| pushpin_map_alt   = 
| pushpin_relief    = 
| pushpin_map_label = 
| pushpin_label_position = 
| pushpin_mark      = 
| pushpin_mark_size = 
| location          =
| country           = 
| region            = 
| state             = 
| cities            = 
| coordinates       = 
| elevation         = 
| elevation_m       = 
| elevation_ft      = 
| elevation_ref     = 
| topdepth_m        = 
| topdepth_ft       = 
| topdepth_ref      = 
| range             = 
| part_of           = 
| segments          = 
| length            = 
| width             = 
| depth             = 
| strike            = 
| dip               = 
| dip_angle         = 
| displacement      = 
| plate             = 
| status            = 
| earthquakes       = 
| type              = 
| movement          = 
| rockunit          = 
| age               = 
| orogeny           = 
| volcanic_arc/belt = 
| map_image         = 
| map_caption       = 
| embed             = 
}}

Example

Script error: No such module "If empty".
Script error: No such module "If empty".
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.
Script error: No such module "If empty".
Topographic map of northern Colombia showing the fault
EtymologyScript error: No such module "If empty".
Named byScript error: No such module "If empty".
Year definedScript error: No such module "If empty".
CoordinatesScript error: No such module "If empty".
Country Colombia
RegionCaribbean, Andean
StateMagdalena, Cesar, Norte de Santander, Santander
CitiesSanta Marta, El Paso, Bucaramanga, Floridablanca, Piedecuesta
Characteristics
Elevation1–1,500 m (3.3–4,921.3 ft)
RangeSierra Nevada de Santa Marta
Eastern Ranges
 Andes
Part ofAndean faults
SegmentsSanta Marta, Algarrobo, Bucaramanga Faults
Length674 km (419 mi)
Strike341 ± 23 (NNW-SSE)
Displacement110 km (68 mi)
Tectonics
PlateSouth American Plate
StatusActive
EarthquakesPre-Columbian era (~1020 AD)
TypeStrike-slip fault
MovementSinistral
Rock unitsGaira Schist, Bucaramanga Gneiss
AgeNeogene-Holocene
OrogenyAndean
[[Category:Infobox templates|Template:Remove first word]]
{{Infobox fault
| name              = Bucaramanga-Santa Marta Fault
| other_name        = Bucaramanga-Santa Marta Fault System<br>''(Sistema de) Falla(s) de Bucaramanga-Santa Marta''
| named_for         = [[Bucaramanga]], [[Santa Marta]]
| named_by          = 
| year_def          = 
| image             = Bucaramanga, Colombia from space.JPG
| image_alt         = 
| caption           = View of the Bucaramanga Fault along Bucaramanga
| map_image         = Topographic Map of the Cesar-Ranchería Basin - Colombia.jpg
| map_caption       = Topographic map of northern Colombia showing the fault
| map_alt           = 
| pushpin_map       = Colombia
| pushpin_map_width = 
| pushpin_map_caption = Location of the fault in Colombia
| pushpin_map_alt   = 
| pushpin_relief    = 1
| country           = {{COL}}
| region            = [[Caribbean natural region|Caribbean]], [[Andean natural region|Andean]]
| state             = [[Magdalena Department|Magdalena]], [[Cesar Department|Cesar]], [[Norte de Santander]], [[Santander Department|Santander]]
| cities            = [[Santa Marta]], [[El Paso, Cesar|El Paso]], [[Bucaramanga]], [[Floridablanca, Santander|Floridablanca]], [[Piedecuesta]]
| coordinates       = {{coord|7|08|N|73|00|W|type:landmark|display=inline,title}}
| elevation         = {{convert|1|-|1500|m|ft|abbr=on}}
| elevation_ft      = 
| elevation_ref     = 
| topdepth_m        = 
| topdepth_ft       = 
| topdepth_ref      = 
| range             = [[Sierra Nevada de Santa Marta]]<br>[[Cordillera Oriental (Colombia)|Eastern Ranges]]<br> [[Andes]]
| part_of           = Andean faults
| segments          = Santa Marta, Algarrobo, Bucaramanga Faults
| length            = {{convert|674|km|mi|abbr=on}}
| width             = 
| depth             = 
| strike            = 341 ± 23 (NNW-SSE)
| dip               = 
| dip_angle         = 
| displacement      = {{convert|110|km|mi|abbr=on}}
| plate             = [[South American Plate]]
| status            = [[Active fault|Active]]
| earthquakes       = [[Pre-Columbian era]]<!--NO TYPO; pre-Columbian refers to "before ColUmbus", not "before ColOmbia"!!! Don't edit this; it's not a mistake.--> (~1020 AD)
| type              = [[Strike-slip fault]]
| movement          = Sinistral
| rockunit          = [[Gaira Schist]], [[Bucaramanga Gneiss]]
| age               = [[Neogene]]-[[Holocene]]
| orogeny           = [[Andean orogeny|Andean]]
| volcanic_arc/belt = 
| embed             = 
}}

Tracking category

See also