Difference between revisions of "Refs"

From Sega Retro

 
(6 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
|1
 
|1
 
|{{#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}}">{{#ifexpr: {{#var:refuses_{{#var:i}}}}>1
  |[{{fullurl:{{#replace:{{#explode:{{#var:ref_{{#var:i}}}}|, page |0}}| |_}}|page={{#explode:{{#var:ref_{{#var:i}}}}| |-1}}}} {{#var:ref_{{#var:i}}}}]
+
| ↑ {{#loop:j | 1 | {{#var:refuses_{{#var:i}}}} | <sup>[[#refback_{{#var:i}}_{{#var:j}}|{{#var:i}}.{{#var:j}}]]</sup>&nbsp; }}
  |{{#var:ref_{{#var:i}}}}
+
| [[#refback_{{#var:i}}_1|↑]] }}
 +
{{#ifeq: {{#sub:{{#var:ref_{{#var:i}}}}|0|5}} | File:
 +
  |{{#if: {{#pos:{{#var:ref_{{#var:i}}}}|, page }}
 +
  |[{{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. -->
 +
  }}<span style="display:none">[[Media:{{#replace:{{#explode:{{#var:ref_{{#var:i}}}}|, page |0}}|File:}}]]</span>
 +
  |{{#var:ref_{{#var:i}}}}<!-- Standard link, use as-is. -->
 
  }}</span></li>
 
  }}</span></li>
 
}}</ol></includeonly><noinclude>
 
}}</ol></includeonly><noinclude>
Line 15: Line 21:
 
{{refs}}
 
{{refs}}
  
[[Category:Sega Retro templates]]
+
[[Category:Experimental templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 09:47, 19 July 2018