Template:FormattedReferenceTemplate: Difference between revisions
Jump to navigation
Jump to search
Oostenrijr (talk | contribs) No edit summary |
Oostenrijr (talk | contribs) No edit summary |
||
(6 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|, }} ({{{PublicationYear|}}}). | {{#set:HasFormattedReference={{#arraymap:{{{Author|}}}|;|xx|xx|, }} ({{{PublicationYear|}}}). | ||
{{#ifeq:{{{PublicationType|}}}|Report | |||
|{{#ifeq:{{{Title|}}}||| ''{{{Title|}}}'' | |{{#ifeq:{{{Title|}}}||| ''{{{Title|}}}'' | ||
{{#ifeq:{{{Editor|}}}|||, {{#arraymap:{{{Editor|}}}|;|zz|zz|, }} (eds.) | }}{{#ifeq:{{{Editor|}}}|||, {{#arraymap:{{{Editor|}}}|;|zz|zz|, }} (eds.) | ||
}}{{#ifeq:{{{SeriesTitle|}}}|||, {{{SeriesTitle|}}} | }}{{#ifeq:{{{SeriesTitle|}}}|||, {{{SeriesTitle|}}} | ||
}}{{#ifeq:{{{Institution|}}}|||, {{{Institution|}}} | }}{{#ifeq:{{{Institution|}}}|||, {{{Institution|}}} | ||
Line 26: | Line 26: | ||
|}}{{#ifeq:{{{PublicationType|}}}|Book | |}}{{#ifeq:{{{PublicationType|}}}|Book | ||
|{{#ifeq:{{{Title|}}}||| ''{{{Title|}}}'' | |{{#ifeq:{{{Title|}}}||| ''{{{Title|}}}'' | ||
{{#ifeq:{{{Publisher|}}}|||, {{{Publisher|}}} | }}{{#ifeq:{{{Publisher|}}}|||, {{{Publisher|}}} | ||
}}{{#ifeq:{{{City|}}}|||, {{{City|}}} | }}{{#ifeq:{{{City|}}}|||, {{{City|}}} | ||
}}{{#ifeq:{{{Volume|}}}|||, {{{Volume|}}} | }}{{#ifeq:{{{Volume|}}}|||, {{{Volume|}}} | ||
Line 34: | Line 34: | ||
|}}{{#ifeq:{{{PublicationType|}}}|Book section | |}}{{#ifeq:{{{PublicationType|}}}|Book section | ||
|{{#ifeq:{{{Title|}}}||| {{{Title|}}} | |{{#ifeq:{{{Title|}}}||| {{{Title|}}} | ||
{{#ifeq:{{{Editor|}}}|||. In: {{#arraymap:{{{Editor|}}}|;|yy|yy|, }} (eds.) | }}{{#ifeq:{{{Editor|}}}|||. In: {{#arraymap:{{{Editor|}}}|;|yy|yy|, }} (eds.) | ||
}}{{#ifeq:{{{BookTitle|}}}|||, ''{{{BookTitle|}}}'' | }}{{#ifeq:{{{BookTitle|}}}|||, ''{{{BookTitle|}}}'' | ||
}}{{#ifeq:{{{Publisher|}}}|||. {{{Publisher|}}} | }}{{#ifeq:{{{Publisher|}}}|||. {{{Publisher|}}} | ||
}}{{#ifeq:{{{City|}}}|||, {{{City|}}} | }}{{#ifeq:{{{City|}}}|||, {{{City|}}} | ||
}}{{#ifeq:{{{Volume|}}}|||, {{{Volume|}}} | }}{{#ifeq:{{{Volume|}}}|||, {{{Volume|}}} | ||
}}{{#ifeq:{{{Pages|}}}|||, pp.{{{Pages|}}} | }}{{#ifeq:{{{Pages|}}}|||, pp. {{{Pages|}}} | ||
}}{{#ifeq:{{{DOI|}}}|||, URL: {{{DOI|}}} | }}{{#ifeq:{{{DOI|}}}|||, URL: {{{DOI|}}} | ||
}}{{#ifeq:{{{PBLlink|}}}|||.<br/>Link to PBL-website: {{{PBLlink|}}} | }}{{#ifeq:{{{PBLlink|}}}|||.<br/>Link to PBL-website: {{{PBLlink|}}} | ||
Line 45: | Line 45: | ||
|}}{{#ifeq: {{{PublicationType|}}}|Edited book | |}}{{#ifeq: {{{PublicationType|}}}|Edited book | ||
|{{#ifeq:{{{Title|}}}||| ''{{{Title|}}}'' | |{{#ifeq:{{{Title|}}}||| ''{{{Title|}}}'' | ||
{{#ifeq:{{{Editor|}}}|||, {{#arraymap:{{{Editor|}}}|;|yy|yy|, }} (eds.) | }}{{#ifeq:{{{Editor|}}}|||, {{#arraymap:{{{Editor|}}}|;|yy|yy|, }} (eds.) | ||
}}{{#ifeq:{{{SeriesTitle|}}}|||, ''{{{SeriesTitle|}}} | }}{{#ifeq:{{{SeriesTitle|}}}|||, ''{{{SeriesTitle|}}} | ||
}}{{#ifeq:{{{Publisher|}}}|||, {{{Publisher|}}} | }}{{#ifeq:{{{Publisher|}}}|||, {{{Publisher|}}} | ||
Line 54: | Line 54: | ||
|}}{{#ifeq:{{{PublicationType|}}}|Journal article | |}}{{#ifeq:{{{PublicationType|}}}|Journal article | ||
|{{#ifeq:{{{Title|}}}||| {{{Title|}}} | |{{#ifeq:{{{Title|}}}||| {{{Title|}}} | ||
{{#ifeq:{{{Journal|}}}|||. ''{{{Journal|}}}'' | }}{{#ifeq:{{{Journal|}}}|||. ''{{{Journal|}}}'' | ||
}}{{#ifeq:{{{Volume|}}}|||, ''{{{Volume|}}}'' | }}{{#ifeq:{{{Volume|}}}|||, ''{{{Volume|}}}'' | ||
}}{{#ifeq:{{{Issue|}}}|||({{{Issue|}}}) | }}{{#ifeq:{{{Issue|}}}|||({{{Issue|}}}) | ||
}}{{#ifeq:{{{Pages|}}}|||, pp.{{{Pages|}}} | }}{{#ifeq:{{{Pages|}}}|||, pp. {{{Pages|}}} | ||
}}{{#ifeq:{{{DOI|}}}|||, doi: http://dx.doi.org/{{{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|}}} | ||
Line 63: | Line 63: | ||
|}}{{#ifeq:{{{PublicationType|}}}|Conference proceedings | |}}{{#ifeq:{{{PublicationType|}}}|Conference proceedings | ||
|{{#ifeq:{{{Title|}}}||| ''{{{Title|}}}'' | |{{#ifeq:{{{Title|}}}||| ''{{{Title|}}}'' | ||
{{#ifeq:{{{ConferenceName|}}}|||. Paper presented at the {{{ConferenceName|}}} | }}{{#ifeq:{{{ConferenceName|}}}|||. Paper presented at the {{{ConferenceName|}}} | ||
}}{{#ifeq:{{{Volume|}}}|||, {{{Volume|}}} | }}{{#ifeq:{{{Volume|}}}|||, {{{Volume|}}} | ||
}}{{#ifeq:{{{Pages|}}}|||, pp.{{{Pages|}}} | }}{{#ifeq:{{{Pages|}}}|||, pp. {{{Pages|}}} | ||
}}{{#ifeq:{{{DOI|}}}|||, doi: http://dx.doi.org/{{{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|}}} | ||
Line 71: | Line 71: | ||
|}}{{#ifeq: {{{PublicationType|}}}|Other | |}}{{#ifeq: {{{PublicationType|}}}|Other | ||
|{{#ifeq:{{{Title|}}}||| ''{{{Title|}}}''. | |{{#ifeq:{{{Title|}}}||| ''{{{Title|}}}''. | ||
{{#ifeq:{{{SecondaryAuthor|}}}||| {{#arraymap:{{{SecondaryAuthor|}}}|;|yy|yy|, }}. | }}{{#ifeq:{{{SecondaryAuthor|}}}||| {{#arraymap:{{{SecondaryAuthor|}}}|;|yy|yy|, }}. | ||
}}{{#ifeq:{{{SecondaryTitle|}}}||| {{{SecondaryTitle|}}}. | }}{{#ifeq:{{{SecondaryTitle|}}}||| {{{SecondaryTitle|}}}. | ||
}}{{#ifeq:{{{Volume|}}}||| {{{Volume|}}}. | }}{{#ifeq:{{{Volume|}}}||| {{{Volume|}}}. | ||
Line 81: | Line 81: | ||
}}{{#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 87: | 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 107: | Line 108: | ||
|HasConferenceName={{{ConferenceName|}}} | |HasConferenceName={{{ConferenceName|}}} | ||
}}<!-- | }}<!-- | ||
-->{{#ifexpr:{{{PublicationYear|}}}< 2001 | -->{{#iferror: {{#expr:{{{PublicationYear|}}} < 2001 }}|{{#set:HasPeriod= 2016 up to today}} | ||
|{{#ifexpr:{{{PublicationYear|}}}< 2001 | |||
|{{#set:HasPeriod=2000 and before}} | |{{#set:HasPeriod=2000 and before}} | ||
|{{#ifexpr:{{{PublicationYear|}}} < 2006 | |{{#ifexpr:{{{PublicationYear|}}} < 2006 | ||
Line 119: | Line 121: | ||
}} | }} | ||
}} | }} | ||
}} | |||
}}</includeonly> | }}</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