Difference between revisions of "Template:Infobox Robot"

From Robowiki
Jump to navigation Jump to search
m
m (Use Template:Bot Categorizer instead)
 
(39 intermediate revisions by 8 users not shown)
Line 1: Line 1:
{| style="text-align: justify; font-size: 70%; float: right; clear: right; border: 1px solid #aaa; width:{{{box_width|18em}}};" cellspacing="5"
+
{| class="robot-infobox" style="text-align: left; font-size: 70%; float: right; clear: right; border: 1px solid #aaa; width:{{{box_width|20em}}}; margin: 0em 0em 0.5em 0.5em; background: white;" cellspacing="5"
 
|-
 
|-
 
|colspan="2" style="padding: 0; text-align:center; font-size: larger; background-color:{{{bgcolour|#c0c0c0}}}; color:#000000;" | '''{{{name|{{PAGENAME}}}}}'''
 
|colspan="2" style="padding: 0; text-align:center; font-size: larger; background-color:{{{bgcolour|#c0c0c0}}}; color:#000000;" | '''{{{name|{{PAGENAME}}}}}'''
 
|-
 
|-
| colspan="2" style="text-align:center;" | [[Image:{{{image}}}{{{imagesize|{{!}}300px{{!}} }}} ]]<br>{{{caption<includeonly>|</includeonly>}}}
+
{{If|test={{{altimage|}}}|then=
 +
{{!}} colspan="2" style="vertical-align: top; text-align: center;" {{!}}{{{altimage<includeonly>|</includeonly>}}} }}
 
|-
 
|-
| {{If|test={{{author|}}}|then=a|else=b}}
+
{{If|test={{{image|}}}|then=
 +
{{!}} colspan="2" style="text-align:center;" {{!}}[[Image:{{{image}}}|{{{imagesize|200px}}}]]<br/>{{{caption<includeonly>|</includeonly>}}} }}
 +
<noinclude>
 +
|-
 +
| colspan="2" style="text-align:center;" |[[Image:{{{image}}}|{{{imagesize|200px}}} ]]<br/>{{{caption<includeonly>|</includeonly>}}}
 +
</noinclude>
 +
|-
 +
 
 +
{{If|test={{{author|}}}|then=
 +
{{!}} style="vertical-align: top; text-align: right;" {{!}}'''[[:Category:Bot Authors|Author(s)]]'''{{!}}{{!}} {{{author<includeonly>|</includeonly>}}} }}
 +
<noinclude>
 +
|-
 +
| style="text-align: right;" | '''[[:Category:Bot Authors|Author(s)]]''' || {{{author<includeonly>|</includeonly>}}}
 +
</noinclude>
 +
|-
 +
 
 +
{{If|test={{{extends|}}}|then=
 +
{{!}} style="vertical-align: top; text-align: right;" {{!}}'''Extends'''{{!}}{{!}} {{{extends<includeonly>|</includeonly>}}} }}
 +
<noinclude>
 +
|-
 +
| style="text-align: right;" | '''Extends''' || {{{extends<includeonly>|</includeonly>}}}
 +
</noinclude>
 +
|-
 +
 
 +
{{If|test={{{targeting|}}}|then=
 +
{{!}} style="vertical-align: top; text-align: right;" {{!}}'''[[:Category:Targeting|Targeting]]'''{{!}}{{!}} {{{targeting<includeonly>|</includeonly>}}} }}
 +
<noinclude>
 +
|-
 +
| style="text-align: right;" | '''[[:Category:Targeting|Targeting]]''' || {{{targeting<includeonly>|</includeonly>}}}
 +
</noinclude>
 +
|-
 +
 
 +
{{If|test={{{movement|}}}|then=
 +
{{!}} style="vertical-align: top; text-align: right;" {{!}}'''[[:Category:Movement|Movement]]'''{{!}}{{!}} {{{movement<includeonly>|</includeonly>}}} }}
 +
<noinclude>
 
|-
 
|-
| colspan="2" style="vertical-align: top; font-size: smaller;" | {{{footnotes|}}}
+
| style="text-align: right;" | '''[[:Category:Movement|Movement]]''' || {{{movement<includeonly>|</includeonly>}}}
|}
+
</noinclude>
 +
|-
 +
 
 +
{{If|test={{{released|}}}|then=
 +
{{!}} style="vertical-align: top; text-align: right;" {{!}}'''Released'''{{!}}{{!}} {{{released<includeonly>|</includeonly>}}} }}
 +
<noinclude>
 +
|-
 +
| style="text-align: right;" | '''Released''' || {{{released<includeonly>|</includeonly>}}}
 +
</noinclude>
 +
|-
 +
 
 +
{{If|test={{{best_rating|}}}|then=
 +
{{!}} style="vertical-align: top; text-align: right;" {{!}}'''Best&nbsp;Rating'''{{!}}{{!}} {{{best_rating<includeonly>|</includeonly>}}} }}
 +
<noinclude>
 +
|-
 +
| style="text-align: right;" | '''Best Rating''' || {{{best_rating<includeonly>|</includeonly>}}}
 +
</noinclude>
 +
|-
 +
 
 +
{{If|test={{{rating|}}}|then=
 +
{{!}} style="vertical-align: top; text-align: right;" {{!}}'''Current&nbsp;Rating'''{{!}}{{!}} {{{rating<includeonly>|</includeonly>}}} }}
 +
<noinclude>
 +
|-
 +
| style="text-align: right;" | '''Current Rating''' || {{{rating<includeonly>|</includeonly>}}}
 +
</noinclude>
 +
|-
 +
 
 +
{{If|test={{{current_version|}}}|then=
 +
{{!}} style="vertical-align: top; text-align: right;" {{!}}'''Current&nbsp;Version'''{{!}}{{!}} {{{current_version<includeonly>|</includeonly>}}} }}
 +
<noinclude>
 +
|-
 +
| style="text-align: right;" | '''Current Version''' || {{{current_version<includeonly>|</includeonly>}}}
 +
</noinclude>
 +
|-
 +
 
 +
{{If|test={{{codesize|}}}|then=
 +
{{!}} style="vertical-align: top; text-align: right;" {{!}}'''[[Code Size|Code&nbsp;Size]]'''{{!}}{{!}} {{{codesize<includeonly>|</includeonly>}}} }}
 +
<noinclude>
 +
|-
 +
| style="text-align: right;" | '''[[Code Size]]''' || {{{codesize<includeonly>|</includeonly>}}}
 +
</noinclude>
 +
|-
 +
 
 +
{{If|test={{{license|}}}|then=
 +
{{!}} style="vertical-align: top; text-align: right;" {{!}}'''[[Licenses|Code&nbsp;License]]'''{{!}}{{!}} {{{license<includeonly>|</includeonly>}}} }}
 +
<noinclude>
 +
|-
 +
| style="text-align: right;" | '''[[Licenses|License]]''' || {{{license<includeonly>|</includeonly>}}}
 +
</noinclude>
 +
|-
 +
 
 +
{{If|test={{{download_link|}}}|then=
 +
{{!}} colspan="2" style="font-size: larger; text-align: center;" {{!}}'''[{{{download_link<includeonly>|</includeonly>}}} Download]''' }}
 
<noinclude>
 
<noinclude>
 +
|-
 +
| colspan="2" style="font-size: larger; text-align: center;" |'''[{{{download_link<includeonly>|</includeonly>}}} Download]'''
 +
</noinclude>
 +
|-
 +
 +
{{If|test={{{source_link|}}}|then=
 +
{{!}} colspan="2" style="font-size: larger; text-align: center;" {{!}}'''[{{{source_link<includeonly>|</includeonly>}}} Source]''' }}
 +
<noinclude>
 +
|-
 +
| colspan="2" style="font-size: larger; text-align: center;" |'''[{{{source_link<includeonly>|</includeonly>}}} Source]'''
 +
</noinclude>
 +
|-
 +
 +
{{If|test={{{no_categories|}}}|then={{!}} colspan="2" style="text-align: center;" {{!}} ''This is an example!'' }}
 +
|}<!--            --Categorizers--
 +
--><includeonly><!--
 +
-->{{if|test={{{no_categories|}}}|then=[[Category:Bots]]|else={{Template:Bot Categorizer|isOneOnOne={{{isOneOnOne}}}|isMelee={{{isMelee}}}|isOpenSource={{{isOpenSource}}}|extends={{{extends}}}}}}}<!--
 +
--><!--
 +
--></includeonly><!--
 +
--><noinclude>
 +
 +
  
 
<br style="clear:both" />
 
<br style="clear:both" />
== Usage ==
+
<div style="padding: 0px 5px 0px 5px; border: 1px solid #aaa; margin-bottom: 1ex; background-color: #EFE">
The infobox may be added by pasting the template as shown below into an article. Only the ''name'' and ''birthdate'' parameters are required.
+
<div style="line-height: 0px; font-size: 140%; border-bottom: 1px solid black; padding: 0 0 0 0; margin-bottom: 0 0 0 0;">
 +
'''Documentation'''
 +
</div>
 +
=== Usage ===
 +
The infobox may be added by pasting the template as shown below into an article. None of the Parameters are required as of yet.
  
 
<div style="width:250px; background:#dddddd; border:1px solid black; padding:0.5em 1em 0.5em 1em;">
 
<div style="width:250px; background:#dddddd; border:1px solid black; padding:0.5em 1em 0.5em 1em;">
 
<pre>{{Infobox Robot
 
<pre>{{Infobox Robot
| bgcolour     =  
+
| bgcolour       =  
| name         =  
+
| name           =
| image         =  
+
| altimage        =  
| imagesize     =  
+
| image           =  
| caption      =  
+
| imagesize       =  
| author       =  
+
| caption         =
| license       =  
+
| author          =
| targeting     =  
+
| extends        =
 +
| targeting       =  
 +
| movement        =
 +
| released        =
 +
| best_rating    =
 +
| rating          =
 +
| current_version =
 +
| codesize       =
 +
| license         =
 +
| download_link  =  
 +
| source_link     =  
 +
| isOneOnOne      = true/false
 +
| isMelee        = true/false
 +
| isOpenSource    = true/false
 
}}</pre>
 
}}</pre>
 
</div>
 
</div>
 +
 +
=== Parameters ===
 +
{| style="font-size: 80%; border-collapse: collapse; border-left: 10px solid white; border-right: 10px solid white; outline: 1px solid #aaa; margin-bottom: 5px;"
 +
|-
 +
| style="width: 18%" | bgcolor || The background coloring, omit for default color
 +
|-
 +
|| name || The name of the robot, omit for page name
 +
|-
 +
|| altimage || generally not used, only here temporarily for offsite image linking, optional
 +
|-
 +
|| image || an image, logo or snapshot of the robot, optional
 +
|-
 +
|| imagesize* || In the form "Npx", resizes the image to a width of N pixels; default is 200px, optional
 +
|-
 +
|| caption* || A caption describing the image, optional
 +
|-
 +
|| author || the creator(s) of the robot, e.g. PEZ, Voidious, Chase-san, etc. optional
 +
|-
 +
|| extends || what this bot extends, be it AdvancedRobot, Robot, or TeamRobot, optional
 +
|-
 +
|| targeting || The type of targeting the bot uses, optional
 +
|-
 +
|| movement || The type of movement the bot uses, optional
 +
|-
 +
|| released || The date the bot was originally released, optional
 +
|-
 +
|| best_rating || The best rating the bot has obtained in the rumble, optional
 +
|-
 +
|| rating || The current rating the bot has in the rumble, optional
 +
|-
 +
|| current_version || The current version of the robot, optional
 +
|-
 +
|| license || The license this robot's source is under, optional
 +
|-
 +
|| download_link || the absolute link to your robots jar, optional
 +
|-
 +
|| source_link || the absolute link to the source of your robot, optional
 +
|-
 +
| colspan="2" style="font-size: 80%" | * Only used if the {{{image}}} parameter is used.
 +
|}
 +
</div>
 +
 +
{{Infobox Robot
 +
| name            = Dookious
 +
| author          = Voidious
 +
| extends        = AdvancedRobot
 +
| targeting      = GuessFactorTargeting
 +
| movement        = WaveSurfing
 +
| released        = 2006
 +
| best_rating    = 1.571 / 2131 (#1)
 +
| current_version = 1.58
 +
| license        = [[RWPCL]]
 +
| download_link  = http://www.dijitari.com/void/robocode/voidious.Dookious_1.58.jar
 +
| no_categories  = true
 +
}}
 +
  
 
== Other Notes ==
 
== Other Notes ==
 
Since I cannot access the common.css stuff, I put the style info right into the table T_T. [[MediaWiki:Common.css]]
 
Since I cannot access the common.css stuff, I put the style info right into the table T_T. [[MediaWiki:Common.css]]
 
</noinclude>
 
</noinclude>

Latest revision as of 10:14, 14 September 2017

Infobox Robot
[[Image:{{{image}}}|200px ]]
{{{caption}}}
Author(s) {{{author}}}
Extends {{{extends}}}
Targeting {{{targeting}}}
Movement {{{movement}}}
Released {{{released}}}
Best Rating {{{best_rating}}}
Current Rating {{{rating}}}
Current Version {{{current_version}}}
Code Size {{{codesize}}}
License {{{license}}}
[{{{download_link}}} Download]
[{{{source_link}}} Source]



Documentation

Usage

The infobox may be added by pasting the template as shown below into an article. None of the Parameters are required as of yet.

{{Infobox Robot
| bgcolour        = 
| name            = 
| altimage        = 
| image           = 
| imagesize       = 
| caption         = 
| author          = 
| extends         = 
| targeting       = 
| movement        = 
| released        = 
| best_rating     = 
| rating          = 
| current_version = 
| codesize        =
| license         = 
| download_link   = 
| source_link     = 
| isOneOnOne      = true/false
| isMelee         = true/false
| isOpenSource    = true/false
}}

Parameters

bgcolor The background coloring, omit for default color
name The name of the robot, omit for page name
altimage generally not used, only here temporarily for offsite image linking, optional
image an image, logo or snapshot of the robot, optional
imagesize* In the form "Npx", resizes the image to a width of N pixels; default is 200px, optional
caption* A caption describing the image, optional
author the creator(s) of the robot, e.g. PEZ, Voidious, Chase-san, etc. optional
extends what this bot extends, be it AdvancedRobot, Robot, or TeamRobot, optional
targeting The type of targeting the bot uses, optional
movement The type of movement the bot uses, optional
released The date the bot was originally released, optional
best_rating The best rating the bot has obtained in the rumble, optional
rating The current rating the bot has in the rumble, optional
current_version The current version of the robot, optional
license The license this robot's source is under, optional
download_link the absolute link to your robots jar, optional
source_link the absolute link to the source of your robot, optional
* Only used if the {{{image}}} parameter is used.
Dookious
Author(s) Voidious
Extends AdvancedRobot
Targeting GuessFactorTargeting
Movement WaveSurfing
Released 2006
Best Rating 1.571 / 2131 (#1)
Current Version 1.58
Code License RWPCL
Download
This is an example!


Other Notes

Since I cannot access the common.css stuff, I put the style info right into the table T_T. MediaWiki:Common.css