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...")
 
Line 1: Line 1:
<includeonly>{{#vardefine:pubcode|{{{1}}}}}{{#vardefine:issueno|{{{2}}}}}{{#vardefine:page|{{{3|}}}}}{{#cargo_query:
+
<includeonly><div style="display:none;">{{#vardefine:pubcode|{{{1}}}}}{{#vardefine:issueno|{{{2}}}}}{{#vardefine:page|{{{3|}}}}}{{#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
Line 7: Line 7:
 
|format=template
 
|format=template
 
|template=Fileref2/Cargo
 
|template=Fileref2/Cargo
}}
+
}}</div>{{#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:issuenamename}} ({{#var:country}}; {{#var:date}}), page {{#var:page}}] | [[:File:{{#var:filename}}]]}} | name=":File:{{#var:filename}}_p{{#var:page}}" }}{{incvar|refcount}}</includeonly><noinclude>[[Category:Sega Retro templates]]
  
 +
This is an improved version of the fileref template{{fileref2|mms|12|34}}. You only need to specify a code, issue and page{{fileref2|edge|10|20}}, the rest should be done for you{{fileref2|hyper|1|2}}{{fileref2|edge|10|20}}.
  
 +
==Usage==
 +
<pre>
 +
{{fileref2|<CODE>|<ISSUE>|<PAGE>}}
 +
</pre>
  
  
 
+
==References==
{{#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:issuenamename}} ({{#var:country}}; {{#var:date}}), page {{#var:page}}] | [[:File:{{#var:filename}}]]}} | name=":File:{{#var:filename}}_p{{#var:page}}" }}{{incvar|refcount}}</includeonly><noinclude>[[Category:Sega Retro templates]]
+
<references />
 
 
{{fileref2|mms|12|34}}
 
 
 
 
</noinclude>
 
</noinclude>

Revision as of 10:58, 19 October 2018


This is an improved version of the fileref templateTemplate:Fileref2. You only need to specify a code, issue and pageTemplate:Fileref2, the rest should be done for youTemplate:Fileref2Template:Fileref2.

Usage

{{fileref2|<CODE>|<ISSUE>|<PAGE>}}


References