Template:HiddenSourceFile: Difference between revisions
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
{{{1}}}{{{2}}} ([{{#filelink: {{{2}}}}} download])
{{{3}}}
Example of use:
{{hiddenSourceFile|/path/to/my/|file.sh|<source lang="bash" class="file.sh"> #! /bin/bash echo Hello, World </source> }}
/path/to/my/file.sh ([{{#filelink: file.sh}} download])
#! /bin/bash
echo Hello, World