Actions

Template

Difference between revisions of "Fileref"

From Sonic Retro

(Use a temporary variable. The ref tag has its own parameters, so specifying a positional parameter won't work.)
(Updated for ref2 changes.)
Line 1: Line 1:
 
{{#vardefine:filename|{{{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 [[Template:ref2|ref2]] template.
  
 
Parameters:
 
Parameters:
 
* 1: Filename.
 
* 1: Filename.
 +
 +
Example: SADXBeta8.png{{fileRef2|SADXBeta8.png}}
 +
{{refs}}
 
</noinclude>
 
</noinclude>
<span style="display:none;">[[Media:{{#var:filename}}]]</span>{{#var:filename}}<ref name="{{#var:filename}}">[[:File:{{#var:filename}}]]</ref>
+
<span style="display:none;">[[Media:{{#var:filename}}]]</span>{{ref2|File:{{#var:filename}}|{{#var:filename}}}}

Revision as of 17:18, 15 December 2015

Template for file references. This template uses the ref2 template.

Parameters:

  • 1: Filename.

Example: SADXBeta8.pngTemplate:FileRef2 Template:Refs

[[Media:{{{1}}}]]Template:Ref2