Difference between revisions of "Fileref"
From NEC Retro
Ccawley2011 (talk | contribs) |
|||
(2 intermediate revisions by 2 users not shown) | |||
Line 20: | Line 20: | ||
==See also== | ==See also== | ||
− | * [[Template:Ref]] for referencing other pages on the wiki | + | * [[Template:Ref]] for referencing other sites in general. |
+ | * [[Template:Intref]] for referencing other pages on the wiki and other Retro wikis. | ||
+ | * [[Template:Magref]] for referencing magazines. | ||
==References== | ==References== | ||
Line 26: | Line 28: | ||
<references/> | <references/> | ||
− | [[Category: | + | [[Category:Templates]] |
</noinclude><includeonly>{{#vardefine:filename|{{{1|}}}}}{{FilerefStore | </noinclude><includeonly>{{#vardefine:filename|{{{1|}}}}}{{FilerefStore | ||
| name={{FULLPAGENAME}} | | name={{FULLPAGENAME}} | ||
| file={{#var:filename}} | | file={{#var:filename}} | ||
| page={{{page|}}} | | page={{{page|}}} | ||
− | }}{{#vardefine:reftext|{{GetRefInfo|{{#var:filename}}}}}}{{#vardefine:quote|{{{quote|}}}}}{{#if:{{#var:reftext}}||{{#vardefine:reftext|File:{{#var:filename}}}}}}{{#tag: ref | {{#if:{{#var:quote}}|"{{#var:quote}}", }}{{#if: {{{page|}}} | [{{fullurl:File:{{#var:filename}}|page={{{page|}}}}} {{#var:reftext}}, page {{{page|}}}] | [[:File:{{#var:filename}}|{{#var:reftext}}]]}} | name=":File:{{#var:filename}}_p{{{page|}}}{{#var:quote}}" }}{{incvar|refcount}}{{clearvar|reftext|quote}}</includeonly> | + | }}{{#vardefine:reftext|{{GetRefInfo|{{#var:filename}}}}}}{{#vardefine:quote|{{{quote|}}}}}{{#if:{{#var:reftext}}||{{#vardefine:reftext|File:{{#var:filename}}}}}}{{#tag: ref | {{#if:{{#var:quote}}|"{{#var:quote}}", }}{{#if: {{{page|}}} | [{{fullurl:File:{{#var:filename}}|page={{{page|}}}}} {{#var:reftext}}, page {{{page|}}}] | [[:File:{{#var:filename}}|{{#var:reftext}}]]}} | name=":File:{{#var:filename}}_p{{{page|}}}{{#var:quote}}" }}{{incvar|refcount}}{{clearvar|reftext|quote}}{{FilerefCheck|{{{1|}}}}}</includeonly> |
Latest revision as of 10:58, 25 April 2023
This task is unfinished This is a wiki task that requires more thought or peer review. An important issue that needs to be solved, which will appear at the top of NEC Retro:Todo until this message is removed. |
Template for file references.
Usage
Parameters:
- 1: Filename.
- page: Page number. Used for multi-page PDF documents.
- quote: A specific quote, helpful if referencing long pages
Examples:
- GoldenAxe Title.png{{fileref|GoldenAxe Title.png}} → GoldenAxe Title.png[1]
- Golden Axe Mega Drive US manual, page 32{{fileref|GoldenAxe MD US Manual.pdf|page=19}} → Golden Axe Mega Drive US manual, page 19[2]
- Seaman DC JP Box Back.jpg{{fileref|Seaman DC JP Box Back.jpg}} → Seaman DC JP Box Back.jpg[3]
- Testing quotes{{fileref|Seaman DC JP Box Back.jpg|quote=Quotey McQuoteface}} → Testing quotes[4]
See also
- Template:Ref for referencing other sites in general.
- Template:Intref for referencing other pages on the wiki and other Retro wikis.
- Template:Magref for referencing magazines.
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.
- ↑ GoldenAxe Title.png
- ↑ GoldenAxe MD US Manual.pdf, page 19
- ↑ Seaman DC JP Box Back.jpg
- ↑ "Quotey McQuoteface", Seaman DC JP Box Back.jpg