Template:CSDMS reference template: Difference between revisions

From CSDMS
No edit summary
No edit summary
Line 15: Line 15:
</pre>
</pre>
Edit the page to see the template text.  
Edit the page to see the template text.  
</noinclude><includeonly>{{#set: DOI-entry={{{DOI-entry|}}}}}</includeonly>
</noinclude><includeonly>{{#set: DOI-entry={{{DOI-entry|}}}}}</includeonly><noinclude>
{{#get_web_data:url=https://citoid.wikimedia.org/api?format=zotero&search={{{DOI-entry}}}|format=json|data=ref_firstName=firstName,ref_lastName=lastName,ref_tag=tag,ref_title=title,ref_publicationTitle=publicationTitle,ref_journalAbbreviation=journalAbbreviation,ref_volume=volume,ref_issue=issue,ref_ISSN=ISSN,ref_url=url,ref_DOI=DOI,ref_pages=pages,ref_date=date,ref_abstractNote=abstractNote,ref_language=language,ref_libraryCatalog=libraryCatalog,ref_accessDate=accessDate}}{{#store_external_table:References_external
{{#get_web_data:url=https://citoid.wikimedia.org/api?format=zotero&search={{{DOI-entry}}}|format=json|data=ref_firstName=firstName,ref_lastName=lastName,ref_tag=tag,ref_title=title,ref_publicationTitle=publicationTitle,ref_journalAbbreviation=journalAbbreviation,ref_volume=volume,ref_issue=issue,ref_ISSN=ISSN,ref_url=url,ref_DOI=DOI,ref_pages=pages,ref_date=date,ref_abstractNote=abstractNote,ref_language=language,ref_libraryCatalog=libraryCatalog,ref_accessDate=accessDate}}{{#store_external_table:References_external
|First Name={{{ref_firstName}}}
|First Name={{{ref_firstName}}}
Line 36: Line 36:
}}
}}


</noinclude><includeonly>__SHOWFACTBOX__ <table><tr><td valign=top width="80%">[[Publication-citation::{{{Publication-citation|}}}]] {{#set:Publication-DOI={{{Publication-DOI|}}}}} {{#ifeq: {{#show:{{FULLPAGENAME}} |? Publication-DOI}} ||| (doi): [http://dx.doi.org/{{#show:{{FULLPAGENAME}} |? Publication-DOI}} {{#show:{{FULLPAGENAME}} |? Publication-DOI}}] }}
{{#set:Publication-URL={{{Publication-URL|}}}}}{{#set:Publication-ClusterID={{ {{{Publication-ClusterID|}}} }} }}  {{#set:ClusterID= {{{Publication-ClusterID|}}} }}  {{#set:Publication-what-kind-of={{{Publication-what-kind-of|}}}}} {{#set:Publication-nrof-models={{{Publication-nrof-models|}}}}} {{#set:Publication-HPCC-yesno={{{Publication-HPCC-yesno|}}}}} {{#ifeq: {{#show:{{FULLPAGENAME}} |? Publication-ClusterID}} ||| ''(cited: {{#show:{{FULLPAGENAME}} |? Publication-ClusterID}} }})''  
{{#set:Publication-URL={{{Publication-URL|}}}}}{{#set:Publication-ClusterID={{ {{{Publication-ClusterID|}}} }} }}  {{#set:ClusterID= {{{Publication-ClusterID|}}} }}  {{#set:Publication-what-kind-of={{{Publication-what-kind-of|}}}}} {{#set:Publication-nrof-models={{{Publication-nrof-models|}}}}} {{#set:Publication-HPCC-yesno={{{Publication-HPCC-yesno|}}}}} {{#ifeq: {{#show:{{FULLPAGENAME}} |? Publication-ClusterID}} ||| ''(cited: {{#show:{{FULLPAGENAME}} |? Publication-ClusterID}} }})''  
 
</td></tr></table>


{{#for_external_table: {{{ref_lastName}}}, {{{ref_firstName}}},&nbsp;}}{{#time:Y|{{#for_external_table: {{{ref_date}}} }}}}.&nbsp;{{#for_external_table:{{{ref_title}}}, {{{ref_publicationTitle}}}, {{{ref_volume}}}, {{{ref_pages}}}.}}
{{#for_external_table: {{{ref_lastName}}}, {{{ref_firstName}}},&nbsp;}}{{#time:Y|{{#for_external_table: {{{ref_date}}} }}}}.&nbsp;{{#for_external_table:{{{ref_title}}}, {{{ref_publicationTitle}}}, {{{ref_volume}}}, {{{ref_pages}}}.}}

Revision as of 18:42, 24 September 2016

This is the 'CSDMS reference template' template. It should be called in the following format:

{{CSDMS_reference_template
|DOI-entry=
|Publication-URL=
|Publication-ClusterID=
|Publication-what-kind-of=
|Publication-nrof-models=
|Publication-HPCC-yesno=
|ClusterID=
}}
}}

Edit the page to see the template text.

Error while fetching data from URL https://citoid.wikimedia.org/api?format=zotero&search={{{DOI-entry}}}: $2.
Error fetching URL: Could not resolve host: citoid.wikimedia.org
There was a problem during the HTTP request: 0 Error
Could not get URL https://citoid.wikimedia.org/api?format=zotero&search={{{DOI-entry}}} after 3 tries.
{{#store_external_table:References_external |First Name={{{ref_firstName}}} |Last Name={{{ref_lastName}}} |Tag={{{ref_tag}}} |Title={{{ref_title}}} |Journal={{{ref_publicationTitle}}} |Journal Abbreviation={{{ref_journalAbbreviation}}} |Volume={{{ref_volume}}} |Issue={{{ref_issue}}} |ISSN={{{ref_ISSN}}} |URL={{{ref_url}}} |DOI={{{ref_DOI}}} |Pages={{{ref_pages}}} |Date={{{ref_date}}} |Abstract={{{ref_abstractNote}}} |Language={{{ref_language}}} |Catalog={{{ref_libraryCatalog}}} |Retrieve date={{{ref_accessDate}}} }}