Difference between revisions of "Template:Cite"
Jump to navigation
Jump to search
m |
m (Replaced lots of spaces with tabs) |
||
(51 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{#switch: {{{auth|noauth}} | <noinclude>{{Helpbox}} | ||
| noauth | |||
| nodate | </noinclude><includeonly>{{ | ||
| notitle | #switch: {{ | ||
| | #if:{{{auth |}}} | | noauth}}{{#if:{{{date |}}} | | nodate}}{{#if:{{{title |}}} | | notitle}} | ||
| | | noauth = {{#ifeq:{{{med}}} | magazine <!-- ------------- --> | ||
| | | {{{title}}} ({{{date}}}). <!-- No author set --> | ||
|    | |''{{{title}}}'' ({{{date}}}). <!-- ------------- --> | ||
| | }} <!-- ------------- --> | ||
}} | | nodate = {{#ifeq:{{{med}}} | magazine <!-- ------------- --> | ||
| {{{auth}}}{{#if:{{{auth2 |}}} <!-- ----------- --> | |||
|  & {{{auth2}}} <!-- ----------- --> | |||
}}. {{{ title}}} <!-- ----------- --> | |||
| {{{auth}}}{{#if:{{{auth2 |}}} <!-- No date set --> | |||
|  & {{{auth2}}} <!-- ----------- --> | |||
}}. ''{{{title}}}''. <!-- ----------- --> | |||
}} <!-- ----------- --> | |||
| notitle = {{{auth}}}{{#if:{{{auth2 |}}} <!-- ------------ --> | |||
|  & {{{auth2}}} <!-- No title set --> | |||
}}. ({{{date}}}). [{{{desc |'''Description missing'''}}}]. <!-- ------------ --> | |||
| noauthnodate = {{#ifeq:{{{med}}} | magazine <!-- ---------------------- --> | |||
| {{{title}}}. <!-- No author nor date set --> | |||
| ''{{{title}}}''. <!-- ---------------------- --> | |||
}} <!-- ---------------------- --> | |||
| noauthnotitle = ({{{date}}}). [{{{desc |'''Description missing'''}}}]. <!-- No author nor title set --> | |||
| nodatenotitle = {{{auth}}}{{#if:{{{auth2 |}}} <!-- --------------------- --> | |||
|  & {{{auth2}}} <!-- No date nor title set --> | |||
}}. [{{{desc |'''Description missing'''}}}]. <!-- --------------------- --> | |||
| noauthnodatenotitle = [{{{desc |'''Description missing'''}}}]. <!-- None set, so print description --> | |||
| = {{#ifeq:{{{med}}} | magazine <!-- -------------------- --> | |||
| {{{auth}}}{{#if:{{{auth2 |}}} <!-- -------------------- --> | |||
|  & {{{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 --> | |||
}}{{ | |||
#if:{{{pub |}}} |  {{ | |||
#ifeq:{{{med}}} | magazine | |||
| ''{{{pub}}}'' | |||
| {{{pub}}} | |||
}}{{ | |||
#if:{{{issue |}}} | , ''{{{issue}}}'' | |||
}}{{ | |||
#if:{{{page |}}} | , {{{page}}} | |||
}}. | |||
}}{{ | |||
#switch: {{ | |||
#if:{{{fetch |}}} | | nofetch}}{{#if:{{{url |}}} | | nourl}} | |||
| nofetch =  Retrieved from [{{{url}}} {{{dom |Crikey. Need a domain here, kthnxbye}}}]{{ | |||
#if:{{{dead |}}} | {{deadlink}} | |||
}}. | |||
| nourl =  Retrieved {{{fetch}}}. | |||
| =  Retrieved {{{fetch}}} from [{{{url}}} {{{dom}}}]{{ | |||
#if:{{{dead |}}} | {{deadlink}} | |||
}}. | |||
| #default = | |||
}}{{ | |||
#ifeq:{{{type}}} | int |  [''[[{{{doc}}} {{vb}}verify]]''] | |||
}}</includeonly><noinclude> | |||
[[Category:Citing]] | |||
[[Category:Templates]] | |||
</noinclude> |