Difference between revisions of "Template:Citation/core"

From Self-sufficiency
Jump to: navigation, search
(switch to citation/make link, per talk page request)
(syncing with sandbox per request, version http://en.wikipedia.org/w/index.php?title=Template:Citation/core/sandbox&oldid=315335713)
Line 1: Line 1:
 
<span class="citation {{{Citation class|}}}"
 
<span class="citation {{{Citation class|}}}"
 
{{
 
{{
   #if:{{{Ref|}}}
+
   #switch:{{{Ref|}}}
   |{{#ifeq:{{{Ref|}}}|none||id="{{anchorencode:{{{Ref|}}}}}"}}
+
   ||none =
   |{{#if:{{{Surname1|}}}{{{EditorSurname1|}}}
+
  |#default = id="{{anchorencode:{{{Ref}}}}}"
 +
   |harv = {{#if:{{{Surname1|}}}{{{EditorSurname1|}}}
 
     |id="CITEREF{{anchorencode:{{#if:{{{Surname1|}}}
 
     |id="CITEREF{{anchorencode:{{#if:{{{Surname1|}}}
 
       |{{{Surname1}}}{{{Surname2|}}}{{{Surname3|}}}{{{Surname4|}}}
 
       |{{{Surname1}}}{{{Surname2|}}}{{{Surname3|}}}{{{Surname4|}}}

Revision as of 09:17, 26 September 2009