Difference between revisions of "Magref"
From Sega Retro
m (Black Squirrel moved page Template:Fileref2 to Template:Magref without leaving a redirect: no you're right - better to do books separately) |
|||
Line 9: | Line 9: | ||
}}</div>{{#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 {{#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}}}} }}}}{{incvar|refcount}}</includeonly><noinclude>[[Category:Sega Retro templates]] | }}</div>{{#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 {{#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}}}} }}}}{{incvar|refcount}}</includeonly><noinclude>[[Category:Sega Retro templates]] | ||
− | This is an improved version of the fileref template{{ | + | 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}} |
==Usage== | ==Usage== | ||
<pre> | <pre> | ||
− | {{ | + | {{magref|<CODE>|<ISSUE>|<PAGE>}} |
</pre> | </pre> | ||