Template:Syntax2: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
m (fixed width)
 
(13 intermediate revisions by 3 users not shown)
Line 1: Line 1:
:<table class="standard-table">
<includeonly>:{{{!}} class="standard-table"
{{#if: {{{syn|}}} | <tr><th><code>http://developer.valvesoftware.com/w/images/f/fd/Iosyntax.png Syntax</code></th><td><code>{{{syn}}}</code></td></tr>
{{#if: {{{syn|}}} | <span style="display:none;speak:none">&nbsp;</span>
{{!}}-
! width="85px" {{!}} [[File:Iosyntax.png|link=|alt=]] &nbsp;&nbsp; Syntax
{{!}} style="padding-left:.5em" {{!}} <code>{{{syn}}}</code>
}}<!--
 
-->{{#if: {{{in|}}} | <span style="display:none;speak:none">&nbsp;</span>
{{!}}-
! [[File:Io14.png|link=|alt=]] &nbsp;Example
{{!}} style="padding-left:.5em" {{!}} <code>{{{in}}}</code>
}}<!--
 
-->{{#if: {{{out|}}} | <span style="display:none;speak:none">&nbsp;</span>
{{!}}-
! [[File:Io11.png|link=|alt=]] &nbsp;&nbsp; Results
{{!}}bgcolor="262626" style="padding-left:.5em"{{!}}{{{out}}}
}}
}}
{{#if: {{{in|}}} | <tr><th><code>http://developer.valvesoftware.com/w/images/6/6c/Io14.png &nbsp;Input</code></th><td>{{{in}}}</td></tr>
{{!}}}</includeonly><noinclude>
== Usage ==
<code><nowiki>{{syntax2|syn=syntax|in=input|out=output}}</nowiki></code>
 
=== Example ===
<pre>
{{syntax2
|syn=<nowiki><nowiki>'''Bold text'''</nowiki></nowiki>
|in=<nowiki><nowiki>Remember to '''always''' brush your teeth.</nowiki></nowiki>
|out=Remember to '''always''' brush your teeth.
}}
}}
{{#if: {{{out|}}} | <tr><th><code>http://developer.valvesoftware.com/w/images/2/2e/Io11.png Output</code></th><td bgcolor="#262626">{{{out}}}</td></tr>
</pre>
=== Results ===
{{syntax2
|syn=<nowiki>'''Bold text'''</nowiki>
|in=<nowiki>Remember to '''always''' brush your teeth.</nowiki>
|out=Remember to '''always''' brush your teeth.
}}
}}
:</table>
[[Category:Layout Container]]</noinclude>
<noinclude>
== Usage ==
<code><nowiki>{{syntax2|syn=syntax|in=input|out=output}}</nowiki></code>
</noinclude>

Latest revision as of 18:31, 29 December 2011

Usage

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

Example

{{syntax2
|syn=<nowiki>'''Bold text'''</nowiki>
|in=<nowiki>Remember to '''always''' brush your teeth.</nowiki>
|out=Remember to '''always''' brush your teeth.
}}

Results

 
   Syntax '''Bold text''' 
 Example Remember to '''always''' brush your teeth. 
   Results Remember to always brush your teeth.