Difference between revisions of "Magref"

From Sega Retro

Line 1: Line 1:
<includeonly><span style="display:none;">{{#vardefine:pubcode|{{{1}}}}}{{#vardefine:issueno|{{{2}}}}}{{#vardefine:page|{{{3|}}}}}{{#vardefine:printpage|{{{printpage|}}}}}{{#cargo_query:
+
<includeonly><span style="display:none;">{{#vardefine:pubcode|{{{1}}}}}{{#vardefine:issueno|{{{2}}}}}{{#vardefine:page|{{{3|}}}}}{{#vardefine:printpage|{{{printpage|}}}}}{{#ifeq:{{#var:printpage}}|{{#var:page}}|{{#vardefine:printpage|}}|}}{{#cargo_query:
 
tables=issuenames,magnames
 
tables=issuenames,magnames
 
|fields=issuenames.name=issuename,issuenames.date,issuenames.pdf,magnames.name=magname,magnames.country
 
|fields=issuenames.name=issuename,issuenames.date,issuenames.pdf,magnames.name=magname,magnames.country
Line 9: Line 9:
 
}}</span>{{#if: {{#var:filename}} | {{#ifexist:File:{{#var:filename}}|<span style="display:none;">[[Media:{{#var:filename}}]]</span>}}{{#tag: ref | {{#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}}" }} | {{#tag: ref | ''{{#var:pubname}}'', "{{#var:issuename}}" ({{#var:country}}; {{#var:date}}){{#if:{{#var:page}}|, page {{#var:page}} {{#if:{{#var:printpage}}|({{#var:printpage}})|}} }} }}}}{{incvar|refcount}}</includeonly><noinclude>[[Category:Sega Retro templates]]
 
}}</span>{{#if: {{#var:filename}} | {{#ifexist:File:{{#var:filename}}|<span style="display:none;">[[Media:{{#var:filename}}]]</span>}}{{#tag: ref | {{#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}}" }} | {{#tag: ref | ''{{#var:pubname}}'', "{{#var:issuename}}" ({{#var:country}}; {{#var:date}}){{#if:{{#var:page}}|, page {{#var:page}} {{#if:{{#var:printpage}}|({{#var:printpage}})|}} }} }}}}{{incvar|refcount}}</includeonly><noinclude>[[Category:Sega Retro 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}}
+
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}}
  
 
==Usage==
 
==Usage==

Revision as of 13:14, 1 June 2019


This is an improved version of the fileref templateMore...[1]. You only need to specify a code, issue and pageMore...[2], the rest should be done for youMore...[3]More...[2]More...[4].No results[5]More...[6]More...[7]

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