Template:HiddenSourceFile: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{hidden|<tt>{{{1}}}{{{2}}}</tt>(<file name="{{{2}}}" tag="source">download</file>)|{{{3}}}|headerstyle=background:#ccccff;text-align:left;}}<noinclude> |
{{hidden|1=<tt>{{{1}}}{{{2}}}</tt>(<file name="{{{2}}}" tag="source">download</file>)|2={{{3}}}|3=headerstyle=background:#ccccff;text-align:left;}}<noinclude> |
||
<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> |
<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|/path/to/my/|file.sh|<source lang="bash"> |
{{hiddenSourceFile|1=/path/to/my/|2=file.sh|3=<source lang="bash"> |
||
#! /bin/bash |
#! /bin/bash |
||
echo Hello, World |
echo Hello, World |
||
Line 11: | Line 11: | ||
</nowiki></pre> |
</nowiki></pre> |
||
{{hiddenSourceFile|/path/to/my/|file.sh|<source lang="bash"> |
{{hiddenSourceFile|1=/path/to/my/|2=file.sh|3=<source lang="bash"> |
||
#! /bin/bash |
#! /bin/bash |
||
echo Hello, World |
echo Hello, World |
Revision as of 18:26, 17 January 2014
{{{1}}}{{{2}}}(<file name="{{{2}}}" tag="source">download</file>)
{{{3}}}
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|1=/path/to/my/|2=file.sh|3=<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