Template:Syntax2: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (test)
m (fixed width)
 
(38 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{{1}}} {{{2}}} {{{3}}}
<includeonly>:{{{!}} class="standard-table"
<noinclude>
{{#if: {{{syn|}}} | <span style="display:none;speak:none">&nbsp;</span>
{{syntax2|
{{!}}-
test one|
! width="85px" {{!}} [[File:Iosyntax.png|link=|alt=]] &nbsp;&nbsp; Syntax
test two|
{{!}} style="padding-left:.5em" {{!}} <code>{{{syn}}}</code>
test three
}}<!--
 
-->{{#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}}}
}}
}}
</noinclude>
{{!}}}</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.
}}
</pre>
=== Results ===
{{syntax2
|syn=<nowiki>'''Bold text'''</nowiki>
|in=<nowiki>Remember to '''always''' brush your teeth.</nowiki>
|out=Remember to '''always''' brush your teeth.
}}
[[Category:Layout Container]]</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.