Jump to content

Template:Get1: Difference between revisions

From pool
[unchecked revision][unchecked revision]
Content deleted Content added
m 1 revision imported
m Text replacement - "|sect=" to "|section="
 
Line 32: Line 32:
Syntax Examples -
Syntax Examples -
Only Specify the Command:
Only Specify the Command:
<pre>{{Get|command|sect=YourSectionName}}</pre>
<pre>{{Get|command|section=YourSectionName}}</pre>
Note: If you omit the sect=YourSectionName, by default will be used the section example. The sect option must be the last.
Note: If you omit the sect=YourSectionName, by default will be used the section example. The sect option must be the last.




Show alternative Text:
Show alternative Text:
<pre>{{Get|command|alt text|sect=YourSectionName}}</pre>
<pre>{{Get|command|alt text|section=YourSectionName}}</pre>




Show alternative Text and specify code sample:
Show alternative Text and specify code sample:
<pre>{{Get|command|alt text|&lt;pre&gt;sample code&lt;/pre&gt;|sect=YourSectionName}}</pre>
<pre>{{Get|command|alt text|&lt;pre&gt;sample code&lt;/pre&gt;|section=YourSectionName}}</pre>




With the Word "open" the code sample is shown by default:
With the Word "open" the code sample is shown by default:
<pre>{{Get|command|alt text|&lt;pre&gt;sample code&lt;/pre&gt;|open|sect=YourSectionName}}</pre>
<pre>{{Get|command|alt text|&lt;pre&gt;sample code&lt;/pre&gt;|open|section=YourSectionName}}</pre>
</noinclude>
</noinclude>

Latest revision as of 09:14, 31 March 2020

{{{1}}}
Need an Example



Syntax Examples - Only Specify the Command:

{{Get|command|section=YourSectionName}}

Note: If you omit the sect=YourSectionName, by default will be used the section example. The sect option must be the last.


Show alternative Text:

{{Get|command|alt text|section=YourSectionName}}


Show alternative Text and specify code sample:

{{Get|command|alt text|<pre>sample code</pre>|section=YourSectionName}}


With the Word "open" the code sample is shown by default:

{{Get|command|alt text|<pre>sample code</pre>|open|section=YourSectionName}}