Template:CiteJournal
From 2010.igem.org
(Difference between revisions)
Line 1: | Line 1: | ||
- | <includeonly> | + | <includeonly>{{#ifeq:{{{Nb|}}}|yes||{{#ifeq:{{{Txt|}}}|yes||(}}}}{{ |
- | + | <!-- Much of this code is copied from template:citation/core | |
- | + | and should be kept the same for compatibility--> | |
- | + | #if:{{{Surname1|}}} | |
- | + | |{{ | |
- | + | #if: {{{Authorlink1|}}} | |
- | + | |[[{{{Authorlink1}}} |{{ | |
- | + | #if: {{{Given1|}}} | |
- | + | |{{{Given1}}}  | |
- | + | }}{{{Surname1}}}]] | |
- | + | |{{ | |
- | + | #if: {{{Given1|}}} | |
- | + | |{{{Given1}}}  | |
- | + | }}{{{Surname1}}} | |
- | + | }}{{ | |
- | + | #if: {{{Surname2|}}} | |
- | + | |{{ | |
- | + | #if: {{{Surname3|}}} | |
- | + | |,  | |
- | + | | {{#ifeq:{{{Txt|}}}|yes|and|&}}  | |
- | + | }}{{ | |
- | + | #if: {{{Authorlink2|}}} | |
- | + | |[[{{{Authorlink2}}} |{{{Given2|}}} {{{Surname2}}}]] | |
- | + | |{{{Given2|}}} {{{Surname2}}} | |
- | }}{{ | + | }}{{ |
- | + | #if: {{{Surname3|}}} | |
- | + | |{{#ifeq:{{{Txt|}}}|yes|, and | & }}{{ | |
- | + | #if: {{{Authorlink3|}}} | |
- | + | |[[{{{Authorlink3}}} |{{{Given3|}}} {{{Surname3}}}]] | |
- | + | |{{{Given3|}}} {{{Surname3}}} | |
+ | }}{{ | ||
+ | #if:{{{Surname4|}}} | ||
+ | | et al. | ||
+ | }} | ||
}} | }} | ||
}} | }} | ||
- | }})</includeonly> | + | |{{ |
+ | #if: {{{EditorSurname1|}}} | ||
+ | |{{ | ||
+ | #if: {{{Editorlink1|}}} | ||
+ | |[[{{{Editorlink1}}} |{{{EditorSurname1}}}{{ | ||
+ | #if: {{{EditorGiven1|}}} | ||
+ | |, {{{EditorGiven1}}} | ||
+ | }}]] | ||
+ | |{{{EditorSurname1}}}{{ | ||
+ | #if: {{{EditorGiven1|}}} | ||
+ | |, {{{EditorGiven1}}} | ||
+ | }} | ||
+ | }}{{ | ||
+ | #if: {{{EditorSurname2|}}} | ||
+ | |{{ | ||
+ | #if: {{{EditorSurname3|}}} | ||
+ | |<nowiki>; </nowiki> | ||
+ | | &  | ||
+ | }}{{ | ||
+ | #if: {{{Editorlink2|}}} | ||
+ | |[[{{{Editorlink2}}} |{{{EditorGiven2|}}} {{{EditorSurname2}}}]] | ||
+ | |{{{EditorGiven2|}}} {{{EditorSurname2}}} | ||
+ | }}{{ | ||
+ | #if: {{{EditorSurname3|}}} | ||
+ | | & {{ | ||
+ | #if: {{{Editorlink3|}}} | ||
+ | |[[{{{Editorlink3}}} |{{{EditorGiven3|}}} {{{EditorSurname3}}}]] | ||
+ | |{{{EditorGiven3|}}} {{{EditorSurname3}}} | ||
+ | }}{{ | ||
+ | #if:{{{EditorSurname4|}}} | ||
+ | | et al. | ||
+ | }} | ||
+ | }} | ||
+ | }}, ed{{#if:{{{EditorSurname2|}}}|s}}. | ||
+ | }} | ||
+ | }} {{#ifeq:{{{Nb|}}}|yes||{{#ifeq:{{{Txt|}}}|yes|(| }}}}<!-- | ||
+ | first link: | ||
+ | -->[[{{{Citationpage|}}}#{{anchorencode:{{ | ||
+ | #if:{{{Ref|}}} | ||
+ | |{{#ifeq:{{{Ref|}}}|none||{{{Ref|}}}}} | ||
+ | |CITEREF{{#if:{{{Surname1|}}} | ||
+ | |{{{Surname1}}}{{{Surname2|}}}{{{Surname3|}}}{{{Surname4|}}} | ||
+ | |{{{EditorSurname1|}}}{{{EditorSurname2|}}}{{{EditorSurname3|}}}{{{EditorSurname4|}}} | ||
+ | }}{{{Year|{{{Date|}}}}}} | ||
+ | }}}}|{{{Year|{{{Date|}}}}}}]]{{#if:{{{Loc1|}}}|, {{{Loc1|}}} }}<!-- | ||
+ | second link | ||
+ | -->{{#if:{{{Year2|}}} | ||
+ | |, [[{{{Citationpage|}}}#{{anchorencode:{{ | ||
+ | #if:{{{Ref2|}}} | ||
+ | |{{#ifeq:{{{Ref2|}}}|none||{{{Ref2|}}}}} | ||
+ | |CITEREF{{#if:{{{Surname1|}}} | ||
+ | |{{{Surname1}}}{{{Surname2|}}}{{{Surname3|}}}{{{Surname4|}}} | ||
+ | |{{{EditorSurname1|}}}{{{EditorSurname2|}}}{{{EditorSurname3|}}}{{{EditorSurname4|}}} | ||
+ | }}{{{Year2|}}} | ||
+ | }}}}|{{{Year2|}}}]]|}}{{#if:{{{Loc2|}}}|, {{{Loc2|}}} }}<!-- | ||
+ | 3rd link | ||
+ | -->{{#if:{{{Year3|}}} | ||
+ | |, [[{{{Citationpage|}}}#{{anchorencode:{{ | ||
+ | #if:{{{Ref3|}}} | ||
+ | |{{#ifeq:{{{Ref3|}}}|none||{{{Ref3|}}}}} | ||
+ | |CITEREF{{#if:{{{Surname1|}}} | ||
+ | |{{{Surname1}}}{{{Surname2|}}}{{{Surname3|}}}{{{Surname4|}}} | ||
+ | |{{{EditorSurname1|}}}{{{EditorSurname2|}}}{{{EditorSurname3|}}}{{{EditorSurname4|}}} | ||
+ | }}{{{Year3|}}} | ||
+ | }}}}|{{{Year3|}}}]]|}}{{#if:{{{Loc3|}}}|, {{{Loc3|}}} }}<!-- | ||
+ | 4th link | ||
+ | -->{{#if:{{{Year4|}}} | ||
+ | |, [[{{{Citationpage|}}}#{{anchorencode:{{ | ||
+ | #if:{{{Ref4|}}} | ||
+ | |{{#ifeq:{{{Ref4|}}}|none||{{{Ref4|}}}}} | ||
+ | |CITEREF{{#if:{{{Surname1|}}} | ||
+ | |{{{Surname1}}}{{{Surname2|}}}{{{Surname3|}}}{{{Surname4|}}} | ||
+ | |{{{EditorSurname1|}}}{{{EditorSurname2|}}}{{{EditorSurname3|}}}{{{EditorSurname4|}}} | ||
+ | }}{{{Year4|}}} | ||
+ | }}}}|{{{Year4|}}}]]|}}{{#if:{{{Loc4|}}}|, {{{Loc4|}}} }}{{#ifeq:{{{Nb|}}}|yes||)}}</includeonly> |