Difference between revisions of "Refs"

From Sega Retro

Line 3: Line 3:
 
|{{#var:refcount|0}}
 
|{{#var:refcount|0}}
 
| <li><span id="ref_{{#var:i}}">{{#ifeq: {{#sub:{{#var:ref_{{#var:i}}}}|0|5}} | File:
 
| <li><span id="ref_{{#var:i}}">{{#ifeq: {{#sub:{{#var:ref_{{#var:i}}}}|0|5}} | File:
  |[{{fullurl:{{#replace:{{#explode:{{#var:ref_{{#var:i}}}}|, page |0}}| |_}}|page={{#explode:{{#var:ref_{{#var:i}}}}| |-1}}}} {{#var:ref_{{#var:i}}}}]
+
  |{{#if: {{#pos:{{#var:ref_{{#var:i}}}}|, page }}
  |{{#var:ref_{{#var:i}}}}
+
  |[{{fullurl:{{#replace:{{#explode:{{#var:ref_{{#var:i}}}}|, page |0}}| |_}}|page={{#explode:{{#var:ref_{{#var:i}}}}| |-1}}}} {{#var:ref_{{#var:i}}}}]<!-- File with page specified. -->
 +
  |[{{fullurl:{{#replace:{{#var:ref_{{#var:i}}}}| |_}}}} {{#var:ref_{{#var:i}}}}]<!-- File without page. -->
 +
  }}
 +
  |{{#var:ref_{{#var:i}}}}<!-- Standard link, use as-is. -->
 
  }}</span></li>
 
  }}</span></li>
 
}}</ol></includeonly><noinclude>
 
}}</ol></includeonly><noinclude>

Revision as of 10:51, 19 August 2016


Usage

This is an example.[1] And another example.[2] Same as first.[1] Third.[3]

Fileref.[4]

  1. http://google.com
  2. http://en.wikipedia.org
  3. http://sonicretro.org
  4. File:CVG UK 090.pdf, page 12