Template:HiddenSourceFile: Difference between revisions

From miki
Jump to navigation Jump to search
(Undo revision 5707 by Mip (talk) - Fix does not work)
(Try solution from https://bugzilla.wikimedia.org/show_bug.cgi?id=61341)
Line 1: Line 1:
{{hidden
{{hidden
|header=<tt>{{{1}}}{{{2}}}</tt> (<file name="{{{2}}}" tag="source">download</file>)
|header=<tt>{{{1}}}{{{2}}}</tt> ({{#tag:file|name={{{2}}}|tag=source|download}})
|content={{{content}}}
|content={{{content}}}
|headerstyle=background:#ccccff;
|headerstyle=background:#ccccff;

Revision as of 09:20, 17 February 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>
}}