User:Brandished/Tables: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(moved tables to own page)
 
m (Unicodifying, replaced: See Also → See also, [[Image: → [[File: (43))
 
(21 intermediate revisions by one other user not shown)
Line 1: Line 1:
== Table Layout Tests ==
{| align=right
|-
| __TOC__
|}
 
== Icon image list ==
 
{| border=1 cellpadding="2" cellspacing="1"
|- align=left
| Image:Io11.png || [[File:Io11.png]]
|-
| Image:Io12.png || [[File:Io12.png]]
|-
| Image:Io21.png || [[File:Io21.png]]
|-
| Image:Io22.png || [[File:Io22.png]]
|-
| Image:Boxchk.png || [[File:Boxchk.png]]
|-
| Image:Boxunchk.png || [[File:Boxunchk.png]]
|-
| Image:Checkbox-on.png || [[File:Checkbox-on.png]]
|-
| Image:Checkbox-off.png || [[File:Checkbox-off.png]]
|}{{clr}}
 
== Class Info Tab Table Layout Test ==
 
=== Reference Image ===
[[File:Ref_classinfo_pic.gif]]


=== Sample Outputs Table Reference ===
=== Sample Class Info Table 1 ===
{| border=1 cellpadding="2" cellspacing="1"
|- align=left style="background:#DCDCDC; color:black"
! Property Name || Value
|- style="background:#C7C9FB; color:black"
| Name
| math_kaboom
|-
| Start Disabled || No
|-
| Initial Value || 0
|-
| Minimum Legal Value || 0
|- style="background:#C7C9FB; color:black"<!--doesn't work in this version of mediawiki:style="background:#C7C9FB"-->
| Maximum Legal Value || 2
|}


[[image:Ref_output_pic.gif]]
<pre><nowiki>
{| border=1 cellpadding="2" cellspacing="1"
|- align=left style="background:#DCDCDC; color:black"
! Property Name || Value
|- style="background:#C7C9FB; color:black"
| Name
| math_kaboom
|-
| Start Disabled || No
|-
| Initial Value || 0
|-
| Minimum Legal Value || 0
|- style="background:#C7C9FB; color:black"
| Maximum Legal Value || 2
|}
</nowiki></pre>


<!--
row color override doesn't work, but align does
this has been corrected in the latest version of mediawiki
-->


=== Sample Outputs Table 1a ===
== Output Tab Table Layout Test ==


HTML:
=== Reference Image ===
<table>


<tr>
[[File:Ref_output_pic.gif]]
<th></th>
<th>My Output ></th>
<th>Target Entity</th>
<th>Target Input</th>
<th>Parameter</th>
<th>Delay</th>
<th>Only Once</th>
</tr>


<tr>
<td>[[Image:Io11.png]]</td>
<td>OnCapture</td>
<td>Math_Blue</td>
<td>Add</td>
<td>1</td>
<td>0.00</td>
<td>No</td>
</tr>


<tr>
<td>[[Image:Io11.png]]</td>
<td>OnCapture</td>
<td>CapZoneBlue2</td>
<td>Disable</td>
<td> - </td>
<td>0.00</td>
<td>No</td>
</tr>


</table>
=== Sample Outputs Table 1 ===


WiKi:
{| border=1 cellpadding="2" cellspacing="1"
{| cellpadding="2" cellspacing="1"
|- align=left style="background:#DCDCDC; color:black"
|-
! &nbsp;
!
! My Output >
! My Output >
! Target Entity
! Target Entity
Line 53: Line 89:
! Delay
! Delay
! Only Once
! Only Once
|-
|- align=left
| [[Image:Io11.png]]  
| [[File:Io11.png]]  
| OnCapture
| OnCapture
| Math_Blue
| Math_Blue
Line 62: Line 98:
| No
| No
|-
|-
| [[Image:Io11.png]]  
| [[File:Io11.png]]  
| OnCapture
| OnCapture
| CapZoneBlue2
| CapZoneBlue2
| Disable
| Disable
| -
| &nbsp;
| 0.00
| 0.00
| No
| No
|}
|}


<pre><nowiki>
{| border=1 cellpadding="2" cellspacing="1"
|- align=left style="background:#DCDCDC; color:black"
! &amp;nbsp; !! My Output > !! Target Entity !! Target Input !! Parameter !! Delay !! Only Once
|- align=left
| [[File:Io11.png]] || OnCapture || Math_Blue || Add || 1 || 0.00 || No
|-
| [[File:Io11.png]] || OnCapture || CapZoneBlue2 || Disable || &amp;nbsp; || 0.00 || No
|}
</nowiki></pre>


=== Sample Outputs Table 1b ===
OR
 
HTML:
 
<table border="1" cellspacing="1" cellpadding="2">
 
<tr>
<th></th>
<th>My Output ></th>
<th>Target Entity</th>
<th>Target Input</th>
<th>Parameter</th>
<th>Delay</th>
<th>Only Once</th>
</tr>
 
<tr>
<td>[[Image:Io11.png]]</td>
<td>OnCapture</td>
<td>Math_Blue</td>
<td>Add</td>
<td>1</td>
<td>0.00</td>
<td>No</td>
</tr>
 
<tr>
<td>[[Image:Io11.png]]</td>
<td>OnCapture</td>
<td>CapZoneBlue2</td>
<td>Disable</td>
<td> - </td>
<td>0.00</td>
<td>No</td>
</tr>
 
</table>
 
 
WiKi:


<pre><nowiki>
{| border=1 cellpadding="2" cellspacing="1"
{| border=1 cellpadding="2" cellspacing="1"
|-
|- align=left style="background:#DCDCDC; color:black"
!
! &amp;nbsp;
! My Output >
! My Output >
! Target Entity
! Target Entity
Line 123: Line 131:
! Only Once
! Only Once
|-
|-
| [[Image:Io11.png]]  
 
| [[File:Io11.png]]  
| OnCapture
| OnCapture
| Math_Blue
| Math_Blue
Line 131: Line 140:
| No
| No
|-
|-
| [[Image:Io11.png]]  
| [[File:Io11.png]]  
| OnCapture
| OnCapture
| CapZoneBlue2
| CapZoneBlue2
| Disable
| Disable
| -
| &amp;nbsp;
| 0.00
| 0.00
| No
| No
|}
|}
</nowiki></pre>


=== Sample Outputs Table 2 ===


{| border=1 cellpadding="2" cellspacing="1"
|- align=left
! My output named
| OnCapture
|- align=left
! Target entities named
| Math_Blue
|- align=left
! Via this input
| Add
|- align=left
! With a parameter override of
| 1
|- align=left
! After a delay in seconds of
| 0.00
|- align=left
! Fire once only
| [[File:Boxunchk.png]]
|}


<pre><nowiki>
{| border=1 cellpadding="2" cellspacing="1"
{| border=1 cellpadding="2" cellspacing="1"
|-
|- align=left
| Image:Io11.png || [[Image:Io11.png]]
! My output named
|-
| OnCapture
| Image:Io12.png || [[Image:Io12.png]]
|- align=left
|-
! Target entities named
| Image:Io21.png || [[Image:Io21.png]]
| Math_Blue
|-
|- align=left
| Image:Io22.png || [[Image:Io22.png]]
! Via this input
| Add
|- align=left
! With a parameter override of
| 1
|- align=left
! After a delay in seconds of
| 0.00
|- align=left
! Fire once only
| [[File:Boxunchk.png]]
|}
|}
</nowiki></pre>


== Flags Tab Table Layout Test ==


=== Sample Outputs Table 2a ===
=== Reference Image ===
[[File:Ref_flags_pic.gif]]


<table>
=== Sample Flags Table (List Format) ===


<tr>
{| border ="1" cellpadding="2"
<th align=left>My output named</th>
|
<td>OnCapture</td>
:[[File:Boxchk.png]] Clients
<td>OnCapture</td>
:[[File:Boxunchk.png]] NPCs
</tr>
:[[File:Boxunchk.png]] Pushables
:[[File:Boxunchk.png]] Physics Objects
:[[File:Boxunchk.png]] Only player ally NPCs
:[[File:Boxunchk.png]] Only clients in vehicles
:[[File:Boxunchk.png]] Everything (not including physics debris)
:[[File:Boxunchk.png]] Only clients *not* in vehicles
:[[File:Boxunchk.png]] Physics debris
:[[File:Boxunchk.png]] Only NPCs in vehicles (respects player ally flag) &nbsp;
|}


<tr>
<pre><nowiki>
<th align=left>Target entities named</th>
{| border ="1" cellpadding="2"
<td>Math_Blue</td>
|
<td>CapZoneBlue2</td>
:[[File:Boxchk.png]] Clients
</tr>
:[[File:Boxunchk.png]] NPCs
:[[File:Boxunchk.png]] Pushables
:[[File:Boxunchk.png]] Physics Objects
:[[File:Boxunchk.png]] Only player ally NPCs
:[[File:Boxunchk.png]] Only clients in vehicles
:[[File:Boxunchk.png]] Everything (not including physics debris)
:[[File:Boxunchk.png]] Only clients *not* in vehicles
:[[File:Boxunchk.png]] Physics debris
:[[File:Boxunchk.png]] Only NPCs in vehicles (respects player ally flag) &amp;nbsp;
|}
</nowiki></pre>


<tr>
== Right align table test ==
<th align=left>Via this input</th>
{| border=1 cellpadding="2" cellspacing="1" style="float:right"
<td>Add</td>
|- align=left style="background:#DCDCDC; color:black"
<td>Disable</td>
! Property Name || Value
</tr>
|-
| Name || right side table
|-
| Start Disabled || Maybe
|-
| Initial Value || 0
|-
| Minimum Legal Value || 1
|-
| Maximum Legal Value || -1
|}
This table would usually be located above the text, but will be located on the right side of the page through the use of the <nowiki>style="float:right"</nowiki> attribute.{{clr}}


<tr>
<pre><nowiki>
<th align=left>With a parameter override of</th>
{| border=1 cellpadding="2" cellspacing="1" style="float:right"
<td>1</td>
|- align=left style="background:#DCDCDC; color:black"
<td> - </td>
! Property Name || Value
</tr>
|-
| Name || right side table
|-
| Start Disabled || Maybe
|-
| Initial Value || 0
|-
| Minimum Legal Value || 1
|-
| Maximum Legal Value || -1
|}
</nowiki></pre>


<tr>
<th align=left>After a delay in seconds of</th>
<td>0.00</td>
<td>0.00</td>
</tr>


<tr>
== Standard-table test ==
<th align=left>Fire once only</th>
{| {{standard-table}}
<td>No</td>
! <!--horizontal alignment doesn't seem to be changeable with "align=left |"--> Property Name || Value
<td>No</td>
|-
</tr>
| Name || right side table
|-
| Start Disabled || Maybe
|-
| Initial Value || 0
|-
| Minimum Legal Value || 1
|-
| Maximum Legal Value || -1
|}


</table>
<pre><nowiki>
{| {{standard-table}}
! Property Name || Value
|-
| Name || right side table
|-
| Start Disabled || Maybe
|-
| Initial Value || 0
|-
| Minimum Legal Value || 1
|-
| Maximum Legal Value || -1
|}
</nowiki></pre>


== OutputsTable test ==
{| {{OutputsTable}}
| [[File:Io11.png]]
| OnCapture
| Math_Blue
| Add
| 1
| 0.00
| No
|-
| [[File:Io11.png]]
| OnCapture
| CapZoneBlue2
| Disable
| &nbsp;
| 0.00
| No
|}


=== Sample Outputs Table 2b ===
<pre><nowiki>
 
{| {{OutputsTable}}
<table border="1" cellpadding="3">
| [[File:Io11.png]]
 
| OnCapture
<tr>
| Math_Blue
<th align=left>My output named</th>
| Add
<td>OnCapture</td>
| 1
<td>OnCapture</td>
| 0.00
</tr>
| No
 
|-
<tr>
| [[File:Io11.png]]
<th align=left>Target entities named</th>
| OnCapture
<td>Math_Blue</td>
| CapZoneBlue2
<td>CapZoneBlue2</td>
| Disable
</tr>
| &nbsp;
 
| 0.00
<tr>
| No
<th align=left>Via this input</th>
|}
<td>Add</td>
</nowiki></pre>
<td>Disable</td>
</tr>
 
<tr>
<th align=left>With a parameter override of</th>
<td>1</td>
<td> - </td>
</tr>
 
<tr>
<th align=left>After a delay in seconds of</th>
<td>0.00</td>
<td>0.00</td>
</tr>
 
<tr>
<th align=left>Fire once only</th>
<td>No</td>
<td>No</td>
</tr>


</table>
== See also ==
* http://meta.wikimedia.org/wiki/Help:Table

Latest revision as of 02:38, 7 January 2024

Icon image list

Image:Io11.png Io11.png
Image:Io12.png Io12.png
Image:Io21.png Io21.png
Image:Io22.png Io22.png
Image:Boxchk.png Boxchk.png
Image:Boxunchk.png Boxunchk.png
Image:Checkbox-on.png Checkbox-on.png
Image:Checkbox-off.png Checkbox-off.png

Class Info Tab Table Layout Test

Reference Image

Ref classinfo pic.gif

Sample Class Info Table 1

Property Name Value
Name math_kaboom
Start Disabled No
Initial Value 0
Minimum Legal Value 0
Maximum Legal Value 2
{| border=1 cellpadding="2" cellspacing="1"
|- align=left style="background:#DCDCDC; color:black"
! Property Name || Value
|- style="background:#C7C9FB; color:black"
| Name
| math_kaboom
|-
| Start Disabled || No
|-
| Initial Value || 0
|-
| Minimum Legal Value || 0
|- style="background:#C7C9FB; color:black"
| Maximum Legal Value || 2
|}


Output Tab Table Layout Test

Reference Image

Ref output pic.gif


Sample Outputs Table 1

  My Output > Target Entity Target Input Parameter Delay Only Once
Io11.png OnCapture Math_Blue Add 1 0.00 No
Io11.png OnCapture CapZoneBlue2 Disable   0.00 No
{| border=1 cellpadding="2" cellspacing="1"
|- align=left style="background:#DCDCDC; color:black"
! &nbsp; !! My Output > !! Target Entity !! Target Input !! Parameter !! Delay !! Only Once
|- align=left
| [[File:Io11.png]] || OnCapture || Math_Blue || Add || 1 || 0.00 || No
|-
| [[File:Io11.png]] || OnCapture || CapZoneBlue2 || Disable || &nbsp; || 0.00 || No
|}

OR

{| border=1 cellpadding="2" cellspacing="1"
|- align=left style="background:#DCDCDC; color:black"
! &nbsp;
! My Output >
! Target Entity
! Target Input
! Parameter
! Delay
! Only Once
|-

| [[File:Io11.png]] 
| OnCapture
| Math_Blue
| Add
| 1
| 0.00
| No
|-
| [[File:Io11.png]] 
| OnCapture
| CapZoneBlue2
| Disable
| &nbsp;
| 0.00
| No
|}

Sample Outputs Table 2

My output named OnCapture
Target entities named Math_Blue
Via this input Add
With a parameter override of 1
After a delay in seconds of 0.00
Fire once only Boxunchk.png
{| border=1 cellpadding="2" cellspacing="1"
|- align=left
! My output named
| OnCapture
|- align=left
! Target entities named
| Math_Blue
|- align=left
! Via this input
| Add
|- align=left
! With a parameter override of
| 1
|- align=left
! After a delay in seconds of
| 0.00
|- align=left
! Fire once only
| [[File:Boxunchk.png]]
|}

Flags Tab Table Layout Test

Reference Image

Ref flags pic.gif

Sample Flags Table (List Format)

Boxchk.png Clients
Boxunchk.png NPCs
Boxunchk.png Pushables
Boxunchk.png Physics Objects
Boxunchk.png Only player ally NPCs
Boxunchk.png Only clients in vehicles
Boxunchk.png Everything (not including physics debris)
Boxunchk.png Only clients *not* in vehicles
Boxunchk.png Physics debris
Boxunchk.png Only NPCs in vehicles (respects player ally flag)  
{| border ="1" cellpadding="2"
|
:[[File:Boxchk.png]] Clients
:[[File:Boxunchk.png]] NPCs
:[[File:Boxunchk.png]] Pushables
:[[File:Boxunchk.png]] Physics Objects
:[[File:Boxunchk.png]] Only player ally NPCs
:[[File:Boxunchk.png]] Only clients in vehicles
:[[File:Boxunchk.png]] Everything (not including physics debris)
:[[File:Boxunchk.png]] Only clients *not* in vehicles
:[[File:Boxunchk.png]] Physics debris
:[[File:Boxunchk.png]] Only NPCs in vehicles (respects player ally flag) &nbsp;
|}

Right align table test

Property Name Value
Name right side table
Start Disabled Maybe
Initial Value 0
Minimum Legal Value 1
Maximum Legal Value -1

This table would usually be located above the text, but will be located on the right side of the page through the use of the style="float:right" attribute.

{| border=1 cellpadding="2" cellspacing="1" style="float:right"
|- align=left style="background:#DCDCDC; color:black"
! Property Name || Value
|-
| Name || right side table
|-
| Start Disabled || Maybe
|-
| Initial Value || 0
|-
| Minimum Legal Value || 1
|-
| Maximum Legal Value || -1
|}


Standard-table test

Property Name Value
Name right side table
Start Disabled Maybe
Initial Value 0
Minimum Legal Value 1
Maximum Legal Value -1
{| {{standard-table}}
! Property Name || Value
|-
| Name || right side table
|-
| Start Disabled || Maybe
|-
| Initial Value || 0
|-
| Minimum Legal Value || 1
|-
| Maximum Legal Value || -1
|}

OutputsTable test

  My Output Target Entity Target Input Parameter Delay Only Once
Io11.png OnCapture Math_Blue Add 1 0.00 No
Io11.png OnCapture CapZoneBlue2 Disable   0.00 No
{| {{OutputsTable}}
| [[File:Io11.png]] 
| OnCapture
| Math_Blue
| Add
| 1
| 0.00
| No
|-
| [[File:Io11.png]] 
| OnCapture
| CapZoneBlue2
| Disable
|  
| 0.00
| No
|}

See also