Difference between revisions of "Template:Infobox combat robot"

From blackwiki
Jump to navigation Jump to search
imported>Magioladitis
(++)
imported>Izkala
(Cleanup)
Line 1: Line 1:
 
<includeonly>{{Infobox
 
<includeonly>{{Infobox
|above        = {{{name}}}
+
| title      = {{{name}}}
|abovestyle  = background:#ccd;
 
  
|image       = {{#if:{{{image|}}}|[[File:{{{image|}}}|frameless|alt={{{alt|}}}}}]]}}
+
| image       = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|upright={{{image_upright|1}}}|alt={{{alt|}}}}}
|caption     = <div style="margin-left:6px;margin-right:6px;">{{{caption|}}}</div>
+
| caption     = {{{caption|}}}
|captionstyle =
 
  
|headerstyle = background:#dde;
+
| headerstyle = background: #dde;
  
|header1 = {{#if:{{{height|}}}{{{width|}}}{{{depth|}}}{{{weight|}}}{{{weight_class|}}}{{{primary_weapon|}}}{{{secondary_weapons|}}}{{{maximum_speed|}}}{{{turning_circle|}}}{{{ground_clearance|}}}{{{power_source|}}}|Statistics|}}
+
| header1     = {{#if:{{{height|}}}{{{width|}}}{{{depth|}}}{{{weight|}}}{{{weight_class|}}}{{{primary_weapon|}}}{{{secondary_weapons|}}}{{{maximum_speed|}}}{{{turning_circle|}}}{{{ground_clearance|}}}{{{power_source|}}}|Statistics|}}
  
|label2   = Height
+
| label2     = Height
|data2   = {{convinfobox|{{{height|}}}|m||ft}}
+
| data2       = {{convinfobox|{{{height|}}}|m||ft}}
  
|label3   = Width
+
| label3     = Width
|data3   = {{convinfobox|{{{width|}}}|m||ft}}
+
| data3       = {{convinfobox|{{{width|}}}|m||ft}}
  
|label4   = Depth
+
| label4     = Depth
|data4   = {{convinfobox|{{{depth|}}}|m||ft}}
+
| data4       = {{convinfobox|{{{depth|}}}|m||ft}}
  
|label5   = Weight
+
| label5     = Weight
|data5   = {{convinfobox|{{{weight|}}}|kg||lb}}
+
| data5       = {{convinfobox|{{{weight|}}}|kg||lb}}
  
|label6   = Weight class
+
| label6     = Weight class
|data6   = {{{weight_class|}}}
+
| data6       = {{{weight_class|}}}
  
|label7   = Primary weapon
+
| label7     = Primary weapon
|data7   = {{{primary_weapon|}}}
+
| data7       = {{{primary_weapon|}}}
  
|label8   = Secondary weapon(s)
+
| label8     = Secondary weapon(s)
|data8   = {{{secondary_weapons|}}}
+
| data8       = {{{secondary_weapons|}}}
  
|label9   = Maximum speed
+
| label9     = Maximum speed
|data9   = {{convinfobox|{{{maximum_speed|}}}|mph||km/h}}
+
| data9       = {{convinfobox|{{{maximum_speed|}}}|mph||km/h}}
  
|label10   = Turning circle
+
| label10     = Turning circle
|data10   = {{convinfobox|{{{turning_circle|}}}|m||ft}}
+
| data10     = {{convinfobox|{{{turning_circle|}}}|m||ft}}
  
|label11 = Ground clearance
+
| label11     = Ground clearance
|data11   = {{convinfobox|{{{ground_clearance|}}}|mm||in}}
+
| data11     = {{convinfobox|{{{ground_clearance|}}}|mm||in}}
  
|label12 = Power source
+
| label12     = Power source
|data12   = {{{power_source|}}}
+
| data12     = {{{power_source|}}}
  
|header13 = {{#if:{{{team_name|}}}{{{team_members|}}}{{{location|}}}{{{country_of_origin|}}}|Team|}}
+
| header13   = {{#if:{{{team_name|}}}{{{team_members|}}}{{{location|}}}{{{country_of_origin|}}}|Team|}}
  
|label14 = Team name
+
| label14     = Team name
|data14   = {{{team_name|}}}
+
| data14     = {{{team_name|}}}
  
|label15 = Team members
+
| label15     = Team members
|data15   = {{{team_members|}}}
+
| data15     = {{{team_members|}}}
  
|label16 = Location
+
| label16     = Location
|data16   = {{{location|}}}
+
| data16     = {{{location|}}}
  
|label17 = Country of origin
+
| label17     = Country of origin
|data17   = {{#if:{{{country_of_origin|}}}|{{flag|{{{country_of_origin|}}}}}}}
+
| data17     = {{#if:{{{country_of_origin|}}}|{{flag|{{{country_of_origin|}}}}}}}
  
| header18   = {{#if:{{{total|}}}{{{wins|}}}{{{losses|}}}{{{draws|}}}|Record|}}
+
| header18   = {{#if:{{{total|}}}{{{wins|}}}{{{losses|}}}{{{draws|}}}|Record|}}
  
| label19   = Total fights
+
| label19     = Total fights
| data19     = {{{total|}}}
+
| data19     = {{{total|}}}
  
| label20   = Wins
+
| label20     = Wins
| data20     = {{{wins|}}}
+
| data20     = {{{wins|}}}
  
| label21   = Losses
+
| label21     = Losses
| data21     = {{{losses|}}}
+
| data21     = {{{losses|}}}
  
| label22   = Draws
+
| label22     = Draws
| data22     = {{{draws|}}}
+
| data22     = {{{draws|}}}
  
| label23   = Concessions
+
| label23     = Concessions
| data23     = {{{concessions|}}}
+
| data23     = {{{concessions|}}}
  
|belowstyle = margin-top: 6px;
+
| below       = {{{notes|}}}
|below = <small>{{{notes|}}}</small>
 
 
}}</includeonly><noinclude>
 
}}</includeonly><noinclude>
{{documentation}}
+
{{Documentation}}</noinclude>
</noinclude>
 

Revision as of 00:06, 15 July 2015

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

Template:Infobox combat robot is designed to categorise appropriate information relating to combat robots in their articles on Wikipedia. It collates statistical information about the machines themselves with a section on their combat history; this information cannot be collated in other infoboxes.

The infobox should be added using the {{Infobox combat robot}} template, as shown below:

Usage

{{Infobox combat robot
| name              = 
| image             = 
| caption           = 
| alt               = 
| height            = 
| width             = 
| depth             = 
| weight            = 
| weight_class      = 
| primary_weapon    = 
| secondary_weapons = 
| maximum_speed     = 
| turning_circle    = 
| ground_clearance  = 
| power_source      = 
| team_name         = 
| team_members      = 
| location          = 
| country_of_origin = 
| total             = 
| wins              = 
| losses            = 
| draws             = 
| concessions       = 
| notes             = 
}}
  • name – The name of the robot.
  • image – The name and file extension of an image of the robot.
  • caption – An appropriate caption for the image, containing more information than just the name value.
  • alt – An appropriate alternative text for the image, per WP:ALT.
  • height – The height of the robot in metres. Do not add units - these are automatically generated by the template.
  • width – The width of the robot in metres. Do not add units - these are automatically generated by the template.
  • depth – The depth of the robot in metres. Do not add units - these are automatically generated by the template.
  • weight – The weight of the robot in kilograms. Do not add units - these are automatically generated by the template.
  • weight_class – The weight class in which the robot competes (e.g., "middleweight", "heavyweight").
  • primary_weapon – A short description of the robot's primary weapon (e.g., "flipper", "spinning disc").
  • secondary_weapons – A short description of any secondary weapons. Do not list dedicated self-righting mechanisms unless they also serve a specific offensive purpose.
  • maximum_speed – The maximum speed of the robot in miles per hour. Do not add units - these are automatically generated by the template.
  • turning_circle – The turning circle of the robot in metres. Do not add units - these are automatically generated by the template.
  • ground_clearance – The ground clearance of the robot in millimetres. Do not add units - these are automatically generated by the template. Do not add units - these are automatically generated by the template.
  • power_source – The robot's power source.
  • team_name – The name of the team that built the robot if it is substantially different from the name of the robot itself.
  • team_members – A list of the team members' names.
  • location – The location where the robot was constructed.
  • country_of_origin – The country in which the robot was constructed.
  • total – The total number of battles in which the robot has participated on televised series. Do not include side events, such as pinball/sumo tournaments.
  • wins – The number of battles the robot has won.
  • losses – The number of battles the robot has lost.
  • draws – The number of battles the robot has drawn.
  • concessions – The number of battles the robot won, but where the team later conceded victory to their opponent.
  • notes – Any other useful information.

Statistics and other information should be taken from a robot's most recent on-screen appearance in its respective competition.