Difference between revisions of "Template:Cite"
Jump to navigation
Jump to search
(Added to Category:Templates) |
m (Accommodated two authors) |
||
Line 11: | Line 11: | ||
}} <!-- ------------- --> | }} <!-- ------------- --> | ||
| nodate = {{#ifeq:{{{med}}} | magazine <!-- ------------- --> | | nodate = {{#ifeq:{{{med}}} | magazine <!-- ------------- --> | ||
| {{{auth}}}. {{{title}}} | | {{{auth}}}{{#if:{{{auth2 |}}} <!-- ----------- --> | ||
| & {{{auth2}}} <!-- ----------- --> | |||
}}. {{{title}}} <!-- ----------- --> | |||
| {{{auth}}}{{#if:{{{auth2 |}}} <!-- No date set --> | |||
| & {{{auth2}}} <!-- ----------- --> | |||
}}. ''{{{title}}}''. <!-- ----------- --> | |||
}} <!-- ----------- --> | }} <!-- ----------- --> | ||
| notitle = {{{auth}}}. ({{{date}}}). [{{{desc |'''Description missing'''}}}]. | | notitle = {{{auth}}}{{#if:{{{auth2 |}}} <!-- ------------ --> | ||
| & {{{auth2}}} <!-- No title set --> | |||
}}. ({{{date}}}). [{{{desc |'''Description missing'''}}}]. <!-- ------------ --> | |||
| noauthnodate = {{#ifeq:{{{med}}} | magazine <!-- ---------------------- --> | | noauthnodate = {{#ifeq:{{{med}}} | magazine <!-- ---------------------- --> | ||
| {{{title}}}. <!-- No author nor date set --> | | {{{title}}}. <!-- No author nor date set --> | ||
Line 20: | Line 26: | ||
}} <!-- ---------------------- --> | }} <!-- ---------------------- --> | ||
| noauthnotitle = ({{{date}}}). [{{{desc |'''Description missing'''}}}]. <!-- No author nor title set --> | | noauthnotitle = ({{{date}}}). [{{{desc |'''Description missing'''}}}]. <!-- No author nor title set --> | ||
| nodatenotitle = {{{auth}}}. [{{{desc |'''Description missing'''}}}]. | | nodatenotitle = {{{auth}}}{{#if:{{{auth2 |}}} <!-- --------------------- --> | ||
| & {{{auth2}}} <!-- No date nor title set --> | |||
}}. [{{{desc |'''Description missing'''}}}]. <!-- --------------------- --> | |||
| noauthnodatenotitle = [{{{desc |'''Description missing'''}}}]. <!-- None set, so print description --> | | noauthnodatenotitle = [{{{desc |'''Description missing'''}}}]. <!-- None set, so print description --> | ||
| = {{#ifeq:{{{med}}} | magazine | | = {{#ifeq:{{{med}}} | magazine <!-- -------------------- --> | ||
| {{{auth}}}. ({{{date}}}). {{{title}}}. | | {{{auth}}}{{#if:{{{auth2 |}}} <!-- -------------------- --> | ||
| {{{auth}}}. ({{{date}}}). ''{{{title}}}''. | | & {{{auth2}}} <!-- -------------------- --> | ||
}}. ({{{date}}}). {{{title}}}. <!-- All's fine and dandy --> | |||
| {{{auth}}}{{#if:{{{auth2 |}}} <!-- -------------------- --> | |||
| & {{{auth2}}} <!-- -------------------- --> | |||
}}. ({{{date}}}). ''{{{title}}}''. <!-- -------------------- --> | |||
}} <!-- -------------------- --> | }} <!-- -------------------- --> | ||
| #default = Say, my good chap. Have you checked the validity of your arguments? <!-- Brain fart --> | | #default = Say, my good chap. Have you checked the validity of your arguments? <!-- Brain fart --> | ||
}}{{ | }}{{ | ||
#if:{{{pub|}}} |  {{ | #if:{{{pub|}}} |  {{ | ||
#ifeq:{{{med}}} | magazine | #ifeq:{{{med}}} | magazine |
Revision as of 15:47, 30 April 2011
Here be a reference template with lots of cases depending on the variables set.