Template:HiddenSourceFile: Difference between revisions

From miki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(31 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{pl2|
{{hidden
{{hidden|<tt>{{{1}}}{{{2}}}</tt> ([{{#filelink: {{{2}}}}} download])|{{#fileanchor: {{{2}}}}}
|header=<tt>{{{1}}}{{{2}}}</tt> ({{#tag:file|download|name={{{2}}}|tag=source}})
|content={{{content}}}
<source lang={{{3}}}>{{{4}}}</source>|headerstyle=background:#ccccff;text-align:left;}} }}<noinclude>
|headerstyle=background:#ccccff;
|ta1=left
|fw1=normal
}}<noinclude>
<font color="red">'''This template requires Rawfile 0.5.1 or above</font>

Example of use:
Example of use:
<pre>
<pre><nowiki>
{{hiddenSourceFile|/path/to/my/|file.sh|bash|
{{hiddenSourceFile|/path/to/my/|file.sh|content=<source lang="bash">
#! /bin/bash
#! /bin/bash
echo Hello, World
echo Hello, World
</source>
}}
}}
</pre>
</nowiki></pre>


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

Latest revision as of 14:52, 20 April 2014

This template requires Rawfile 0.5.1 or above

Example of use:

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