Template:OutputsTable: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(New page: <noinclude> == Template documentation == This template is used for creating an entity output table. == Usage == '''<nowiki>{{OutputsTable}}</nowiki>''' adds a predefined table with the o...)
 
m (→‎top: Unicodifying, replaced: {{documentation}} → {{doc}})
 
(16 intermediate revisions by 7 users not shown)
Line 1: Line 1:
<noinclude>
{{lang|Template:OutputsTable}}
<onlyinclude><includeonly><!--


== Template documentation ==
-->border=1 cellpadding="2" cellspacing="1" {{#ifeq: {{{sortable|1}}} | 1 | class="sortable"}}
This template is used for creating an entity output table.
 
== Usage ==
'''<nowiki>{{OutputsTable}}</nowiki>''' adds a predefined table with the output layout in the header section.  You will have to add the individual row contents and closing syntax manually.
 
== Syntax ==
 
For a single output:
<pre><nowiki>
{{OutputsTable}}
| [[Image:IoImage]] || Output Name || Target Entitiy || Target Input || Parameter || Delay || Only Once
|}
</nowiki></pre>
 
For a multiple outputs:
<pre><nowiki>
{{OutputsTable}}
| [[Image:IoImage]] || 1st Output Name || Target Entitiy || Target Input || Parameter || Delay || Only Once
|-
| [[Image:IoImage]] || 2nd Output Name || Target Entitiy || Target Input || Parameter || Delay || Only Once
|}
</nowiki></pre>
 
== Example ==
 
'''Code:'''
<pre><nowiki>
{{OutputsTable}}
| [[Image:Io11.png]] || OnCapture || Math_Blue || Add || 1 || 0.00 || No
|}
</nowiki></pre>
 
'''Result:'''
:{| 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
| [[Image:Io11.png]] || OnCapture || Math_Blue || Add || 1 || 0.00 || No
|}
<br>
'''Code'''
<pre><nowiki>
{{OutputsTable}}
| [[Image:Io11.png]] || OnCapture || Math_Blue || Add || 1 || 0.00 || No
|-
| [[Image:Io11.png]] || OnCapture || CapZoneBlue2 || Disable || &nbsp; || 0.00 || No
|}
</nowiki></pre>
 
'''Result:'''
:{| border=1 cellpadding="2" cellspacing="1"
|- align=left style="background:#DCDCDC; color:black"
|- align=left style="background:#DCDCDC; color:black"
! &nbsp; !! My Output > !! Target Entity !! Target Input !! Parameter !! Delay !! Only Once
! &nbsp; !! My Output !! Target Entity !! Target Input !! Parameter !! Delay !! Only Once
|- align=left
|- align=left<!--
| [[Image:Io11.png]] || OnCapture || Math_Blue || Add || 1 || 0.00 || No
|-
| [[Image:Io11.png]] || OnCapture || CapZoneBlue2 || Disable || &nbsp; || 0.00 || No
|}
 
== List of Io Images ==


{| border=1 cellpadding="2" cellspacing="1"
--></includeonly></onlyinclude>
|- align=left
{{doc}}
| Image:Io11.png || [[Image:Io11.png]]
|-
| Image:Io12.png || [[Image:Io12.png]]
|-
| Image:Io21.png || [[Image:Io21.png]]
|-
| Image:Io22.png || [[Image:Io22.png]]
|}
 
[[Category:Templates]]
</noinclude>{| 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

Latest revision as of 14:52, 11 January 2024


English (en)Deutsch (de)Esperanto (eo)Español (es)Français (fr)Suomi (fi)Hrvatski (hr)Magyar (hu)Italiano (it)日本語 (ja)한국어 (ko)Nederlands (nl)Polski (pl)Português (pt)Português do Brasil (pt-br)Русский (ru)Slovenčina (sk)Svenska (sv)Türkçe (tr)Українська (uk)Tiếng Việt (vi)中文 (zh)中文(臺灣) (zh-tw)
Curly brackets white.pngTemplate Documentation [view] [edit]
Icon-translate.png Available doc translations
View
Page history

This template is used for creating an entity output table using only basic table syntax.

Usage

Parameters

{{{sortable}}} - Set this to 0 or 1 to get a (non-)sortable table. Default is 1.

Syntax

Add {{OutputsTable}} inside the basic table tags, {| and |}, along with content for the 7 columns inside a row.

PlacementTip.pngExample:| cell 1 || cell 2 || cell 3 || cell 4 || cell 5 || cell 6 || cell 7

For a single output:

{| {{OutputsTable}}
| [[IoImage]] || Output Name || Target Entity || Target Input || Parameter || Delay || Only Once
|}

For a multiple outputs:

{| {{OutputsTable}}
| [[IoImage]] || 1st Output Name || Target Entity || Target Input || Parameter || Delay || Only Once
|-
| [[IoImage]] || 2nd Output Name || Target Entity || Target Input || Parameter || Delay || Only Once
|}

You can use one of the following IO-images:

Name
Image:Io11.png Io11.png
Image:Io12.png Io12.png
Image:Io21.png Io21.png
Image:Io22.png Io22.png

Examples

Wikitext Result
{| {{OutputsTable|sortable=0}}
| [[File:Io11.png]] || OnCapture || Math_Blue || Add || 1 || 0.00 || No
|}
  My Output Target Entity Target Input Parameter Delay Only Once
Io11.png OnCapture Math_Blue Add 1 0.00 No
{| {{OutputsTable}}
| [[File:Io11.png]] || OnCapture || Math_Blue || Add || 1 || 0.00 || No
|-
| [[File:Io11.png]] || OnCapture || CapZoneBlue2 || Disable || &nbsp; || 0.00 || No
|}
  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