Difference between revisions of "Fileref"
From Sonic Retro
GerbilSoft (talk | contribs) m (GerbilSoft moved page Template:Template:Fileref to Template:Fileref: One too many templates there.) |
BSonirachi (talk | contribs) |
||
(7 intermediate revisions by 4 users not shown) | |||
Line 4: | Line 4: | ||
* 1: Filename. | * 1: Filename. | ||
* page: Page number. Used for multi-page PDF documents. | * page: Page number. Used for multi-page PDF documents. | ||
+ | * quote: A specific quote, helpful if referencing long pages | ||
Examples: | Examples: | ||
− | * <nowiki>SADXBeta8.png{{ | + | * <nowiki>SADXBeta8.png{{fileref|SADXBeta8.png}}</nowiki> → SADXBeta8.png{{fileref|SADXBeta8.png}} |
− | * <nowiki>Sonic 3D Saturn EU manual, page 32{{ | + | * <nowiki>Sonic 3D Saturn EU manual, page 32{{fileref|Sonic3D Sat EU manual.pdf|page=32}}</nowiki> → Sonic 3D Saturn EU manual, page 32{{fileref|Sonic3D Sat EU manual.pdf|page=32}} |
− | [[Category: | + | * <nowiki>Testing quotes{{fileref|Sonic3D Sat EU manual.pdf|page=32|quote=Quotey McQuoteface}}</nowiki> → Testing quotes{{fileref|Sonic3D Sat EU manual.pdf|page=32|quote=Quotey McQuoteface}} |
− | </noinclude><includeonly>{{#vardefine:filename|{{{1}}}}}<span style="display:none;">[[Media:{{#var:filename}}]]</span>{{#tag: ref | {{#if: {{{page|}}} | [{{fullurl:File | + | |
+ | ==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 <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:Templates]] | ||
+ | </noinclude><includeonly>{{#vardefine:filename|{{{1}}}}}{{#vardefine:quote|{{{quote|}}}}}{{#ifexist:File:{{#var:filename}}|<span style="display:none;">[[Media:{{#var:filename}}]]</span>}}{{#tag: ref | {{#if:{{#var:quote}}|"{{#var:quote}}", }}{{#if: {{{page|}}} | [{{fullurl:File:{{#var:filename}}|page={{{page}}}}} File:{{#var:filename}}, page {{{page}}}] | [[:File:{{#var:filename}}]]}} | name=":File:{{#var:filename}}_p{{{page}}}{{#var:quote}}" }}{{clearvar|quote}}</includeonly> |
Latest revision as of 12:01, 25 April 2023
Template for file references.
Parameters:
- 1: Filename.
- page: Page number. Used for multi-page PDF documents.
- quote: A specific quote, helpful if referencing long pages
Examples:
- SADXBeta8.png{{fileref|SADXBeta8.png}} → SADXBeta8.png[1]
- Sonic 3D Saturn EU manual, page 32{{fileref|Sonic3D Sat EU manual.pdf|page=32}} → Sonic 3D Saturn EU manual, page 32[2]
- Testing quotes{{fileref|Sonic3D Sat EU manual.pdf|page=32|quote=Quotey McQuoteface}} → Testing quotes[3]
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.
- ↑ File:SADXBeta8.png
- ↑ File:Sonic3D Sat EU manual.pdf, page 32
- ↑ "Quotey McQuoteface", File:Sonic3D Sat EU manual.pdf, page 32