Template:HiddenSourceFile: Difference between revisions

From miki
Jump to navigation Jump to search
(Removed template pl2)
(Use the new syntax of RawFile to avoid duplicating the file name)
Line 1: Line 1:
{{hidden|<tt>{{{1}}}{{{2}}}</tt> ([{{#filelink: {{{2}}}}} download])|{{{3}}}|headerstyle=background:#ccccff;text-align:left;}}<noinclude>
{{hidden|<tt>{{{1}}}{{{2}}}</tt> (<file name="{{{2}}}" tag="source">download</file>)|{{{3}}}|headerstyle=background:#ccccff;text-align:left;}}<noinclude>
Example of use:
Example of use:
<pre><nowiki>
<pre><nowiki>
{{hiddenSourceFile|/path/to/my/|file.sh|<source lang="bash" class="file.sh">
{{hiddenSourceFile|/path/to/my/|file.sh|<source lang="bash">
#! /bin/bash
#! /bin/bash
echo Hello, World
echo Hello, World
Line 9: Line 9:
</nowiki></pre>
</nowiki></pre>


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

Revision as of 17:08, 6 January 2010

Example of use:

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