Difference between revisions of "Template:Infobox Robot"

From Robowiki
Jump to navigation Jump to search
m
(It sorta kinda works now, i'll add more options later)
Line 6: Line 6:
  
 
{{If|test={{{image|}}}|then=
 
{{If|test={{{image|}}}|then=
{{!}} colspan="2" style="text-align:center;" {{!}}[[Image:{{{image}}}{{{imagesize|{{!}}300px{{!}} }}} ]]<br/>{{{caption<includeonly>|</includeonly>}}} }}
+
{{!}} colspan="2" style="text-align:center;" {{!}}[[Image:{{{image}}}{{{imagesize|{{!}}200px{{!}} }}} ]]<br/>{{{caption<includeonly>|</includeonly>}}} }}
 
<noinclude>
 
<noinclude>
 
|-
 
|-
| colspan="2" style="text-align:center;" |[[Image:{{{image}}}{{{imagesize|{{!}}300px{{!}} }}} ]]<br/>{{{caption<includeonly>|</includeonly>}}} }}
+
| colspan="2" style="text-align:center;" |[[Image:{{{image}}}{{{imagesize | {{!}}200px{{!}} }}} ]]<br/>{{{caption<includeonly>|</includeonly>}}}
 
</noinclude>
 
</noinclude>
 
|-
 
|-
Line 18: Line 18:
 
|-
 
|-
 
| style="text-align: right;" | '''Author''' || {{{author<includeonly>|</includeonly>}}}
 
| style="text-align: right;" | '''Author''' || {{{author<includeonly>|</includeonly>}}}
 +
</noinclude>
 +
|-
 +
 +
{{If|test={{{extends|}}}|then=
 +
{{!}} style="text-align: right;" {{!}}'''Extends'''{{!}}{{!}} {{{extends<includeonly>|</includeonly>}}} }}
 +
<noinclude>
 +
|-
 +
| style="text-align: right;" | '''Extends''' || {{{extends<includeonly>|</includeonly>}}}
 
</noinclude>
 
</noinclude>
 
|-
 
|-
Line 31: Line 39:
  
 
<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;">
Line 42: Line 54:
 
| caption      =  
 
| caption      =  
 
| author        =  
 
| author        =  
 +
| extends      =
 
| license      =  
 
| license      =  
 
}}</pre>
 
}}</pre>
 
</div>
 
</div>
  
 +
=== Parameters ===
 +
{| style="font-size: 80%"
 +
|-
 +
| style="width: 15%" | bgcolor || The background coloring, omit for default color
 +
|-
 +
|| name || The name of the robot, omit for page name
 +
|-
 +
|| image || an image, logo or snapshot of the robot
 +
|-
 +
|| imagesize* || In the form "Npx", resizes the image to a width of N pixels; default is 200px
 +
|-
 +
|| caption* || The name of the robot
 +
|-
 +
|| author || the creator of the robot, e.g. PEZ, Voidious, Chase-san, etc.
 +
|-
 +
|| extends || what this bot extends, be it AdvancedRobot, Robot, or TeamRobot, omit for unknown
 +
|-
 +
|| license || The license this robot's sournce is under, omit for none, or put unknown.
 +
|-
 +
| colspan="2" style="font-size: 80%" | * Only used if the {{{image}}} parameter used.
 +
|}
 +
</div>
 
== 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>

Revision as of 13:54, 12 November 2007

Infobox Robot
[[Image:{{{image}}} |200px| ]]
{{{caption}}}
Author {{{author}}}
Extends {{{extends}}}
License {{{license}}}



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          = 
| image         = 
| imagesize     = 
| caption       = 
| author        = 
| extends       = 
| license       = 
}}

Parameters

bgcolor The background coloring, omit for default color
name The name of the robot, omit for page name
image an image, logo or snapshot of the robot
imagesize* In the form "Npx", resizes the image to a width of N pixels; default is 200px
caption* The name of the robot
author the creator of the robot, e.g. PEZ, Voidious, Chase-san, etc.
extends what this bot extends, be it AdvancedRobot, Robot, or TeamRobot, omit for unknown
license The license this robot's sournce is under, omit for none, or put unknown.
* Only used if the {{{image}}} parameter used.

Other Notes

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