Template:HiddenSourceFile: Difference between revisions

From miki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
{{hidden
{{hidden
|header=<tt>{{{1}}}{{{2}}}</tt>(<file name="{{{2}}}" tag="source">download</file>)
|header=<tt>{{{1}}}{{{2}}}</tt> (<file name="{{{2}}}" tag="source">download</file>)
|content={{{3}}}
|content={{{content}}}
|headerstyle=background:#ccccff;text-align:left;font-weight:normal;
|headerstyle=background:#ccccff;text-align:left;font-weight:normal;
}}<noinclude>
}}<noinclude>
Line 8: Line 8:
Example of use:
Example of use:
<pre><nowiki>
<pre><nowiki>
{{hiddenSourceFile|1=/path/to/my/|2=file.sh|3=<source lang="bash">
{{hiddenSourceFile|/path/to/my/|file.sh|content=<source lang="bash">
#! /bin/bash
#! /bin/bash
echo Hello, World
echo Hello, World
Line 15: Line 15:
</nowiki></pre>
</nowiki></pre>


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

Revision as of 18:48, 17 January 2014

THIS TEMPLATE IS BROKEN - RAWFILE.PHP MUST BE UPDATED TO EXPAND TEMPLATE ARGUMENTS WHEN MEDIAWIKI 1.16 IS AVAILABLE - See [1]

Example of use:

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