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== |