Difference between revisions of "Fileref"
From Sonic Retro
GerbilSoft (talk | contribs) (Undo revision 223618 by GerbilSoft (talk) ...or not.) |
GerbilSoft (talk | contribs) (Use a temporary variable. The ref tag has its own parameters, so specifying a positional parameter won't work.) |
||
Line 1: | Line 1: | ||
+ | {{#vardefine:filename|{{{1}}}}} | ||
<noinclude>Template for file references. This template uses the <nowiki><ref></nowiki> tag. | <noinclude>Template for file references. This template uses the <nowiki><ref></nowiki> tag. | ||
Line 4: | Line 5: | ||
* 1: Filename. | * 1: Filename. | ||
</noinclude> | </noinclude> | ||
− | <span style="display:none;">[[Media:{{ | + | <span style="display:none;">[[Media:{{#var:filename}}]]</span>{{#var:filename}}<ref name="{{#var:filename}}">[[:File:{{#var:filename}}]]</ref> |