Difference between revisions of "Magref"

From Sega Retro

Line 13: Line 13:
 
| file={{#var:filename}}
 
| file={{#var:filename}}
 
| page={{#var:page}}
 
| page={{#var:page}}
}}{{#vardefine:quote|{{{quote|}}}}}{{#if: {{#var:filename}} | {{#tag: ref | {{#if:{{#var:quote}}|"{{#var:quote}}",&nbsp;}}{{#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}}",&nbsp;}}''{{#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:Sega Retro templates]]
+
}}{{#vardefine:quote|{{{quote|}}}}}{{#if: {{#var:filename}} | {{#tag: ref | {{#if:{{#var:quote}}|"{{#var:quote}}",&nbsp;}}{{#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}}",&nbsp;}}''{{#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}}
 
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}}

Revision as of 13:25, 1 January 2022


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]

[9] [10]

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