You are an anonymous user who can't edit RoboWiki.
Log in if you already have an account. If you would like to become an editor for the wiki, request an account.

Difference between revisions of "Template:RobotInfoBox"

From RoboWiki
Jump to navigation Jump to search
(Change SMW so it shows the values.)
(Add switch for competition.)
 
Line 27: Line 27:
 
|-
 
|-
 
! Competition
 
! Competition
| [[robot for competition::{{{Competition|}}}]]
+
|
 +
{{#switch: {{{Competition|}}}
 +
| FRC = [[FIRST Robotics Competition]]
 +
| FTC = [[FIRST Tech Challenge]]
 +
| VRC = [[VEX Robotics Competition]]
 +
| #default = Invalid Competition Input
 +
}}
 
|}
 
|}
 +
 +
{{#set:robot for competition={{{Competition|}}}}}
 
</includeonly>
 
</includeonly>

Latest revision as of 11:47, 28 April 2010

It should be called in the following format:

{{RobotInfoBox
|Name=
|Image=
|Year=
|Competition=
}}

This template adds a info-box style div to an article. The info-box will contain any of the information listed above along with taking care of any of the SMW entries for the properties that exist.

Note: Competition has valid values of "FRC", "FTC" or "VEX".