Template:Syntax2: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Nice good faith edit, but I think it may not work that way, if I am reading mw:Help:Tables correctly. Still, if you think I am wrong, feel free to undo this. :))
m (fixed width)
 
(10 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{#if: {{{syn|}}}{{{in|}}}{{{out|}}} | {{{!}} class="standard-table"
<includeonly>:{{{!}} class="standard-table"
{{#if: {{{syn|}}} | <i style="display:none; speak:none;">&nbsp;</i>
{{#if: {{{syn|}}} | <span style="display:none;speak:none">&nbsp;</span>
{{!}}-
{{!}}-
! <code>[[File:Iosyntax.png]] Syntax</code>
! width="85px" {{!}} [[File:Iosyntax.png|link=|alt=]] &nbsp;&nbsp; Syntax
{{!}} <code>{{{syn}}}</code>
{{!}} style="padding-left:.5em" {{!}} <code>{{{syn}}}</code>
}}<!--
}}<!--


-->{{#if: {{{in|}}} | <i style="display:none; speak:none;">&nbsp;</i>
-->{{#if: {{{in|}}} | <span style="display:none;speak:none">&nbsp;</span>
{{!}}-
{{!}}-
! <code>[[File:Io14.png]] &nbsp;Input</code>
! [[File:Io14.png|link=|alt=]] &nbsp;Example
{{!}} <code>{{{in}}}</code>
{{!}} style="padding-left:.5em" {{!}} <code>{{{in}}}</code>
}}<!--
}}<!--


-->{{#if: {{{out|}}} | <i style="display:none; speak:none;">&nbsp;</i>
-->{{#if: {{{out|}}} | <span style="display:none;speak:none">&nbsp;</span>
{{!}}-
{{!}}-
! <code>[[File:Io11.png]] Output</code>
! [[File:Io11.png|link=|alt=]] &nbsp;&nbsp; Results
{{!}} <span bgcolor="#262626">{{{out}}}</span>
{{!}}bgcolor="262626" style="padding-left:.5em"{{!}}{{{out}}}
}}
}}
{{!}}}
{{!}}}</includeonly><noinclude>
}}<noinclude>
== Usage ==
== Usage ==
<code><nowiki>{{syntax2|syn=syntax|in=input|out=output}}</nowiki></code>
<code><nowiki>{{syntax2|syn=syntax|in=input|out=output}}</nowiki></code>
</noinclude>
 
=== 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.