Template:Include references models cargo1: Difference between revisions

From CSDMS
(Created page with "{{#ifeq:{{#cargo_query:tables=RefsInt2|where = PublicationMultipleModelsCargo LIKE "{{PAGENAME}}"|default=}}|||{{Publication_table_models1}} {{#arraydefine:refs |{{#cargo_que...")
 
No edit summary
 
(106 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#ifeq:{{#cargo_query:tables=RefsInt2|where = PublicationMultipleModelsCargo  LIKE "{{PAGENAME}}"|default=}}|||{{Publication_table_models1}} {{#arraydefine:refs |{{#cargo_query:tables= RefsInt2|where = PublicationMultipleModelsCargo LIKE "{{PAGENAME}}"| fields=_pageName|format=template|template=Test3a}} }} }}
<div class="row">
    <div class="col-sm-9"><center> {{PageTitle| References [[Model:{{#replace:{{PAGENAME}}|-Publications}}|{{#replace:{{PAGENAME}}|-Publications}}]] }}</center><br></div>
  <div class="col-sm-3"></div></div>
<div class="row">
  <div class="col-sm-9">{{#ifeq:{{#cargo_query:tables=RefsInt2|where = PublicationMultipleModelsCargo  LIKE "{{#replace:{{PAGENAME}}|-Publications}}"|limit=2500|default=}}|||{{Publication_table_models1}} {{#arraydefine:refs |{{#cargo_query:tables= RefsInt2|where = PublicationMultipleModelsCargo LIKE "{{#replace:{{PAGENAME}}|-Publications}}"| fields=_pageName|format=template|limit=2500|template=Test3a}} }} }}
{{
{{
   #loop: i
   #loop: i
   | 0                    <!-- loops start value for {{#var:i}} -->
   | 0                    <!-- loops start value for {{#var:i}} -->
   | {{#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 -->
   | <tr><td> {{
   | <tr valign="top"><td style="word-wrap:break-word;">{{
     #arraydefine: val | {{#arrayindex:refs | {{#var:i}} }} | ;
     #arraydefine: val | {{#arrayindex:refs | {{#var:i}} }} | ;
     }}{{#ifeq:{{#cargo_query:tables=RefsExt2|where = _pageName = '{{#arrayindex: val | 0}}'|default=|fields=ItemType}}| |{{#cargo_query:tables= AuthorsMan|where = _pageName = '{{#arrayindex: val | 0}}'|default=|fields=_ID, Firstname|order by=_ID ASC |format=template|template=Test4b}}{{#cargo_query:tables=BibEntryCargo|where = _pageName = '{{#arrayindex: val | 0}}'|default=|fields=_pageName, BibType,Title, Editors, Year, Journal, Booktitle, Volume,Pages, URL, DOI, ISBN, Note|format=template|template=Test6a}}|{{#cargo_query:tables=RefsExt|where = _pageName = '{{#arrayindex: val | 0}}'|default=|fields=_ID, Lastname, Firstname|order by=_ID ASC |format=template|template=Test4a}}{{#cargo_query:tables=RefsExt2|where = _pageName = '{{#arrayindex: val | 0}}'|default=|fields=_pageName, 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= PublicationWhatKindOf, PublicationClusterID, PublicationCitationsNr, MS_PublicationClusterID|format=template|template=Test8a}}</td>
     }}{{#ifeq:{{#cargo_query:tables=RefsExt2|where = _pageName = '{{#arrayindex: val | 0}}'|limit=2500|default=|fields=ItemType}}| |{{#cargo_query:tables=BibEntryCargo|where = _pageName = '{{#arrayindex: val | 0}}'|limit=2500|default=|fields=_pageName=Page, BibType=bib,Title=tit, Editors=eds, DATE_FORMAT(Year,"%Y")=var1, Journal=jour, Booktitle=book, Volume=vol,Pages=pag, URL=url, DOI=doi, ISBN=isb, Note=note, Firstname=name|named args=yes|format=template|template=Test6a}}|{{#cargo_query:tables=RefsExt|where = _pageName = '{{#arrayindex: val | 0}}'|limit=2500|default=|fields=_ID=id, Lastname=lastname, Firstname=firstname|order by=_ID ASC |named args=yes|format=template|template=Test4a}}{{#cargo_query:tables=RefsExt2|where = _pageName = '{{#arrayindex: val | 0}}'|limit=2500|default=|fields=_pageName=Page, ItemType=item, Title=tit , PublicationTitle=pubtit,  Booktitle=booktit, JournalAbbreviation=jourabb, Volume=vol, Issue=issue, Url=url, DOI=doi, Pagenumbers=pages, Publicationdate=pubdate, AccessDate=accessdate|named args=yes|format=template|template=Test5a}} }}</td><!--<td style="word-wrap:break-word;">{{#cargo_query:tables=RefsInt2|where = _pageName = '{{#arrayindex: val | 0}}'|limit=2500|default=|fields= PublicationMultipleModelsCargo|format=template|template=Test7a}}</td>--><td style="word-wrap:break-word;">{{#cargo_query:tables=RefsInt1|where = _pageName = '{{#arrayindex: val | 0}}'|limit=2500|default=|fields= PublicationWhatKindOf, PublicationClusterID, PublicationCitationsNr, Semantic_ID|format=template|template=Test8a}}</td>
}}</table></div></div>
}}</table></div></div>
</div>
    <div class="col-sm-3">
{{#ifeq:{{AutoMineRefs_{{#replace:{{PAGENAME}}|-Publications }}}}|1|<div class="row, p-3 mb-2 bg-secondary text-white"><div class="col-sm-12" style="overflow-wrap:break-word; word-break:break-word"><b>References are automatically added</b> </div></div>{{{info|''<small>Our search algorithms might occasionally miss, or accidentally include a reference. If so, feel free add a missing reference by using the buttons below, or notify csdmsweb@colorado.edu</small><br><br>''}}} |}}
<div class="row, p-3 mb-2 bg-secondary text-white"><div class="col-sm-12" style="overflow-wrap:break-word; word-break:break-word"><b>Add references</div></div>{{AddReferenceUploadButtons1}}<br>
{{#ifexist:Template:{{#replace:{{PAGENAME}}|-Publications}}-citations-per-year-full|
<div class="row, p-3 mb-2 bg-secondary text-white"><div class="col-sm-12" style="overflow-wrap:break-word; word-break:break-word">Citations</div></div></b>
[[Template:{{#replace:{{PAGENAME}}|-Publications}}-citations-per-year-full|View all]]<br>
<div class=AutoScaleImage>{{ {{#replace:{{PAGENAME}}|-Publications}}-citations-per-year}}</div>
{{ {{#replace:{{PAGENAME}}|-Publications }}-citation-indices}} <br>| }}
{{#ifexist:Template:{{#replace:{{PAGENAME}}|-Publications}}-pubs-per-year-full|
<div class="row, p-3 mb-2 bg-secondary text-white"><div class="col-sm-12" style="overflow-wrap:break-word; word-break:break-word">Publications per year</div></div>
[[Template:{{#replace:{{PAGENAME}}|-Publications}}-pubs-per-year-full|View all]]<br>
<div class=AutoScaleImage>{{ {{#replace:{{PAGENAME}}|-Publications}}-pubs-per-year}}</div><br><br>
</div>
<br><br>|}}

Latest revision as of 12:17, 4 February 2022

Add references