Difference between revisions of "Ref2"

From Sega Retro

Line 6: Line 6:
 
|{{#var:refcount|1}}
 
|{{#var:refcount|1}}
 
|{{#ifeq:{{#var:refcontent}}|{{#var:ref_{{#var:i}}}}
 
|{{#ifeq:{{#var:refcontent}}|{{#var:ref_{{#var:i}}}}
  |{{#vardefine:reflink|{{#var:i}}}}<!-- Match found with previously used ref. -->
+
  |{{#vardefine:reflink|{{#var:i}}}}{{incvar|refuses_{{#var:reflink}}}}<!-- Match found with previously used ref. -->
 
  |
 
  |
 
  }}
 
  }}
 
}}{{#if: {{#var:reflink}}
 
}}{{#if: {{#var:reflink}}
 
|
 
|
|{{incvar|refcount}}{{#vardefine:ref_{{#var:refcount}}|{{#var:refcontent}}}}{{#vardefine:reflink|{{#var:refcount}}}}<!-- This is a new ref. Add it to the list. -->
+
|{{incvar|refcount}}{{incvar|refuses_{{#var:refcount}}}}{{#vardefine:ref_{{#var:refcount}}|{{#var:refcontent}}}}{{#vardefine:reflink|{{#var:refcount}}}}<!-- This is a new ref. Add it to the list. -->
}}<sup>[[#ref_{{#var:reflink}}|[{{#var:reflink}}]]]</sup></includeonly><noinclude>
+
}}<sup id="refback_{{#var:reflink}}">[[#ref_{{#var:reflink}}|[{{#var:reflink}}]]]</sup></includeonly><noinclude>
  
 
==Usage==
 
==Usage==

Revision as of 11:26, 19 August 2016


Usage

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

This is a fileref.[4] Fileref without page.[5]

5

  1. 1.1 1.2  http://google.com
  2. http://en.wikipedia.org
  3. http://sonicretro.org
  4. File:CVG UK 090.pdf, page 12Media:CVG UK 090.pdf
  5. File:Sonic1 title.pngMedia:Sonic1 title.png