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