Template:HiddenSourceFile: Difference between revisions
Jump to navigation
Jump to search
(Temporarily fix) |
|||
Line 1: | Line 1: | ||
{{hidden |
{{hidden |
||
|header=<tt>{{{1}}}{{{2}}}</tt> (<file |
|header=<tt>{{{1}}}{{{2}}}</tt> (<file anchor="{{{2}}}" name="{{{2}}}">download</file>) |
||
|content={{{content}}} |
|content={{#fileAnchor: {{{2}}}}}{{{content}}} |
||
|headerstyle=background:#ccccff; |
|headerstyle=background:#ccccff; |
||
|ta1=left |
|ta1=left |
||
|fw1=normal |
|fw1=normal |
||
}}<noinclude> |
}}<noinclude> |
||
<font color=" |
<font color="blue">'''TEMPORARY FIXED - REQUIRES RAWFILE V.0.5-mip.2 - CAN REVERT TO PREVIOUS VERSION WHEN MEDIAWIKI BUG [[https://bugzilla.wikimedia.org/show_bug.cgi?id=61341 61341]] IS FIXED'''</font> |
||
Example of use: |
Example of use: |
Revision as of 22:02, 13 February 2014
{{{1}}}{{{2}}} (<file anchor="{{{2}}}" name="{{{2}}}">download</file>)
{{#fileAnchor: {{{2}}}}}{{{content}}}
TEMPORARY FIXED - REQUIRES RAWFILE V.0.5-mip.2 - CAN REVERT TO PREVIOUS VERSION WHEN MEDIAWIKI BUG [61341] IS FIXED
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 anchor="file.sh" name="file.sh">download</file>)
{{#fileAnchor: file.sh}}
#! /bin/bash
echo Hello, World