Template:FormattedReferenceTemplate: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
Oostenrijr (talk | contribs) No edit summary |
||
(43 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
< | <noinclude> | ||
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`)` |. | |||
{{#ifeq: {{{ | *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|. | |||
{{#ifeq:{{{PublicationType|}}}| | *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)|. | |||
{{#ifeq: {{{PublicationType|}}}| | *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 | |||
</noinclude><includeonly> | |||
{{#set:HasFormattedReference={{#arraymap:{{{Author|}}}|;|xx|xx|, }} ({{{PublicationYear|}}}). | |||
</includeonly> | {{#ifeq:{{{PublicationType|}}}|Report | ||
|{{#ifeq:{{{Title|}}}||| ''{{{Title|}}}'' | |||
}}{{#ifeq:{{{Editor|}}}|||, {{#arraymap:{{{Editor|}}}|;|zz|zz|, }} (eds.) | |||
}}{{#ifeq:{{{SeriesTitle|}}}|||, {{{SeriesTitle|}}} | |||
}}{{#ifeq:{{{Institution|}}}|||, {{{Institution|}}} | |||
}}{{#ifeq:{{{Publisher|}}}|||, {{{Publisher|}}} | |||
}}{{#ifeq:{{{City|}}}|||, {{{City|}}} | |||
}}{{#ifeq:{{{DOI|}}}||| (URL: {{{DOI|}}}) | |||
}}{{#ifeq:{{{PBLlink|}}}|||. Link to PBL-website: {{{PBLlink|}}} | |||
}}. | |||
|}}{{#ifeq:{{{PublicationType|}}}|Book | |||
|{{#ifeq:{{{Title|}}}||| ''{{{Title|}}}'' | |||
}}{{#ifeq:{{{Publisher|}}}|||, {{{Publisher|}}} | |||
}}{{#ifeq:{{{City|}}}|||, {{{City|}}} | |||
}}{{#ifeq:{{{Volume|}}}|||, {{{Volume|}}} | |||
}}{{#ifeq:{{{DOI|}}}|||, URL: {{{DOI|}}} | |||
}}{{#ifeq:{{{PBLlink|}}}|||.<br/>Link to PBL-website: {{{PBLlink|}}} | |||
}}. | |||
|}}{{#ifeq:{{{PublicationType|}}}|Book section | |||
|{{#ifeq:{{{Title|}}}||| {{{Title|}}} | |||
}}{{#ifeq:{{{Editor|}}}|||. In: {{#arraymap:{{{Editor|}}}|;|yy|yy|, }} (eds.) | |||
}}{{#ifeq:{{{BookTitle|}}}|||, ''{{{BookTitle|}}}'' | |||
}}{{#ifeq:{{{Publisher|}}}|||. {{{Publisher|}}} | |||
}}{{#ifeq:{{{City|}}}|||, {{{City|}}} | |||
}}{{#ifeq:{{{Volume|}}}|||, {{{Volume|}}} | |||
}}{{#ifeq:{{{Pages|}}}|||, pp. {{{Pages|}}} | |||
}}{{#ifeq:{{{DOI|}}}|||, URL: {{{DOI|}}} | |||
}}{{#ifeq:{{{PBLlink|}}}|||.<br/>Link to PBL-website: {{{PBLlink|}}} | |||
}}. | |||
|}}{{#ifeq: {{{PublicationType|}}}|Edited book | |||
|{{#ifeq:{{{Title|}}}||| ''{{{Title|}}}'' | |||
}}{{#ifeq:{{{Editor|}}}|||, {{#arraymap:{{{Editor|}}}|;|yy|yy|, }} (eds.) | |||
}}{{#ifeq:{{{SeriesTitle|}}}|||, ''{{{SeriesTitle|}}} | |||
}}{{#ifeq:{{{Publisher|}}}|||, {{{Publisher|}}} | |||
}}{{#ifeq:{{{City|}}}|||, {{{City|}}} | |||
}}{{#ifeq:{{{Volume|}}}|||, {{{Volume|}}} | |||
}}{{#ifeq:{{{PBLlink|}}}|||.<br/>Link to PBL-website: {{{PBLlink|}}} | |||
}}. | |||
|}}{{#ifeq:{{{PublicationType|}}}|Journal article | |||
|{{#ifeq:{{{Title|}}}||| {{{Title|}}} | |||
}}{{#ifeq:{{{Journal|}}}|||. ''{{{Journal|}}}'' | |||
}}{{#ifeq:{{{Volume|}}}|||, ''{{{Volume|}}}'' | |||
}}{{#ifeq:{{{Issue|}}}|||({{{Issue|}}}) | |||
}}{{#ifeq:{{{Pages|}}}|||, pp. {{{Pages|}}} | |||
}}{{#ifeq:{{{DOI|}}}|||, doi: http://dx.doi.org/{{{DOI|}}} | |||
}}{{#ifeq:{{{PBLlink|}}}|||.<br/> Link to PBL-website: {{{PBLlink|}}} | |||
}}. | |||
|}}{{#ifeq:{{{PublicationType|}}}|Conference proceedings | |||
|{{#ifeq:{{{Title|}}}||| ''{{{Title|}}}'' | |||
}}{{#ifeq:{{{ConferenceName|}}}|||. Paper presented at the {{{ConferenceName|}}} | |||
}}{{#ifeq:{{{Volume|}}}|||, {{{Volume|}}} | |||
}}{{#ifeq:{{{Pages|}}}|||, pp. {{{Pages|}}} | |||
}}{{#ifeq:{{{DOI|}}}|||, doi: http://dx.doi.org/{{{DOI|}}} | |||
}}{{#ifeq:{{{PBLlink|}}}|||.<br/> Link to PBL-website: {{{PBLlink|}}} | |||
}}. | |||
|}}{{#ifeq: {{{PublicationType|}}}|Other | |||
|{{#ifeq:{{{Title|}}}||| ''{{{Title|}}}''. | |||
}}{{#ifeq:{{{SecondaryAuthor|}}}||| {{#arraymap:{{{SecondaryAuthor|}}}|;|yy|yy|, }}. | |||
}}{{#ifeq:{{{SecondaryTitle|}}}||| {{{SecondaryTitle|}}}. | |||
}}{{#ifeq:{{{Volume|}}}||| {{{Volume|}}}. | |||
}}{{#ifeq:{{{Pages|}}}||| pp {{{Pages|}}}. | |||
}}{{#ifeq:{{{Publisher|}}}||| {{{Publisher|}}}. | |||
}}{{#ifeq:{{{City|}}}||| {{{City|}}}. | |||
}}{{#ifeq:{{{Date|}}}||| Access date: {{{Date|}}}. | |||
}}{{#ifeq:{{{DOI|}}}||| URL: {{{DOI|}}} | |||
}}{{#ifeq:{{{PBLlink|}}}|||.<br/>Link to PBL-website: {{{PBLlink|}}}. | |||
}} | |||
}}<!-- end of formatted string | |||
-->}}<!-- end of set; set the otherproperties | |||
-->{{#set: | |||
HasPublicationType={{{PublicationType|}}} | |||
|HasTitle={{{Title|}}} | |||
|HasAuthor={{{Author|}}}|+sep=; | |||
|HasAuthorList={{#arraymap:{{{Author|}}}|;|xx|xx|, }} | |||
|HasSecondaryTitle={{{SecondaryTitle|}}} | |||
|HasSecondaryAuthor={{{SecondaryAuthor|}}}|+sep=; | |||
|HasPublicationYear={{{PublicationYear|}}} | |||
|HasPublicationDate={{{PublicationDate|}}} | |||
|HasBookTitle={{{BookTitle|}}} | |||
|HasSeriesTitle={{{SeriesTitle|}}} | |||
|HasEditor={{{Editor|}}}|+sep=; | |||
|HasJournal={{{Journal|}}} | |||
|HasVolume={{{Volume|}}} | |||
|HasIssue={{{Issue|}}} | |||
|HasPages={{{Pages|}}} | |||
|HasPublisher={{{Publisher|}}} | |||
|HasCity={{{City|}}} | |||
|HasInstitution={{{Institution|}}} | |||
|HasReportNumber={{{HasReportNumber|}}} | |||
|HasPBLlink={{{PBLlink|}}} | |||
|HasDOI={{{DOI|}}} | |||
|HasISBN={{{ISBN|}}} | |||
|HasConferenceName={{{ConferenceName|}}} | |||
}}<!-- | |||
-->{{#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