Difference between revisions of "Template:Harvard citation"

From Self-sufficiency
Jump to: navigation, search
m (dupe pp-template automagically handled by {{documentation}})
 
(accept lowercase "ref" parameter as well as "Ref", cf. http://en.wikipedia.org/w/index.php?title=Template%3AHarvard_citation_no_brackets&action=historysubmit&diff=390292059&oldid=286103413)
Line 1: Line 1:
<includeonly>({{#ifeq:{{{Ref|}}}|none
+
({{#ifeq:{{{ref|{{{Ref|}}}}}}|none
 
   |{{#if:{{{5|}}}
 
   |{{#if:{{{5|}}}
 
       |{{{1|}}} et al. {{{5|}}}
 
       |{{{1|}}} et al. {{{5|}}}
Line 10: Line 10:
 
         }}
 
         }}
 
     }}
 
     }}
   |[[#{{#if:{{{Ref|}}}
+
   |[[#{{#if:{{{ref|{{{Ref|}}}}}}
       |{{{Ref}}}
+
       |{{{ref|{{{Ref}}}}}}
       |CITEREF{{{1|}}}{{{2|}}}{{{3|}}}{{{4|}}}{{{5|}}}
+
       |CITEREF{{#if:||{{{1|}}}}}{{#if:||{{{2|}}}}}{{#if:||{{{3|}}}}}{{#if:||{{{4|}}}}}{{#if:||{{{5|}}}}}
 
       }}|{{#if:{{{5|}}}
 
       }}|{{#if:{{{5|}}}
 
           |{{{1|}}} et al. {{{5|}}}
 
           |{{{1|}}} et al. {{{5|}}}
Line 31: Line 31:
 
       }}
 
       }}
 
   }}
 
   }}
}})</includeonly><noinclude>
+
}})<noinclude>
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 01:19, 16 June 2011

([[#CITEREF|]])