Template:Include references models cargo: Difference between revisions

From CSDMS
No edit summary
No edit summary
Line 1: Line 1:
{{#ifeq:{{#cargo_query:tables=RefsInt2|where = PublicationMultipleModelsCargo  LIKE "{{PAGENAME}}"|default=}}|| empty results | {{#arraydefine:refs |{{#cargo_query:tables= RefsInt2|where = PublicationMultipleModelsCargo LIKE "{{PAGENAME}}"| fields=_pageName|format=template|template=Test3a}} }} }}
{{#ifeq:{{#cargo_query:tables=RefsInt2|where = PublicationMultipleModelsCargo  LIKE "{{PAGENAME}}"|default=}}|| empty results |<table> {{#arraydefine:refs |{{#cargo_query:tables= RefsInt2|where = PublicationMultipleModelsCargo LIKE "{{PAGENAME}}"| fields=_pageName|format=template|template=Test3a}} }} }}
{{
{{
   #loop: i
   #loop: i
Line 5: Line 5:
   | {{#expr:{{#arraysize:refs}}-1}} <!-- number of loops; remove one as Cargo adds one in the end -->
   | {{#expr:{{#arraysize:refs}}-1}} <!-- number of loops; remove one as Cargo adds one in the end -->
   | <nowiki/>
   | <nowiki/>
* {{
<tr><td> {{
     #arraydefine: val | {{#arrayindex:refs | {{#var:i}} }} | ;
     #arraydefine: val | {{#arrayindex:refs | {{#var:i}} }} | ;
     }}{{#cargo_query:tables=RefsExt|where = _pageName = '{{#arrayindex: val | 0}}'|default=|fields= Lastname, Firstname|format=template|template=Test4a}}{{#cargo_query:tables=RefsExt2|where = _pageName = '{{#arrayindex: val | 0}}'|default=|fields= ItemType, Title , PublicationTitle,  Booktitle, JournalAbbreviation, Volume, Issue, Url, DOI, Pagenumbers, Publicationdate, AccessDate |format=template|template=Test5a}}{{#cargo_query:tables=RefsInt2|where = _pageName = '{{#arrayindex: val | 0}}'|default=|fields= PublicationMultipleModelsCargo|format=template|template=Test7a}}{{#cargo_query:tables=RefsInt1|where = _pageName = '{{#arrayindex: val | 0}}'|default=|fields= PublicationClusterID|format=template|template=Test8a}}
     }}{{#cargo_query:tables=RefsExt|where = _pageName = '{{#arrayindex: val | 0}}'|default=|fields= Lastname, Firstname|format=template|template=Test4a}}{{#cargo_query:tables=RefsExt2|where = _pageName = '{{#arrayindex: val | 0}}'|default=|fields= ItemType, Title , PublicationTitle,  Booktitle, JournalAbbreviation, Volume, Issue, Url, DOI, Pagenumbers, Publicationdate, AccessDate |format=template|template=Test5a}}</td><td>{{#cargo_query:tables=RefsInt2|where = _pageName = '{{#arrayindex: val | 0}}'|default=|fields= PublicationMultipleModelsCargo|format=template|template=Test7a}}</td><td>{{#cargo_query:tables=RefsInt1|where = _pageName = '{{#arrayindex: val | 0}}'|default=|fields= PublicationClusterID|format=template|template=Test8a}}</td>
}}
}}</table>

Revision as of 11:30, 8 May 2017

empty results