Template:HiddenSourceFile: Difference between revisions

From miki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
{{pl2|
{{pl2|
{{hidden|<tt>{{{1}}}{{{2}}}</tt> ([{{#filelink: {{{2}}}}} download])|
{{hidden|<tt>{{{1}}}{{{2}}}</tt> ([{{#filelink: {{{2}}}}} download])|{{{3}}}|headerstyle=background:#ccccff;text-align:left;}} }}<noinclude>
{{#fileanchor: {{{2}}} }}
{{{3}}} |headerstyle=background:#ccccff;text-align:left;}} }}<noinclude>
Example of use:
Example of use:
<pre>
<pre>
{{hiddenSourceFile|/path/to/my/|file.sh|<source lang="bash">
{{hiddenSourceFile|/path/to/my/|file.sh|<source lang="bash" class="file.sh">
#! /bin/bash
#! /bin/bash
echo Hello, World
echo Hello, World
Line 12: Line 10:
</pre>
</pre>


{{hiddenSourceFile|/path/to/my/|file.sh|<source lang="bash">
{{hiddenSourceFile|/path/to/my/|file.sh|<source lang="bash" class="file.sh">
#! /bin/bash
#! /bin/bash
echo Hello, World
echo Hello, World

Revision as of 16:26, 16 November 2009

Example of use:

{{hiddenSourceFile|/path/to/my/|file.sh|<source lang="bash" class="file.sh">
#! /bin/bash
echo Hello, World
</source>
}}