Difference between revisions of "Template:Citation/core"
Jump to navigation
Jump to search
m (1 revision) |
m (1 revision imported) |
||
(One intermediate revision by the same user not shown) | |||
Line 18: | Line 18: | ||
#iferror: {{ #expr: 1*{{{AuthorMask}}} }} | #iferror: {{ #expr: 1*{{{AuthorMask}}} }} | ||
|{{{AuthorMask}}} | |{{{AuthorMask}}} | ||
− | | | + | |{{loop|{{{AuthorMask}}}|2=—}} |
}} | }} | ||
|{{ | |{{ | ||
Line 34: | Line 34: | ||
#if: {{{Surname2|}}} | #if: {{{Surname2|}}} | ||
|{{#ifexpr:{{{Trunc|8}}}<2 | |{{#ifexpr:{{{Trunc|8}}}<2 | ||
− | | et al. | + | | et al{{#ifeq:{{{Sep}}}|.|{{#if:{{{Date|}}}|.}}|.}} |
|{{ | |{{ | ||
#iferror: {{ #expr: 1*0.0{{{AuthorMask|}}} }} | #iferror: {{ #expr: 1*0.0{{{AuthorMask|}}} }} | ||
Line 56: | Line 56: | ||
#if: {{{Surname3|}}} | #if: {{{Surname3|}}} | ||
|{{#ifexpr:{{{Trunc|8}}}<3 | |{{#ifexpr:{{{Trunc|8}}}<3 | ||
− | | et al. | + | | et al{{#ifeq:{{{Sep}}}|.|{{#if:{{{Date|}}}|.}}|.}} |
|{{ | |{{ | ||
#if: {{{Surname4|}}} | #if: {{{Surname4|}}} | ||
Line 74: | Line 74: | ||
#if:{{{Surname4|}}} | #if:{{{Surname4|}}} | ||
|{{#ifexpr:{{{Trunc|8}}}<4 | |{{#ifexpr:{{{Trunc|8}}}<4 | ||
− | | et al. | + | | et al{{#ifeq:{{{Sep}}}|.|{{#if:{{{Date|}}}|.}}|.}} |
|{{ | |{{ | ||
#if: {{{Surname5|}}} | #if: {{{Surname5|}}} | ||
Line 92: | Line 92: | ||
#if:{{{Surname5|}}} | #if:{{{Surname5|}}} | ||
|{{#ifexpr:{{{Trunc|8}}}<5 | |{{#ifexpr:{{{Trunc|8}}}<5 | ||
− | | et al. | + | | et al{{#ifeq:{{{Sep}}}|.|{{#if:{{{Date|}}}|.}}|.}} |
|{{ | |{{ | ||
#if: {{{Surname6|}}} | #if: {{{Surname6|}}} | ||
Line 110: | Line 110: | ||
#if:{{{Surname6|}}} | #if:{{{Surname6|}}} | ||
|{{#ifexpr:{{{Trunc|8}}}<6 | |{{#ifexpr:{{{Trunc|8}}}<6 | ||
− | | et al. | + | | et al{{#ifeq:{{{Sep}}}|.|{{#if:{{{Date|}}}|.}}|.}} |
|{{ | |{{ | ||
#if: {{{Surname7|}}} | #if: {{{Surname7|}}} | ||
Line 128: | Line 128: | ||
#if:{{{Surname7|}}} | #if:{{{Surname7|}}} | ||
|{{#ifexpr:{{{Trunc|8}}}<7 | |{{#ifexpr:{{{Trunc|8}}}<7 | ||
− | | et al. | + | | et al{{#ifeq:{{{Sep}}}|.|{{#if:{{{Date|}}}|.}}|.}} |
|{{ | |{{ | ||
#if: {{{Surname8|}}} | #if: {{{Surname8|}}} | ||
Line 146: | Line 146: | ||
#if:{{{Surname8|}}} | #if:{{{Surname8|}}} | ||
|{{#ifexpr:{{{Trunc|8}}}<8 | |{{#ifexpr:{{{Trunc|8}}}<8 | ||
− | | et al. | + | | et al{{#ifeq:{{{Sep}}}|.|{{#if:{{{Date|}}}|.}}|.}} |
|{{ | |{{ | ||
#if: {{{Surname9|}}} | #if: {{{Surname9|}}} | ||
Line 163: | Line 163: | ||
}}{{ | }}{{ | ||
#if:{{{Surname9|}}} | #if:{{{Surname9|}}} | ||
− | | et al. | + | | et al{{#ifeq:{{{Sep}}}|.|{{#if:{{{Date|}}}|.}}|.}} |
}} | }} | ||
}} | }} | ||
Line 235: | Line 235: | ||
}}{{ | }}{{ | ||
#if:{{{EditorSurname4|}}} | #if:{{{EditorSurname4|}}} | ||
− | | et al. | + | | et al{{#ifeq:{{{Sep}}}|.|{{#if:{{{Date|}}}|.}}|.}} |
}} | }} | ||
}} | }} | ||
− | }}, ed{{#if:{{{EditorSurname2|}}}|s}}{{#ifeq:{{{Sep| | + | }}, ed{{#if:{{{EditorSurname2|}}}|s}}{{#ifeq:{{{Sep}}}|.|{{#if:{{{Date|}}}|.}}|.}}{{ |
#if: {{{Date|}}} | #if: {{{Date|}}} | ||
| ({{{Date}}}){{ | | ({{{Date}}}){{ | ||
Line 291: | Line 291: | ||
|{{{Sep|,}}} {{ | |{{{Sep|,}}} {{ | ||
#if: {{{IncludedWorkTitle|}}} | #if: {{{IncludedWorkTitle|}}} | ||
− | |{{#ifeq:{{{Sep| | + | |{{#ifeq:{{{Sep|}}}|.|I|i}}n  |
}}{{ | }}{{ | ||
#if: {{{Editorlink1|}}} | #if: {{{Editorlink1|}}} | ||
Line 335: | Line 335: | ||
}}{{ | }}{{ | ||
#if:{{{EditorSurname4|}}} | #if:{{{EditorSurname4|}}} | ||
− | | et al. | + | | et al{{#ifeq:{{{Sep}}}|.|{{#if:{{{Date|}}}|.}}|.}} |
}} | }} | ||
}} | }} | ||
Line 341: | Line 341: | ||
#if: {{{IncludedWorkTitle|}}} | #if: {{{IncludedWorkTitle|}}} | ||
| | | | ||
− | |{{{Sep|,}}} ed{{#if:{{{EditorSurname2|}}}|s}}{{#ifeq:{{{Sep | + | |{{{Sep|,}}} ed{{#if:{{{EditorSurname2|}}}|s}}{{#ifeq:{{{Sep}}}|.||.}} |
}} | }} | ||
}} | }} | ||
Line 408: | Line 408: | ||
}}{{ | }}{{ | ||
#if: {{{Volume|}}} | #if: {{{Volume|}}} | ||
− | | '''<nowiki />{{{Volume}}}<nowiki />'''{{ | + | | {{#if:{{{Periodical|}}}|'''<nowiki />{{{Volume}}}<nowiki />'''|{{{Volume}}}}}{{ |
#if: {{{Issue|}}} | #if: {{{Issue|}}} | ||
| ({{{Issue}}}) | | ({{{Issue}}}) | ||
Line 517: | Line 517: | ||
<!--============ ASIN ===============--> | <!--============ ASIN ===============--> | ||
#if: {{{ASIN|}}} | #if: {{{ASIN|}}} | ||
− | |{{{Sep|,}}} {{citation/identifier |identifier=asin |input1={{{ASIN|}}} }} | + | |{{{Sep|,}}} {{citation/identifier |identifier=asin |input1={{{ASIN|}}} |input2={{{ASIN-TLD|}}} }} |
}}{{ | }}{{ | ||
<!--============ BIBCODE ============--> | <!--============ BIBCODE ============--> | ||
Line 525: | Line 525: | ||
<!--============ DOI ================--> | <!--============ DOI ================--> | ||
#if:{{{DOI|}}} | #if:{{{DOI|}}} | ||
− | |{{{Sep|,}}} {{citation/identifier |identifier=doi |input1={{{DOI|}}} |input2={{{DoiBroken|}}} }} | + | |{{{Sep|,}}} {{citation/identifier |identifier=doi |input1={{{DOI|}}} |input2={{{DoiBroken|}}} |input3={{{template doc demo|}}}}} |
}}{{ | }}{{ | ||
<!--============ ISBN ===============--> | <!--============ ISBN ===============--> | ||
Line 592: | Line 592: | ||
|{{ | |{{ | ||
#if:{{{ArchiveURL|}}}{{{ArchiveDate|}}} | #if:{{{ArchiveURL|}}}{{{ArchiveDate|}}} | ||
− | |{{{Sep|,}}} {{#ifeq:{{{Sep}}}|.|A|a}}rchived{{ | + | | {{{Sep|,}}} {{#ifeq: {{{DeadURL|}}} | no |
− | #if:{{{OriginalURL|}}}{{{IncludedWorkURL|}}} | + | | {{#if:{{{ArchiveURL|}}} |
− | + | |{{Citation/make link|{{{ArchiveURL|}}}|{{#ifeq:{{{Sep}}}|.|A|a}}rchived}} from the original | |
− | }}{{ | + | |{{#ifeq:{{{Sep}}}|.|A|a}}rchived |
− | + | }} | |
− | + | | {{#ifeq:{{{Sep}}}|.|A|a}}rchived{{#if:{{{OriginalURL|}}}{{{IncludedWorkURL|}}} | |
− | + | |{{#if:{{{ArchiveURL|}}}| from {{Citation/make link|{{{OriginalURL|{{{IncludedWorkURL|}}}}}}|the original}}}} | |
− | + | }} | |
− | + | }}{{#if:{{{ArchiveDate|}}}| on {{{ArchiveDate}}}}}{{ | |
− | |If you specify <code>|{{#if:{{{ArchiveURL|}}}|archiveurl|archivedate}}=</code>, you must {{#if:{{{OriginalURL|}}}{{{IncludedWorkURL|}}}| also specify <code>|{{#if:{{{ArchiveURL|}}}|archivedate|archiveurl}}=</code>|first specify <code>|url=</code>}}}} | + | #if:{{#if:{{{ArchiveURL|}}}||A}}{{#if:{{{OriginalURL|}}}{{{IncludedWorkURL|}}}||B}}{{#if:{{{ArchiveDate|}}}||C}} |
+ | |. {{citation error|nocat={{{template doc demo|}}} | ||
+ | |If you specify <code>|{{#if:{{{ArchiveURL|}}}|archiveurl|archivedate}}=</code>{{#ifeq:{{{DeadURL|}}}|no|{{#if:{{{OriginalURL|}}}{{{IncludedWorkURL|}}}|| and <code>|deadurl=no</code>}}}}, you must {{#if:{{{OriginalURL|}}}{{{IncludedWorkURL|}}}| also specify <code>|{{#if:{{{ArchiveURL|}}}|archivedate|archiveurl}}=</code>| {{#ifeq:{{{DeadURL|}}}|no|also|first}} specify <code>|url=</code>}}}} | ||
}} | }} | ||
}} | }} | ||
}}{{ | }}{{ | ||
<!--============ URL and AccessDate ============--> | <!--============ URL and AccessDate ============--> | ||
− | #if: {{{URL|}}}{{{IncludedWorkURL|}}} | + | #if: {{{URL|}}}{{{IncludedWorkURL|}}}{{#ifeq:{{{DeadURL|}}}|no|{{{ArchiveURL|}}}|}} |
|{{ | |{{ | ||
#if: {{{Title|}}}{{{IncludedWorkTitle|}}}{{{TransTitle|}}} | #if: {{{Title|}}}{{{IncludedWorkTitle|}}}{{{TransTitle|}}} | ||
Line 621: | Line 623: | ||
}}{{ | }}{{ | ||
#if: {{{AccessDate|}}} | #if: {{{AccessDate|}}} | ||
− | | <span class="reference-accessdate">{{#ifeq:{{{Sep| | + | | <span class="reference-accessdate">{{#ifeq:{{{Sep|}}}|,|, r|. R}}etrieved {{{AccessDate}}}</span> |
}} | }} | ||
}}{{#if:{{{laysummary|}}} | }}{{#if:{{{laysummary|}}} |