Template:FormattedReferenceTemplate: Difference between revisions
Jump to navigation
Jump to search
Oostenrijr (talk | contribs) No edit summary |
Oostenrijr (talk | contribs) No edit summary |
||
(16 intermediate revisions by the same user not shown) | |||
Line 13: | Line 13: | ||
* Other: Fields , separated with commas: Editor, SeriesTitle, Publisher, City, Volume, Pages, DOI, Date | * Other: Fields , separated with commas: Editor, SeriesTitle, Publisher, City, Volume, Pages, DOI, Date | ||
</noinclude><includeonly> | </noinclude><includeonly> | ||
{{#set:HasFormattedReference={{#arraymap:{{{Author|}}}|;|xx|xx| | {{#set:HasFormattedReference={{#arraymap:{{{Author|}}}|;|xx|xx|, }} ({{{PublicationYear|}}}). | ||
{{#ifeq:{{{PublicationType|}}}|Report | |||
|{{#ifeq:{{{Title|}}}||| ''{{{Title|}}}'' | |||
}}{{#ifeq:{{{SeriesTitle|}}}||| | }}{{#ifeq:{{{Editor|}}}|||, {{#arraymap:{{{Editor|}}}|;|zz|zz|, }} (eds.) | ||
}}{{#ifeq:{{{Institution|}}}||| | }}{{#ifeq:{{{SeriesTitle|}}}|||, {{{SeriesTitle|}}} | ||
}}{{#ifeq:{{{Publisher|}}}||| | }}{{#ifeq:{{{Institution|}}}|||, {{{Institution|}}} | ||
}}{{#ifeq:{{{City|}}}||| | }}{{#ifeq:{{{Publisher|}}}|||, {{{Publisher|}}} | ||
}}{{#ifeq:{{{DOI|}}}||| | }}{{#ifeq:{{{City|}}}|||, {{{City|}}} | ||
}}{{#ifeq:{{{PBLlink|}}}|||. | }}{{#ifeq:{{{DOI|}}}||| (URL: {{{DOI|}}}) | ||
}}{{#ifeq:{{{PBLlink|}}}|||. Link to PBL-website: {{{PBLlink|}}} | |||
}}. | }}. | ||
|}}{{#ifeq:{{{PublicationType|}}}|Book | |}}{{#ifeq:{{{PublicationType|}}}|Book | ||
|{{#ifeq:{{{Publisher|}}}||| | |{{#ifeq:{{{Title|}}}||| ''{{{Title|}}}'' | ||
}}{{#ifeq:{{{City|}}}||| | }}{{#ifeq:{{{Publisher|}}}|||, {{{Publisher|}}} | ||
}}{{#ifeq:{{{Volume|}}}||| | }}{{#ifeq:{{{City|}}}|||, {{{City|}}} | ||
}}{{#ifeq:{{{DOI|}}}||| | }}{{#ifeq:{{{Volume|}}}|||, {{{Volume|}}} | ||
}}{{#ifeq:{{{DOI|}}}|||, URL: {{{DOI|}}} | |||
}}{{#ifeq:{{{PBLlink|}}}|||.<br/>Link to PBL-website: {{{PBLlink|}}} | }}{{#ifeq:{{{PBLlink|}}}|||.<br/>Link to PBL-website: {{{PBLlink|}}} | ||
}}. | }}. | ||
|}}{{#ifeq:{{{PublicationType|}}}|Book section | |}}{{#ifeq:{{{PublicationType|}}}|Book section | ||
|{{#ifeq:{{{Editor|}}}|||. In: {{#arraymap:{{{Editor|}}}|;|yy|yy| | |{{#ifeq:{{{Title|}}}||| {{{Title|}}} | ||
}}{{#ifeq:{{{BookTitle|}}}||| | }}{{#ifeq:{{{Editor|}}}|||. In: {{#arraymap:{{{Editor|}}}|;|yy|yy|, }} (eds.) | ||
}}{{#ifeq:{{{Publisher|}}}|||. | }}{{#ifeq:{{{BookTitle|}}}|||, ''{{{BookTitle|}}}'' | ||
}}{{#ifeq:{{{City|}}}||| | }}{{#ifeq:{{{Publisher|}}}|||. {{{Publisher|}}} | ||
}}{{#ifeq:{{{Volume|}}}||| | }}{{#ifeq:{{{City|}}}|||, {{{City|}}} | ||
}}{{#ifeq:{{{Pages|}}}||| | }}{{#ifeq:{{{Volume|}}}|||, {{{Volume|}}} | ||
}}{{#ifeq:{{{DOI|}}}||| | }}{{#ifeq:{{{Pages|}}}|||, pp. {{{Pages|}}} | ||
}}{{#ifeq:{{{DOI|}}}|||, URL: {{{DOI|}}} | |||
}}{{#ifeq:{{{PBLlink|}}}|||.<br/>Link to PBL-website: {{{PBLlink|}}} | }}{{#ifeq:{{{PBLlink|}}}|||.<br/>Link to PBL-website: {{{PBLlink|}}} | ||
}}. | }}. | ||
|}}{{#ifeq: {{{PublicationType|}}}|Edited book | |}}{{#ifeq: {{{PublicationType|}}}|Edited book | ||
|{{#ifeq:{{{Editor|}}}||| | |{{#ifeq:{{{Title|}}}||| ''{{{Title|}}}'' | ||
}}{{#ifeq:{{{SeriesTitle|}}}||| | }}{{#ifeq:{{{Editor|}}}|||, {{#arraymap:{{{Editor|}}}|;|yy|yy|, }} (eds.) | ||
}}{{#ifeq:{{{Publisher|}}}||| | }}{{#ifeq:{{{SeriesTitle|}}}|||, ''{{{SeriesTitle|}}} | ||
}}{{#ifeq:{{{City|}}}||| | }}{{#ifeq:{{{Publisher|}}}|||, {{{Publisher|}}} | ||
}}{{#ifeq:{{{Volume|}}}||| | }}{{#ifeq:{{{City|}}}|||, {{{City|}}} | ||
}}{{#ifeq:{{{Volume|}}}|||, {{{Volume|}}} | |||
}}{{#ifeq:{{{PBLlink|}}}|||.<br/>Link to PBL-website: {{{PBLlink|}}} | }}{{#ifeq:{{{PBLlink|}}}|||.<br/>Link to PBL-website: {{{PBLlink|}}} | ||
}}. | }}. | ||
|}}{{#ifeq:{{{PublicationType|}}}|Journal article | |}}{{#ifeq:{{{PublicationType|}}}|Journal article | ||
|{{#ifeq:{{{Journal|}}}|||. | |{{#ifeq:{{{Title|}}}||| {{{Title|}}} | ||
}}{{#ifeq:{{{Volume|}}}||| | }}{{#ifeq:{{{Journal|}}}|||. ''{{{Journal|}}}'' | ||
}}{{#ifeq:{{{Volume|}}}|||, ''{{{Volume|}}}'' | |||
}}{{#ifeq:{{{Issue|}}}|||({{{Issue|}}}) | }}{{#ifeq:{{{Issue|}}}|||({{{Issue|}}}) | ||
}}{{#ifeq:{{{Pages|}}}||| | }}{{#ifeq:{{{Pages|}}}|||, pp. {{{Pages|}}} | ||
}}{{#ifeq:{{{DOI|}}}||| | }}{{#ifeq:{{{DOI|}}}|||, doi: http://dx.doi.org/{{{DOI|}}} | ||
}}{{#ifeq:{{{PBLlink|}}}|||.<br/> Link to PBL-website: {{{PBLlink|}}} | }}{{#ifeq:{{{PBLlink|}}}|||.<br/> Link to PBL-website: {{{PBLlink|}}} | ||
}}. | }}. | ||
|}}{{#ifeq:{{{PublicationType|}}}|Conference proceedings | |}}{{#ifeq:{{{PublicationType|}}}|Conference proceedings | ||
|{{#ifeq:{{{ConferenceName|}}}|||. | |{{#ifeq:{{{Title|}}}||| ''{{{Title|}}}'' | ||
}}{{#ifeq:{{{Volume|}}}||| | }}{{#ifeq:{{{ConferenceName|}}}|||. Paper presented at the {{{ConferenceName|}}} | ||
}}{{#ifeq:{{{Pages|}}}||| | }}{{#ifeq:{{{Volume|}}}|||, {{{Volume|}}} | ||
}}{{#ifeq:{{{DOI|}}}||| | }}{{#ifeq:{{{Pages|}}}|||, pp. {{{Pages|}}} | ||
}}{{#ifeq:{{{DOI|}}}|||, doi: http://dx.doi.org/{{{DOI|}}} | |||
}}{{#ifeq:{{{PBLlink|}}}|||.<br/> Link to PBL-website: {{{PBLlink|}}} | }}{{#ifeq:{{{PBLlink|}}}|||.<br/> Link to PBL-website: {{{PBLlink|}}} | ||
}}. | }}. | ||
|}}{{#ifeq: {{{PublicationType|}}}|Other | |}}{{#ifeq: {{{PublicationType|}}}|Other | ||
|. | |{{#ifeq:{{{Title|}}}||| ''{{{Title|}}}''. | ||
}}{{#ifeq:{{{SecondaryTitle|}}}||| | }}{{#ifeq:{{{SecondaryAuthor|}}}||| {{#arraymap:{{{SecondaryAuthor|}}}|;|yy|yy|, }}. | ||
}}{{#ifeq:{{{Volume|}}}||| | }}{{#ifeq:{{{SecondaryTitle|}}}||| {{{SecondaryTitle|}}}. | ||
}}{{#ifeq:{{{Pages|}}}||| | }}{{#ifeq:{{{Volume|}}}||| {{{Volume|}}}. | ||
}}{{#ifeq:{{{Publisher|}}}||| | }}{{#ifeq:{{{Pages|}}}||| pp {{{Pages|}}}. | ||
}}{{#ifeq:{{{City|}}}||| | }}{{#ifeq:{{{Publisher|}}}||| {{{Publisher|}}}. | ||
}}{{#ifeq:{{{Date|}}}||| | }}{{#ifeq:{{{City|}}}||| {{{City|}}}. | ||
}}{{#ifeq:{{{DOI|}}}||| | }}{{#ifeq:{{{Date|}}}||| Access date: {{{Date|}}}. | ||
}}{{#ifeq:{{{DOI|}}}||| URL: {{{DOI|}}} | |||
}}{{#ifeq:{{{PBLlink|}}}|||.<br/>Link to PBL-website: {{{PBLlink|}}}. | }}{{#ifeq:{{{PBLlink|}}}|||.<br/>Link to PBL-website: {{{PBLlink|}}}. | ||
}} | }} | ||
}}<!-- end of formatted string | |||
-->}}<!-- end of set; set the otherproperties | -->}}<!-- end of set; set the otherproperties | ||
-->{{#set: | -->{{#set: | ||
Line 80: | Line 87: | ||
|HasTitle={{{Title|}}} | |HasTitle={{{Title|}}} | ||
|HasAuthor={{{Author|}}}|+sep=; | |HasAuthor={{{Author|}}}|+sep=; | ||
|HasAuthorList={{#arraymap:{{{Author|}}}|;|xx|xx|, }} | |||
|HasSecondaryTitle={{{SecondaryTitle|}}} | |HasSecondaryTitle={{{SecondaryTitle|}}} | ||
|HasSecondaryAuthor={{{SecondaryAuthor|}}}|+sep=; | |HasSecondaryAuthor={{{SecondaryAuthor|}}}|+sep=; | ||
Line 99: | Line 107: | ||
|HasISBN={{{ISBN|}}} | |HasISBN={{{ISBN|}}} | ||
|HasConferenceName={{{ConferenceName|}}} | |HasConferenceName={{{ConferenceName|}}} | ||
}}</includeonly> | }}<!-- | ||
-->{{#iferror: {{#expr:{{{PublicationYear|}}} < 2001 }}|{{#set:HasPeriod= 2016 up to today}} | |||
|{{#ifexpr:{{{PublicationYear|}}}< 2001 | |||
|{{#set:HasPeriod=2000 and before}} | |||
|{{#ifexpr:{{{PublicationYear|}}} < 2006 | |||
|{{#set:HasPeriod= 2001-2005}} | |||
|{{#ifexpr:{{{PublicationYear|}}} < 2011 | |||
|{{#set:HasPeriod= 2006-2010}} | |||
|{{#ifexpr:{{{PublicationYear|}}} < 2016 | |||
|{{#set:HasPeriod= 2011-2015}} | |||
|{{#set:HasPeriod= 2016 up to today}} | |||
}} | |||
}} | |||
}} | |||
}} | |||
}}</includeonly> |
Latest revision as of 12:35, 13 June 2018
params: all reference parameters to set the reference related properties and create the formatted reference string
Assumption : There is always an Author, PublicationYear and Title
Below the templates as used in the IMAGEbook endnote library, (needs update)
- report: Author (Year). Title, Series Editor` (ed.)^(eds.),` Series Title|, Institution, Publisher, Place Published| `( ``URL:` URL) `(DOI`: DOI`)` |.
- Book: Author (Year). Title| Series Title|. Publisher, Place Published, URL|.
- Book section: Author (Year). Title|. `In`: Editor` (ed.)^(eds.)`, Book Title|. Publisher, Place Published, `pp.` Pages, URL|.
- Edited book: Editor` (ed.)^(eds.) ` (Year). Title|. Series Title, Series Editor, Publisher, Place Published, URL|.
- Journal article: Author (Year). Title. Journal| Volume|( Issue )|,` pp.` Pages `(DOI`: DOI)|.
- Conference proceedings: Author (Year). Title. `Paper presented at the`ConferenceName| Volume|,` pp.` Pages `(DOI`: DOI)
- Other: Fields , separated with commas: Editor, SeriesTitle, Publisher, City, Volume, Pages, DOI, Date