Personal tools

Template:XrefExternalRefs: Difference between revisions

From FANTOM5_SSTAR

Jump to: navigation, search
(Created page with "<!--{{XrefExternalRefs|{{xrefs}}| }}-->{{#arraydefine:xrefs_content_array|{{{1}}}|;;}}{|class="wikitable mw-collapsible mw-collapsed" style="width:auto" ! links: |- |<table ce...")
 
mNo edit summary
 
Line 1: Line 1:
<!--{{XrefExternalRefs|{{xrefs}}| }}-->{{#arraydefine:xrefs_content_array|{{{1}}}|;;}}{|class="wikitable mw-collapsible mw-collapsed" style="width:auto"
<!--{{XrefExternalRefs|{{xrefs}}| }}{{#arraydefine:xrefs_content_array|{{{1}}}|;;}}{|class="wikitable mw-collapsible mw-collapsed" style="width:auto"
! links:
! links:
|-
|-
Line 6: Line 6:
   | {{#arraysize:xrefs_content_array}}
   | {{#arraysize:xrefs_content_array}}
   | <nowiki/>{{#arraydefine:elements|{{#arrayindex:xrefs_content_array|{{#var:p}} }}|:|}}{{#vardefine:raw_element_prefix|{{#arrayindex:elements|0}} }}{{#vardefine:raw_element_postfix|{{#arrayindex:elements|1}} }}{{#vardefine:RESOURCE_URL_BUILD|{{#ifeq: {{#var:raw_element_prefix}} |http|[{{#arrayindex:xrefs_content_array|{{#var:p}}}}]|{{#var:raw_element_prefix}}:[http://www.ebi.ac.uk/ontology-lookup/?termId={{#var:raw_element_prefix}}:{{#var:raw_element_postfix}} {{#var:raw_element_postfix}}]}}}}{{#var:RESOURCE_URL_BUILD}}<br>}}</tr></table>
   | <nowiki/>{{#arraydefine:elements|{{#arrayindex:xrefs_content_array|{{#var:p}} }}|:|}}{{#vardefine:raw_element_prefix|{{#arrayindex:elements|0}} }}{{#vardefine:raw_element_postfix|{{#arrayindex:elements|1}} }}{{#vardefine:RESOURCE_URL_BUILD|{{#ifeq: {{#var:raw_element_prefix}} |http|[{{#arrayindex:xrefs_content_array|{{#var:p}}}}]|{{#var:raw_element_prefix}}:[http://www.ebi.ac.uk/ontology-lookup/?termId={{#var:raw_element_prefix}}:{{#var:raw_element_postfix}} {{#var:raw_element_postfix}}]}}}}{{#var:RESOURCE_URL_BUILD}}<br>}}</tr></table>
|}-->
{{#arraydefine:xrefs_content_array|{{{1}}}|;;}}
{|class="wikitable mw-collapsible mw-collapsed" style="width:auto"
! links:
|-
|<table cellspacing="0" border="1"><tr>{{#loop: p
  | 0         
  | {{#arraysize:xrefs_content_array}}
  | <nowiki/>{{#vardefine:element|{{#arrayindex:xrefs_content_array|{{#var:p}}}}}} {{#vardefine:el|{{#sub:{{#var:element}}|{{#expr:{{#rpos:{{#var:element}} |/}}+1}}|{{#len:{{#var:element}}}} }} }}
{{#arraydefine:elements|{{#var:element}}|:|}}{{#vardefine:raw_element_prefix|{{#arrayindex:elements|0}} }}{{#vardefine:raw_element_postfix|{{#arrayindex:elements|1}} }}{{#vardefine:RESOURCE_URL_BUILD|{{#ifeq: {{#var:raw_element_prefix}} |http|{{#ifexpr:{{#rpos:{{#var:el}}|png}}<0|[{{#arrayindex:xrefs_content_array|{{#var:p}}}}]|[ {{#var:element}} {{#var:el}}]}}  |{{#var:raw_element_prefix}}:[http://www.ebi.ac.uk/ontology-lookup/?termId={{#var:raw_element_prefix}}:{{#var:raw_element_postfix}} {{#var:raw_element_postfix}}]}}}}{{#var:RESOURCE_URL_BUILD}}<br>}}</tr></table>
|}
|}

Latest revision as of 16:15, 4 February 2014


links:
{{{1}}}:[1]