Difference between revisions of "Fileref"

From Sega Retro

m
Line 1: Line 1:
<includeonly><sup><span class="plainlinks" style="line-height:0.95em; font-size:0.95em;">[http://segaretro.org/index.php?title=File:{{#replace:{{{1}}}| |_}}&page={{{page|1}}}]</span></sup><span style="display:none">[[Media:{{{1}}}]]</span></includeonly><noinclude>[[Category:Sega Retro templates]]</noinclude>
+
<noinclude>Template for file references.
 +
 
 +
Parameters:
 +
* 1: Filename.
 +
* page: Page number. Used for multi-page PDF documents.
 +
 
 +
Examples:
 +
* <nowiki>GoldenAxe Title.png{{fileref|GoldenAxe Title.png}}</nowiki> &rarr; GoldenAxe Title.png{{fileref|GoldenAxe Title.png}}
 +
* <nowiki>Golden Axe Mega Drive US manual, page 32{{fileref|GoldenAxe MD US Manual.pdf|page=19}}</nowiki> &rarr; Golden Axe Mega Drive US manual, page 19{{fileref|GoldenAxe MD US Manual.pdf|page=19}}
 +
 
 +
==See also==
 +
* [[Template:Ref]] for referencing other pages on the wiki or other sites in general.
 +
 
 +
==References==
 +
Since this template uses the <nowiki><ref></nowiki> tag, all pages that use this template will have an auto-generated references list appended to the end of the page. To prevent confusion, a <nowiki><references/></nowiki> tag should be added to the end of the page in a dedicated "References" section, such as this one.
 +
<references/>
 +
 
 +
[[Category:Sega Retro templates]]
 +
</noinclude><includeonly>{{#vardefine:filename|{{{1}}}}}<span style="display:none;">[[Media:{{#var:filename}}]]</span>{{#tag: ref | {{#if: {{{page|}}} | [{{fullurl:File:{{#replace:{{#var:filename}}| |_}}|page={{{page}}}}} File:{{#var:filename}}, page {{{page}}}] | [[:File:{{#var:filename}}]]}} | name=":File:{{#var:filename}}{{#if: {{{page|}}} | _p{{{page}}}}}" }}</includeonly>

Revision as of 06:59, 31 December 2015

Template for file references.

Parameters:

  • 1: Filename.
  • page: Page number. Used for multi-page PDF documents.

Examples:

See also

  • Template:Ref for referencing other pages on the wiki or other sites in general.

References

Since this template uses the <ref> tag, all pages that use this template will have an auto-generated references list appended to the end of the page. To prevent confusion, a <references/> tag should be added to the end of the page in a dedicated "References" section, such as this one.