Difference between revisions of "Template:Cite"
Jump to navigation
Jump to search
m (type→med) |
(Techo logic, techno logic) |
||
Line 6: | Line 6: | ||
#switch: {{ | #switch: {{ | ||
#if:{{{auth |}}} | | noauth}}{{#if:{{{date |}}} | | nodate}}{{#if:{{{title |}}} | | notitle}} | #if:{{{auth |}}} | | noauth}}{{#if:{{{date |}}} | | nodate}}{{#if:{{{title |}}} | | notitle}} | ||
| noauth = {{#ifeq:{{{med}}} | magazine | | noauth = {{#ifeq:{{{med}}} | magazine <!-- ------------- --> | ||
| {{{title}}} ({{{date}}}). <!-- No author set --> | | {{{title}}} ({{{date}}}). <!-- No author set --> | ||
|''{{{title}}}'' ({{{date}}}). <!-- ------------- --> | |''{{{title}}}'' ({{{date}}}). <!-- ------------- --> | ||
}} <!-- ------------- --> | }} <!-- ------------- --> | ||
| nodate = {{{auth}}}. ''{{{title}}}''. | | nodate = {{#ifeq:{{{med}}} | magazine <!-- ------------- --> | ||
| {{{auth}}}. {{{title}}} <!-- No date set --> | |||
| {{{auth}}}. ''{{{title}}}''. <!-- ----------- --> | |||
}} <!-- ----------- --> | |||
| notitle = {{{auth}}}. ({{{date}}}). [{{{desc |'''Description missing'''}}}]. <!-- No title set --> | | notitle = {{{auth}}}. ({{{date}}}). [{{{desc |'''Description missing'''}}}]. <!-- No title set --> | ||
| noauthnodate = | | noauthnodate = {{#ifeq:{{{med}}} | magazine <!-- ---------------------- --> | ||
| {{{title}}}. <!-- No author nor date set --> | |||
| ''{{{title}}}''. <!-- ---------------------- --> | |||
}} <!-- ---------------------- --> | |||
| 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'''}}}]. <!-- No date nor title set --> | | nodatenotitle = {{{auth}}}. [{{{desc |'''Description missing'''}}}]. <!-- No date nor title set --> |
Revision as of 00:04, 8 April 2011
Here be a reference template with lots of cases depending on the variables set.