Template:HiddenSourceFile: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(12 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{hidden |
{{hidden |
||
|header=<tt>{{{1}}}{{{2}}}</tt>( |
|header=<tt>{{{1}}}{{{2}}}</tt> ({{#tag:file|download|name={{{2}}}|tag=source}}) |
||
|content={{{ |
|content={{{content}}} |
||
|headerstyle=background:#ccccff |
|headerstyle=background:#ccccff; |
||
|ta1=left |
|||
|fw1=normal |
|||
}}<noinclude> |
}}<noinclude> |
||
<font color="red">'''This template requires Rawfile 0.5.1 or above</font> |
|||
<font color="red">'''THIS TEMPLATE IS BROKEN - RAWFILE.PHP MUST BE UPDATED TO EXPAND TEMPLATE ARGUMENTS WHEN MEDIAWIKI 1.16 IS AVAILABLE - See [http://www.mediawiki.org/wiki/Manual:Tag_extensions]'''</font> |
|||
Example of use: |
Example of use: |
||
<pre><nowiki> |
<pre><nowiki> |
||
{{hiddenSourceFile| |
{{hiddenSourceFile|/path/to/my/|file.sh|content=<source lang="bash"> |
||
#! /bin/bash |
#! /bin/bash |
||
echo Hello, World |
echo Hello, World |
||
Line 15: | Line 17: | ||
</nowiki></pre> |
</nowiki></pre> |
||
{{hiddenSourceFile|/path/to/my/|file.sh| |
{{hiddenSourceFile|/path/to/my/|file.sh|content=<source lang="bash"> |
||
#! /bin/bash |
|||
echo Hello, World |
|||
</source> |
|||
}} |
|||
</noinclude> |
</noinclude> |
Latest revision as of 14:52, 20 April 2014
{{{1}}}{{{2}}} (<file name="{{{2}}}" tag="source">download</file>)
{{{content}}}
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> }}
/path/to/my/file.sh (<file name="file.sh" tag="source">download</file>)
#! /bin/bash
echo Hello, World