Difference between revisions of "Magref"
From Sega Retro
(Created page with "<includeonly>{{#vardefine:pubcode|{{{1}}}}}{{#vardefine:issueno|{{{2}}}}}{{#vardefine:page|{{{3|}}}}}{{#cargo_query: tables=issuenames,magnames |fields=issuenames.name,issuena...") |
|||
(17 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly>{{#vardefine:pubcode|{{{1}}}}}{{#vardefine:issueno|{{{2}}}}}{{#vardefine:page|{{{3|}}}}}{{#cargo_query: | + | <includeonly>{{#vardefine:pubcode|{{{1|}}}}}{{#vardefine:issueno|{{{2|}}}}}{{#vardefine:page|{{{3|}}}}}{{#vardefine:printpage|{{{printpage|}}}}}{{#ifeq:{{#var:printpage}}|{{#var:page}}|{{clearvar|printpage}}}}{{#cargo_query: |
tables=issuenames,magnames | tables=issuenames,magnames | ||
− | |fields=issuenames.name,issuenames.date,issuenames.pdf,magnames.name,magnames.country | + | |fields=issuenames.name=issuename,issuenames.date,issuenames.pdf,magnames.name=magname,magnames.country |
|where=issuenames.code="{{#var:pubcode}}" and issuenames.num="{{#var:issueno}}" | |where=issuenames.code="{{#var:pubcode}}" and issuenames.num="{{#var:issueno}}" | ||
|join on=issuenames.code=magnames.code | |join on=issuenames.code=magnames.code | ||
|limit=1 | |limit=1 | ||
|format=template | |format=template | ||
− | |template= | + | |template=Magref/Cargo |
− | }} | + | |more results text= |
+ | |default= | ||
+ | }}{{FilerefStore | ||
+ | | name={{FULLPAGENAME}} | ||
+ | | file={{#var:filename}} | ||
+ | | page={{#var:page}} | ||
+ | }}{{#vardefine:quote|{{{quote|}}}}}{{#if: {{#var:filename}} | {{#tag: ref | {{#if:{{#var:quote}}|"{{#var:quote}}", }}{{#if: {{#var:page}} | [{{fullurl:File:{{#var:filename}}|page={{#var:page}}}} ''{{#var:pubname}}'', "{{#var:issuename}}" ({{#var:country}}; {{#var:date}}), page {{#if:{{#var:printpage}}|{{#var:printpage}} ({{#var:page}})|{{#var:page}}}} ] | [[:File:{{#var:filename}}]]}} | name=":File:{{#var:filename}}_p{{#var:page}} {{#if:{{#var:printpage}}|({{#var:printpage}})|}}{{#var:quote}}" }} | {{#tag: ref | {{#if:{{#var:quote}}|"{{#var:quote}}", }}''{{#var:pubname}}'', "{{#var:issuename}}" ({{#var:country}}; {{#var:date}}){{#if:{{#var:page}}|, page {{#var:page}} {{#if:{{#var:printpage}}|({{#var:printpage}})|}} }} }}}}{{incvar|refcount}}{{clearvar|quote}}</includeonly><noinclude>[[Category:Templates]] | ||
+ | This is an improved version of the fileref template{{magref|mms|12|34}}. You only need to specify a code, issue and page{{magref|edge|10|20}}, the rest should be done for you{{magref|hyper|1|2}}{{magref|edge|10|20}}{{magref|mms|34|45}}.{{magref|cvg|93a}}{{magref|mms|35|45|printpage=60-68}}{{magref|mms|35|46|printpage=46}}{{magref|mms|35|46|printpage=46|quote=Quote test}} | ||
+ | {{magref|cvg|100|1}} | ||
+ | {{magref|cvg|100|1|printpage=2/3}} | ||
+ | ==Usage== | ||
+ | <pre> | ||
+ | {{magref|<CODE>|<ISSUE>|<PAGE>}} | ||
+ | </pre> | ||
− | + | PAGE is always the PDF page number. If the magazine has its page numbering system shifted, or multiple pages are being referenced, use the optional "printpage" argument: | |
− | {{ | + | <pre> |
+ | {{magref|<CODE>|<ISSUE>|<PAGE>|printpage=<PRINTPAGE>}} | ||
+ | </pre> | ||
+ | |||
+ | ==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/> | ||
</noinclude> | </noinclude> |
Latest revision as of 10:56, 25 April 2023
This is an improved version of the fileref template[1]. You only need to specify a code, issue and page[2], the rest should be done for you[3][2][4].[5][6][7][8]
Usage
{{magref|<CODE>|<ISSUE>|<PAGE>}}
PAGE is always the PDF page number. If the magazine has its page numbering system shifted, or multiple pages are being referenced, use the optional "printpage" argument:
{{magref|<CODE>|<ISSUE>|<PAGE>|printpage=<PRINTPAGE>}}
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.
- ↑ Mean Machines Sega, "October 1993" (UK; 1993-08-28), page 34
- ↑ 2.0 2.1 Edge, "July 1994" (UK; 1994-05-26), page 20
- ↑ Hyper, "December 1993" (AU; 1993-xx-xx), page 2
- ↑ Mean Machines Sega, "August 1995" (UK; 1995-06-26), page 45
- ↑ File:MeanMachinesSega34UK.pdf
- ↑ Mean Machines Sega, "September 1995" (UK; 1995-07-27), page 60-68 (45)
- ↑ Mean Machines Sega, "September 1995" (UK; 1995-07-27), page 46
- ↑ "Quote test", Mean Machines Sega, "September 1995" (UK; 1995-07-27), page 46
- ↑ Computer & Video Games, "March 1990" (UK; 1990-02-16), page 1
- ↑ Computer & Video Games, "March 1990" (UK; 1990-02-16), page 2/3 (1)