Difference between revisions of "Template:Syntax2"

From Valve Developer Community
Jump to: navigation, search
m (Fixed images, indent. I don't want the images to be linked to their [[File:]] page. They're just icons.)
(Then just use |link= instead of that.)
Line 1: Line 1:
<noinclude><!-- Note: This first if parser is used to avoid showing a small box if none of the params are specified, while allowing it through if any are specified --></noinclude>{{#if: {{{syn|}}}{{{in|}}}{{{out|}}} | :{{{!}} class="standard-table"
+
<noinclude><!-- Note: This first if parser is used to avoid showing a small box if none of the params are specified, while allowing it through if any are specified --></noinclude>:{{#if: {{{syn|}}}{{{in|}}}{{{out|}}} | :{{{!}} class="standard-table"
 
{{#if: {{{syn|}}} | <i style="display:none; speak:none;">&nbsp;</i>
 
{{#if: {{{syn|}}} | <i style="display:none; speak:none;">&nbsp;</i>
 
{{!}}-
 
{{!}}-
! <code>http://developer.valvesoftware.com/w/images/f/fd/Iosyntax.png Syntax</code>
+
! <code>[[File:Iosyntax.png|link=|alt=]] Syntax</code>
 
{{!}} <code>{{{syn}}}</code>
 
{{!}} <code>{{{syn}}}</code>
 
}}<!--
 
}}<!--
Line 8: Line 8:
 
-->{{#if: {{{in|}}} | <i style="display:none; speak:none;">&nbsp;</i>
 
-->{{#if: {{{in|}}} | <i style="display:none; speak:none;">&nbsp;</i>
 
{{!}}-
 
{{!}}-
! <code>http://developer.valvesoftware.com/w/images/6/6c/Io14.png &nbsp;Input</code>
+
! <code>[[File:Io14.png|link=|alt=]] &nbsp;Input</code>
 
{{!}} <code>{{{in}}}</code>
 
{{!}} <code>{{{in}}}</code>
 
}}<!--
 
}}<!--
Line 14: Line 14:
 
-->{{#if: {{{out|}}} | <i style="display:none; speak:none;">&nbsp;</i>
 
-->{{#if: {{{out|}}} | <i style="display:none; speak:none;">&nbsp;</i>
 
{{!}}-
 
{{!}}-
! <code>http://developer.valvesoftware.com/w/images/2/2e/Io11.png Output</code>
+
! <code>[[File:Io11.png|link=|alt=]] Output</code>
 
{{!}}bgcolor="262626"{{!}} {{{out}}}
 
{{!}}bgcolor="262626"{{!}} {{{out}}}
 
}}
 
}}

Revision as of 22:21, 21 November 2011

Usage

{{syntax2|syn=syntax|in=input|out=output}}