Difference between revisions of "Template:Infobox reactor"

From blackwiki
Jump to navigation Jump to search
imported>Jonesey95
(Convert coords to new parameters. See Wikipedia:Coordinates in infoboxes.; Adding unknown parameter tracking through Category:Pages using infobox reactor with unknown parameters using Module:check for unknown parameters)
imported>Frietjes
m
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{Infobox
 
{{Infobox
 
| abovestyle = background-color:#FFDEAD
 
| abovestyle = background-color:#FFDEAD
| above      = {{ifempty | {{{name|}}} | <includeonly>{{PAGENAMEBASE}}</includeonly> }}
+
| above      = {{if empty | {{{name|}}} | <includeonly>{{PAGENAMEBASE}}</includeonly> }}
  
 
| headerstyle= background-color:#FFDEAD;
 
| headerstyle= background-color:#FFDEAD;
Line 9: Line 9:
 
| caption    = {{{caption|}}}
 
| caption    = {{{caption|}}}
  
| image2    = {{#if:{{{location_map|}}}|<!--
+
| image2    = {{#if:{{{location_map|}}}
-->{{#if:{{both|{{{lat_d|}}}|{{{long_d|}}}}}|<!--
+
    |{{Location map|{{{location_map}}}
-->{{Location map|{{{location_map}}}
+
      |coordinates={{{coordinates|}}}
|coordinates = {{{coordinates|}}}
+
      |float=center|border=infobox
|lat = {{#if:{{{lat_m|}}}{{{lat_NS|}}}| |{{{lat_d|}}} }}
+
      |width={{#if:{{{location_map_width|}}}|{{{location_map_width}}}|235}}
|long = {{#if:{{{long_m|}}}{{{long_EW|}}}| |{{{long_d|}}} }}
+
      |caption={{#if:{{{location_map_text|}}}|{{{location_map_text}}}|Location of {{{name|{{PAGENAMEBASE}}}}}}}
|lat_deg={{#if:{{{lat_m|}}}{{{lat_NS|}}}|{{{lat_d|}}}| }}
+
      }}
|lat_min={{#if:{{{lat_m|}}}{{{lat_NS|}}}|{{{lat_m|}}}| }}
+
    }}
|lat_sec={{#if:{{{lat_s|}}}{{{lat_NS|}}}|{{{lat_s|}}}| }}
 
|lat_dir={{#if:{{{lat_NS|}}}|{{{lat_NS|}}}| }}
 
|lon_deg={{#if:{{{long_m|}}}{{{long_EW|}}}|{{{long_d|}}}| }}
 
|lon_min={{#if:{{{long_m|}}}{{{long_EW|}}}|{{{long_m|}}}| }}
 
|lon_sec={{#if:{{{long_s|}}}{{{long_EW|}}}|{{{long_s|}}}| }}
 
|lon_dir={{#if:{{{long_EW|}}}|{{{long_EW|}}}| }}
 
|float=center
 
|width         ={{#if:{{{location_map_width|}}}|{{{location_map_width}}}|235}}
 
|caption       =}}{{#if:{{{location_map_text|}}}|{{{location_map_text}}}|Location of {{{name|{{PAGENAMEBASE}}}}}}}<!--
 
-->}}<!--
 
-->}}
 
  
 
| caption2 =  
 
| caption2 =  
Line 37: Line 26:
  
 
| label3 = Coordinates
 
| label3 = Coordinates
| data3  = {{#if:{{{coordinates|}}} |{{{coordinates}}}| {{#if:{{both|{{{lat_d|}}}|{{{long_d|}}}}}|[[Category:Pages using deprecated coordinates format|reactor]] {{geobox coor|{{{lat_d|}}}|{{{lat_m|}}}|{{{lat_s|}}}|{{{lat_NS|}}}|{{{long_d|}}}|{{{long_m|}}}|{{{long_s|}}}|{{{long_EW|}}}|{{#if:{{{coordinates_type|}}}|{{{coordinates_type}}}|type:landmark}}|title={{#ifeq:{{{coordinates_display}}}|inline||1}}}} }}{{#if:{{{coordinates_ref|}}}|{{{coordinates_ref}}}}} }}
+
| data3  = {{#if:{{{coordinates|}}}|{{#invoke:Coordinates|coordinsert|{{{coordinates}}}|type:landmark}}{{{coordinates_ref|}}}}}
  
 
| label4 = Type
 
| label4 = Type
Line 107: Line 96:
  
 
| below    = {{#if:{{{source|}}} | Source(s): {{{source}}} }}
 
| below    = {{#if:{{{source|}}} | Source(s): {{{source}}} }}
}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox reactor with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox reactor]] with unknown parameter "_VALUE_"|ignoreblank=y| #_fuel_assemblies | #_of_operators | #_of_staff | alt | caption | cladding_material | construct_cost | construct_length | construct_start | control_rods | cooling | coordinates | coordinates_display | coordinates_ref | coordinates_type | decommission | first_crit | fuel_per_assembly | fuel_type | image | image_size | institution | lat_d | lat_m | lat_NS | lat_s | location | location_map | location_map_text | location_map_width | long_d | long_EW | long_m | long_s | max_fast_flux | max_thermal_flux | moderator | name | power | power_therm_elec | reflector | refuel_time | rods_per_element | shutdown | source | type | upkeep_cost }}<noinclude>
+
}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox reactor with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox reactor]] with unknown parameter "_VALUE_"|ignoreblank=y| #_fuel_assemblies | #_of_operators | #_of_staff | alt | caption | cladding_material | construct_cost | construct_length | construct_start | control_rods | cooling | coordinates | coordinates_ref | decommission | first_crit | fuel_per_assembly | fuel_type | image | image_size | institution | location | location_map | location_map_text | location_map_width | max_fast_flux | max_thermal_flux | moderator | name | power | power_therm_elec | reflector | refuel_time | rods_per_element | shutdown | source | type | upkeep_cost }}<noinclude>
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 12:08, 11 October 2019

Script error: No such module "If empty".

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

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

This template is for use within articles about experimental research reactors. For a reactor in a power station, please use {{Infobox power station}}.

Usage

{{Infobox reactor
| name               = 
| image              = 
| image_size         =
| alt                =
| caption            = 
| location_map       = 
| location_map_width = 
| location_map_text  = 
| institution        = 
| location           = 
| coordinates        = {{coord}}
| coordinates_ref    =
| type               =
| power              =   
| power_therm_elec   = <!--type "thermal" or "electric", for above-->

<!--CONSTRUCTION & UPKEEP-->
| construct_cost     =
| construct_start    = <!--date construction began--> 
| construct_length   = <!--length of construction (in months or years) --> 
| first_crit         = <!--first criticality-->
| shutdown           = <!--date of shutdown-->
| decommission       = <!--date of decommission--> 
| upkeep_cost        = <!--annual upkeep/maintenance costs-->
| #_of_staff         = 
| #_of_operators     = 
| refuel_time        = <!--how often the plant needs to be refueled-->

<!--TECHNICAL INFO-->
| max_thermal_flux   = 
| max_fast_flux      = 
| fuel_type          = 
| cooling            = 
| moderator          = 
| reflector          = 
| control_rods       = 
| cladding_material  =
| #_fuel_assemblies  =
| fuel_per_assembly  = <!--number of fuel elements per assembly-->
| rods_per_element   = 
| source             = 
}}

Parameter names and descriptions

Parameter Description
Lead section
name Name of reactor
image Image filename, without File: parameter.

Animated (.gif) and media files (.ogv) are allowed, although browsers such as IE are unable to play this type of file; avoid using.

image_size Image size, if different than default of 250px.
alt Alternative text for images.
caption Caption beneath image
location_map Name of a location map file. The coordinates must be specified as well (see below).
location_map_width Avoid using: Overrides the default 235px.
location_map_text Caption beneath the location map
institution Operating institution.
location General area where located. Avoid being overly-detailed.
coordinates Optional parameter to add coordinates for the operating institution. Use {{coord}}.
coordinates_ref Use this field to add references to the coordinates.
type
power
power_therm_elec
construction_cost Total cost for the construction
construction_start Date construction began, consider using {{Start date}}.
construction_length Length of construction (in months or years)
first_crit Date the reactor first went critical
shutdown Date reactor was shut down, consider using {{End date}}.
decommission Date reactor was decommissioned, consider using {{End date}}
upkeep_cost annual upkeep/maintenance costs
#_of_staff number of staff
#_of_operators number of operators
refuel_time how often the plant needs to be refueled
Technical Information
max_thermal_flux
max_fast_flux
fuel_type
cooling
moderator
reflector
control_rods
cladding_material
#_fuel_assemblies
fuel_per_assembly number of fuel elements per assembly
rods_per_element
source

Tracking category