Difference between revisions of "Template:Citation/core"
From Linguistic Team International Wiki
(Created page with "<span class="citation {{{Citation class|{{{Citation type|}}}}}}"{{ #switch:{{{Ref|}}} ||none = |#default = id="{{anchorencode:{{{Ref}}}}}" |harv = {{#if:{{{Surname1|}}}{{{...") |
m |
||
Line 1: | Line 1: | ||
− | + | <span class="citation {{{Citation class|{{{Citation type|}}}}}}" | |
+ | {{ | ||
+ | #switch:{{{Ref|}}} | ||
+ | ||none = | ||
+ | |#default = id="{{anchorencode:{{{Ref}}}}}" | ||
+ | |harv = {{#if:{{{Surname1|}}}{{{EditorSurname1|}}} | ||
+ | |id="CITEREF{{anchorencode:{{#if:{{{Surname1|}}} | ||
+ | |{{{Surname1}}}{{{Surname2|}}}{{{Surname3|}}}{{{Surname4|}}} | ||
+ | |{{{EditorSurname1|}}}{{{EditorSurname2|}}}{{{EditorSurname3|}}}{{{EditorSurname4|}}} | ||
+ | }}{{{Year|{{{Date|}}}}}}}}" | ||
+ | }} | ||
+ | }}>{{ | ||
+ | <!--============ Author or editor and date ============--> | ||
+ | #if:{{{Surname1|}}} | ||
+ | |{{ | ||
+ | #if: {{{AuthorMask|}}} | ||
+ | |{{ | ||
+ | #iferror: {{ #expr: 1*{{{AuthorMask}}} }} | ||
+ | |{{{AuthorMask}}} | ||
+ | |<del>{{loop|{{{AuthorMask}}}|2= }}</del> | ||
+ | }} | ||
+ | |{{ | ||
+ | #if: {{{Authorlink1|}}} | ||
+ | |[[{{{Authorlink1}}} |{{{Surname1}}}{{ | ||
+ | #if: {{{Given1|}}} | ||
+ | |{{{NameSep|, }}}{{{Given1}}} | ||
+ | }}]] | ||
+ | |{{{Surname1}}}{{ | ||
+ | #if: {{{Given1|}}} | ||
+ | |{{{NameSep|, }}}{{{Given1}}} | ||
+ | }} | ||
+ | }} | ||
+ | }}{{ | ||
+ | #if: {{{Surname2|}}} | ||
+ | |{{#ifexpr:{{{Trunc|8}}}<2 | ||
+ | | et al. | ||
+ | |{{ | ||
+ | #iferror: {{ #expr: 1*0.0{{{AuthorMask|}}} }} | ||
+ | | <!-- then punctuation should be included in AuthorMask --> | ||
+ | |{{ | ||
+ | #if: {{{Surname3|}}} | ||
+ | |{{{AuthorSep|; }}} | ||
+ | |{{#if:{{{amp|}}}| & |{{{AuthorSep|; }}}}} | ||
+ | }} | ||
+ | }}{{ | ||
+ | #if: {{{Authorlink2|}}} | ||
+ | |[[{{{Authorlink2}}} |{{{Surname2}}}{{ | ||
+ | #if: {{{Given2|}}} | ||
+ |
Latest revision as of 16:28, 10 August 2015
[create] Template documentation