Difference between revisions of "Template:Citation/core"
From RRU Knowledge Base
Jessietail (talk | contribs) |
Jessietail (talk | contribs) (undo) |
||
Line 18: | Line 18: | ||
#iferror: {{ #expr: 1*{{{AuthorMask}}} }} | #iferror: {{ #expr: 1*{{{AuthorMask}}} }} | ||
|{{{AuthorMask}}} | |{{{AuthorMask}}} | ||
| | |{{loop|{{{AuthorMask}}}|2=—}} | ||
}} | }} | ||
|{{ | |{{ | ||
#if: {{{Authorlink1|}}} | #if: {{{Authorlink1|}}} | ||
|[[ | |[[{{{Authorlink1}}} |{{{Surname1}}}{{ | ||
#if: {{{Given1|}}} | #if: {{{Given1|}}} | ||
|{{{NameSep|, }}}{{{Given1}}} | |{{{NameSep|, }}}{{{Given1}}} | ||
Line 34: | Line 34: | ||
#if: {{{Surname2|}}} | #if: {{{Surname2|}}} | ||
|{{#ifexpr:{{{Trunc|8}}}<2 | |{{#ifexpr:{{{Trunc|8}}}<2 | ||
|  | | et al{{#ifeq:{{{Sep}}}|.|{{#if:{{{Date|}}}|.}}|.}} | ||
|{{ | |{{ | ||
#iferror: {{ #expr: 1*0.0{{{AuthorMask|}}} }} | #iferror: {{ #expr: 1*0.0{{{AuthorMask|}}} }} | ||
Line 45: | Line 45: | ||
}}{{ | }}{{ | ||
#if: {{{Authorlink2|}}} | #if: {{{Authorlink2|}}} | ||
|[[ | |[[{{{Authorlink2}}} |{{{Surname2}}}{{ | ||
#if: {{{Given2|}}} | #if: {{{Given2|}}} | ||
|{{{NameSep|, }}}{{{Given2}}} | |{{{NameSep|, }}}{{{Given2}}} | ||
Line 56: | Line 56: | ||
#if: {{{Surname3|}}} | #if: {{{Surname3|}}} | ||
|{{#ifexpr:{{{Trunc|8}}}<3 | |{{#ifexpr:{{{Trunc|8}}}<3 | ||
|  | | et al{{#ifeq:{{{Sep}}}|.|{{#if:{{{Date|}}}|.}}|.}} | ||
|{{ | |{{ | ||
#if: {{{Surname4|}}} | #if: {{{Surname4|}}} | ||
Line 63: | Line 63: | ||
}}{{ | }}{{ | ||
#if: {{{Authorlink3|}}} | #if: {{{Authorlink3|}}} | ||
|[[ | |[[{{{Authorlink3}}} |{{{Surname3}}}{{ | ||
#if: {{{Given3|}}} | #if: {{{Given3|}}} | ||
|{{{NameSep|, }}}{{{Given3}}} | |{{{NameSep|, }}}{{{Given3}}} | ||
Line 74: | Line 74: | ||
#if:{{{Surname4|}}} | #if:{{{Surname4|}}} | ||
|{{#ifexpr:{{{Trunc|8}}}<4 | |{{#ifexpr:{{{Trunc|8}}}<4 | ||
|  | | et al{{#ifeq:{{{Sep}}}|.|{{#if:{{{Date|}}}|.}}|.}} | ||
|{{ | |{{ | ||
#if: {{{Surname5|}}} | #if: {{{Surname5|}}} | ||
Line 81: | Line 81: | ||
}}{{ | }}{{ | ||
#if: {{{Authorlink4|}}} | #if: {{{Authorlink4|}}} | ||
|[[ | |[[{{{Authorlink4}}} |{{{Surname4}}}{{ | ||
#if: {{{Given4|}}} | #if: {{{Given4|}}} | ||
|{{{NameSep|, }}}{{{Given4}}} | |{{{NameSep|, }}}{{{Given4}}} | ||
Line 92: | Line 92: | ||
#if:{{{Surname5|}}} | #if:{{{Surname5|}}} | ||
|{{#ifexpr:{{{Trunc|8}}}<5 | |{{#ifexpr:{{{Trunc|8}}}<5 | ||
|  | | et al{{#ifeq:{{{Sep}}}|.|{{#if:{{{Date|}}}|.}}|.}} | ||
|{{ | |{{ | ||
#if: {{{Surname6|}}} | #if: {{{Surname6|}}} | ||
Line 99: | Line 99: | ||
}}{{ | }}{{ | ||
#if: {{{Authorlink5|}}} | #if: {{{Authorlink5|}}} | ||
|[[ | |[[{{{Authorlink5}}} |{{{Surname5}}}{{ | ||
#if: {{{Given5|}}} | #if: {{{Given5|}}} | ||
|{{{NameSep|, }}}{{{Given5}}} | |{{{NameSep|, }}}{{{Given5}}} | ||
Line 110: | Line 110: | ||
#if:{{{Surname6|}}} | #if:{{{Surname6|}}} | ||
|{{#ifexpr:{{{Trunc|8}}}<6 | |{{#ifexpr:{{{Trunc|8}}}<6 | ||
|  | | et al{{#ifeq:{{{Sep}}}|.|{{#if:{{{Date|}}}|.}}|.}} | ||
|{{ | |{{ | ||
#if: {{{Surname7|}}} | #if: {{{Surname7|}}} | ||
Line 117: | Line 117: | ||
}}{{ | }}{{ | ||
#if: {{{Authorlink6|}}} | #if: {{{Authorlink6|}}} | ||
|[[ | |[[{{{Authorlink6}}} |{{{Surname6}}}{{ | ||
#if: {{{Given6|}}} | #if: {{{Given6|}}} | ||
|{{{NameSep|, }}}{{{Given6}}} | |{{{NameSep|, }}}{{{Given6}}} | ||
Line 128: | Line 128: | ||
#if:{{{Surname7|}}} | #if:{{{Surname7|}}} | ||
|{{#ifexpr:{{{Trunc|8}}}<7 | |{{#ifexpr:{{{Trunc|8}}}<7 | ||
|  | | et al{{#ifeq:{{{Sep}}}|.|{{#if:{{{Date|}}}|.}}|.}} | ||
|{{ | |{{ | ||
#if: {{{Surname8|}}} | #if: {{{Surname8|}}} | ||
Line 135: | Line 135: | ||
}}{{ | }}{{ | ||
#if: {{{Authorlink7|}}} | #if: {{{Authorlink7|}}} | ||
|[[ | |[[{{{Authorlink7}}} |{{{Surname7}}}{{ | ||
#if: {{{Given7|}}} | #if: {{{Given7|}}} | ||
|{{{NameSep|, }}}{{{Given7}}} | |{{{NameSep|, }}}{{{Given7}}} | ||
Line 146: | Line 146: | ||
#if:{{{Surname8|}}} | #if:{{{Surname8|}}} | ||
|{{#ifexpr:{{{Trunc|8}}}<8 | |{{#ifexpr:{{{Trunc|8}}}<8 | ||
|  | | et al{{#ifeq:{{{Sep}}}|.|{{#if:{{{Date|}}}|.}}|.}} | ||
|{{ | |{{ | ||
#if: {{{Surname9|}}} | #if: {{{Surname9|}}} | ||
Line 153: | Line 153: | ||
}}{{ | }}{{ | ||
#if: {{{Authorlink8|}}} | #if: {{{Authorlink8|}}} | ||
|[[ | |[[{{{Authorlink8}}} |{{{Surname8}}}{{ | ||
#if: {{{Given8|}}} | #if: {{{Given8|}}} | ||
|{{{NameSep|, }}}{{{Given8}}} | |{{{NameSep|, }}}{{{Given8}}} | ||
Line 163: | Line 163: | ||
}}{{ | }}{{ | ||
#if:{{{Surname9|}}} | #if:{{{Surname9|}}} | ||
|  | | et al{{#ifeq:{{{Sep}}}|.|{{#if:{{{Date|}}}|.}}|.}} | ||
}} | }} | ||
}} | }} | ||
Line 193: | Line 193: | ||
|{{ | |{{ | ||
#if: {{{Editorlink1|}}} | #if: {{{Editorlink1|}}} | ||
|[[ | |[[{{{Editorlink1}}} |{{{EditorSurname1}}}{{ | ||
#if: {{{EditorGiven1|}}} | #if: {{{EditorGiven1|}}} | ||
|, {{{EditorGiven1}}} | |, {{{EditorGiven1}}} | ||
Line 209: | Line 209: | ||
}}{{ | }}{{ | ||
#if: {{{Editorlink2|}}} | #if: {{{Editorlink2|}}} | ||
|[[ | |[[{{{Editorlink2}}} |{{{EditorSurname2}}}{{ | ||
#if: {{{EditorGiven2|}}} | #if: {{{EditorGiven2|}}} | ||
|, {{{EditorGiven2}}} | |, {{{EditorGiven2}}} | ||
Line 225: | Line 225: | ||
}}{{ | }}{{ | ||
#if: {{{Editorlink3|}}} | #if: {{{Editorlink3|}}} | ||
|[[ | |[[{{{Editorlink3}}} |{{{EditorSurname3}}}{{ | ||
#if: {{{EditorGiven3|}}} | #if: {{{EditorGiven3|}}} | ||
|, {{{EditorGiven3}}} | |, {{{EditorGiven3}}} | ||
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 259: | Line 259: | ||
#if: {{{URL|}}} | #if: {{{URL|}}} | ||
|{{{URL}}} | |{{{URL}}} | ||
}} | }} | ||
}} | }} | ||
Line 298: | Line 291: | ||
|{{{Sep|,}}} {{ | |{{{Sep|,}}} {{ | ||
#if: {{{IncludedWorkTitle|}}} | #if: {{{IncludedWorkTitle|}}} | ||
| | |{{#ifeq:{{{Sep|}}}|.|I|i}}n  | ||
}}{{ | }}{{ | ||
#if: {{{Editorlink1|}}} | #if: {{{Editorlink1|}}} | ||
|[[ | |[[{{{Editorlink1}}} |{{{EditorSurname1}}}{{ | ||
#if: {{{EditorGiven1|}}} | #if: {{{EditorGiven1|}}} | ||
|, {{{EditorGiven1}}} | |, {{{EditorGiven1}}} | ||
Line 316: | Line 309: | ||
}}{{ | }}{{ | ||
#if: {{{Editorlink2|}}} | #if: {{{Editorlink2|}}} | ||
|[[ | |[[{{{Editorlink2}}}|{{{EditorSurname2}}}{{ | ||
#if: {{{EditorGiven2|}}} | #if: {{{EditorGiven2|}}} | ||
|, {{{EditorGiven2}}} | |, {{{EditorGiven2}}} | ||
Line 332: | Line 325: | ||
}}{{ | }}{{ | ||
#if: {{{Editorlink3|}}} | #if: {{{Editorlink3|}}} | ||
|[[ | |[[{{{Editorlink3}}}|{{{EditorSurname3}}}{{ | ||
#if: {{{EditorGiven3|}}} | #if: {{{EditorGiven3|}}} | ||
|, {{{EditorGiven3}}} | |, {{{EditorGiven3}}} | ||
Line 342: | Line 335: | ||
}}{{ | }}{{ | ||
#if:{{{EditorSurname4|}}} | #if:{{{EditorSurname4|}}} | ||
| et al. | | et al{{#ifeq:{{{Sep}}}|.|{{#if:{{{Date|}}}|.}}|.}} | ||
}} | }} | ||
}} | }} | ||
Line 348: | Line 341: | ||
#if: {{{IncludedWorkTitle|}}} | #if: {{{IncludedWorkTitle|}}} | ||
| | | | ||
|{{{Sep|,}}} ed{{#if:{{{EditorSurname2|}}}|s}}{{#ifeq:{{{Sep | |{{{Sep|,}}} ed{{#if:{{{EditorSurname2|}}}|s}}{{#ifeq:{{{Sep}}}|.||.}} | ||
}} | }} | ||
}} | }} | ||
Line 369: | Line 362: | ||
#if: {{{URL|}}} | #if: {{{URL|}}} | ||
|{{{URL}}} | |{{{URL}}} | ||
}} | }} | ||
}} | }} | ||
Line 380: | Line 367: | ||
#if: {{{URL|}}} | #if: {{{URL|}}} | ||
|{{{URL}}} | |{{{URL}}} | ||
}} | }} | ||
}} | }} | ||
Line 426: | Line 408: | ||
}}{{ | }}{{ | ||
#if: {{{Volume|}}} | #if: {{{Volume|}}} | ||
| '''<nowiki />{{{Volume}}}<nowiki />'''{{ | | {{#if:{{{Periodical|}}}|'''<nowiki />{{{Volume}}}<nowiki />'''|{{{Volume}}}}}{{ | ||
#if: {{{Issue|}}} | #if: {{{Issue|}}} | ||
| ({{{Issue}}}) | | ({{{Issue}}}) | ||
Line 452: | Line 434: | ||
#if: {{{URL|}}} | #if: {{{URL|}}} | ||
|{{{URL}}} | |{{{URL}}} | ||
}} | }} | ||
}} | }} | ||
Line 461: | Line 439: | ||
#if: {{{URL|}}} | #if: {{{URL|}}} | ||
|{{{URL}}} | |{{{URL}}} | ||
}} | }} | ||
}} | }} | ||
Line 537: | Line 511: | ||
}} | }} | ||
}}{{ | }}{{ | ||
<!--===============DOI================--> | <!--============ arXiv ==============--> | ||
#if: {{{ARXIV|}}} | |||
|{{{Sep|,}}} {{citation/identifier |identifier=arxiv |input1={{{ARXIV|}}} }} | |||
}}{{ | |||
<!--============ ASIN ===============--> | |||
#if: {{{ASIN|}}} | |||
|{{{Sep|,}}} {{citation/identifier |identifier=asin |input1={{{ASIN|}}} |input2={{{ASIN-TLD|}}} }} | |||
}}{{ | |||
<!--============ BIBCODE ============--> | |||
#if: {{{BIBCODE|}}} | |||
|{{{Sep|,}}} {{citation/identifier |identifier=bibcode |input1={{{BIBCODE|}}} }} | |||
}}{{ | |||
<!--============ 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 ===============--> | ||
#if: {{{ISBN|}}} | #if: {{{ISBN|}}} | ||
|{{{Sep|,}}} {{citation/identifier |identifier=isbn |input1={{{ISBN|}}} }} | |{{{Sep|,}}} {{citation/identifier |identifier=isbn |input1={{{ISBN|}}} }} | ||
}}{{ | }}{{ | ||
<!--============ | <!--============ ISSN ===============--> | ||
#if: {{{ISSN|}}} | #if: {{{ISSN|}}} | ||
|{{{Sep|,}}} {{citation/identifier |identifier=issn |input1={{{ISSN|}}} }} | |{{{Sep|,}}} {{citation/identifier |identifier=issn |input1={{{ISSN|}}} }} | ||
}}{{ | }}{{ | ||
<!--============ OCLC ============--> | <!--============ JFM ================--> | ||
#if: {{{JFM|}}} | |||
|{{{Sep|,}}} {{citation/identifier |identifier=jfm |input1={{{JFM|}}} }} | |||
}}{{ | |||
<!--============ JSTOR ==============--> | |||
#if: {{{JSTOR|}}} | |||
|{{{Sep|,}}} {{citation/identifier |identifier=jstor |input1={{{JSTOR|}}} }} | |||
}}{{ | |||
<!--============ LCCN ===============--> | |||
#if: {{{LCCN|}}} | |||
|{{{Sep|,}}} {{citation/identifier |identifier=lccn |input1={{{LCCN|}}} }} | |||
}}{{ | |||
<!--============ MR =================--> | |||
#if: {{{MR|}}} | |||
|{{{Sep|,}}} {{citation/identifier |identifier=mr |input1={{{MR|}}} }} | |||
}}{{ | |||
<!--============ OCLC ===============--> | |||
#if: {{{OCLC|}}} | #if: {{{OCLC|}}} | ||
|{{{Sep|,}}} {{citation/identifier |identifier=oclc |input1={{{OCLC|}}} }} | |{{{Sep|,}}} {{citation/identifier |identifier=oclc |input1={{{OCLC|}}} }} | ||
}}{{ | }}{{ | ||
<!--============ PMID ============--> | <!--============ OL =================--> | ||
#if: {{{OL|}}} | |||
|{{{Sep|,}}} {{citation/identifier |identifier=ol |input1={{{OL|}}} }} | |||
}}{{ | |||
<!--============ OSTI ===============--> | |||
#if: {{{OSTI|}}} | |||
|{{{Sep|,}}} {{citation/identifier |identifier=osti |input1={{{OSTI|}}} }} | |||
}}{{ | |||
<!--============ PMC ================--> | |||
#if: {{{PMC|}}} | |||
|{{{Sep|,}}} {{citation/identifier |identifier=pmc |input1={{{PMC|}}} }} | |||
}}{{ | |||
<!--============ PMID ===============--> | |||
#if: {{{PMID|}}} | #if: {{{PMID|}}} | ||
|{{{Sep|,}}} {{citation/identifier |identifier=pmid |input1={{{PMID|}}} }} | |{{{Sep|,}}} {{citation/identifier |identifier=pmid |input1={{{PMID|}}} }} | ||
}}{{ | }}{{ | ||
<!--============ | <!--============ RFC ================--> | ||
#if: {{{ | #if: {{{RFC|}}} | ||
|{{ | |{{{Sep|,}}} {{citation/identifier |identifier=rfc|input1={{{RFC|}}} }} | ||
}}{{ | |||
<!--============ SSRN ================--> | |||
#if: {{{SSRN|}}} | |||
|{{{Sep|,}}} {{citation/identifier |identifier=ssrn |input1={{{SSRN|}}} }} | |||
}}{{ | |||
<!--============ ZBL ================--> | |||
#if: {{{ZBL|}}} | |||
|{{{Sep|,}}} {{citation/identifier |identifier=zbl |input1={{{ZBL|}}} }} | |||
}}{{ | }}{{ | ||
<!--============ | <!--============ Misc. Identifier ============--> | ||
#if: {{{ | #if: {{{ID|}}} | ||
|{{{Sep|,}}} {{ | |{{{Sep|,}}} {{{ID}}} | ||
}}{{ | }}{{ | ||
<!--============ Archive data, etc ===========--> | <!--============ Archive data, etc ===========--> | ||
#if: {{{Archive|}}} | #if: {{{Archive|}}} | ||
|{{{Sep|,}}} {{{Archive}}} | |{{{Sep|,}}} {{{Archive}}}[[Category:Pages using deprecated citation archive parameters]] | ||
|{{ | |{{ | ||
#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 611: | 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|}}} | ||
Line 619: | Line 631: | ||
}}{{#if:{{{quote|}}} | }}{{#if:{{{quote|}}} | ||
|{{{Sep|,}}} "{{{quote}}}" | |{{{Sep|,}}} "{{{quote}}}" | ||
}}{{{PS|}}} | }}{{{PS|}}}</span><noinclude> | ||
==About this template== | ==About this template== | ||
I don't know I just stole this from Wikipedia. It's not used on any actual pages and just used for building the other citation templates, so just don't worry about this until we get something better okay? | I don't know I just stole this from Wikipedia. It's not used on any actual pages and just used for building the other citation templates, so just don't worry about this until we get something better okay? why wont this work | ||
[[Category:Citation templates]] | [[Category:Citation templates]] | ||
</noinclude> | </noinclude> |
Latest revision as of 01:57, 21 October 2017
About this template
I don't know I just stole this from Wikipedia. It's not used on any actual pages and just used for building the other citation templates, so just don't worry about this until we get something better okay? why wont this work