Actions

Template

Difference between revisions of "Magref"

From Sega Retro

(shouldn't break things any more)
 
Line 8: Line 8:
 
|template=Magref/Cargo
 
|template=Magref/Cargo
 
|more results text=
 
|more results text=
}}{{#cargo_store:
+
}}{{FilerefStore
_table = filerefs
 
 
| name={{FULLPAGENAME}}
 
| name={{FULLPAGENAME}}
| file={{#replace:{{#var:filename}}|_|<nowiki/> <nowiki/>}}
+
| file={{#var:filename}}
| filepage={{#var:page}}
+
| page={{#var:page}}
 
}}{{#if: {{#var:filename}} | {{#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}} {{#if:{{#var:printpage}}|({{#var:printpage}})|}}" }} | {{#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]]
 
}}{{#if: {{#var:filename}} | {{#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}} {{#if:{{#var:printpage}}|({{#var:printpage}})|}}" }} | {{#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]]
  

Latest revision as of 00:30, 18 May 2020


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]

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