Difference between revisions of "Template:Cite"
Jump to navigation
Jump to search
m (Woops.) |
m (Indent & add pub bit) |
||
Line 4: | Line 4: | ||
</noinclude><includeonly>{{ | </noinclude><includeonly>{{ | ||
#switch: {{#if:{{{auth |}}} | | noauth}}{{#if:{{{date |}}} | | nodate}}{{#if:{{{title |}}} | | notitle}} | #switch: {{ | ||
| noauth = ''{{{title}}}'' ({{{date}}}). <!-- No author set --> | #if:{{{auth |}}} | | noauth}}{{#if:{{{date |}}} | | nodate}}{{#if:{{{title |}}} | | notitle}} | ||
| nodate = {{{auth}}}. ''{{{title}}}''. <!-- No date set --> | | noauth = ''{{{title}}}'' ({{{date}}}). <!-- No author set --> | ||
| notitle = {{{auth}}}. ({{{date}}}). [{{{desc}}}]. <!-- No title set --> | | nodate = {{{auth}}}. ''{{{title}}}''. <!-- No date set --> | ||
| noauthnodate = ''{{{title}}}''. <!-- No author nor date set --> | | notitle = {{{auth}}}. ({{{date}}}). [{{{desc}}}]. <!-- No title set --> | ||
| noauthnotitle = ({{{date}}}). [{{{desc}}}]. <!-- No author nor title set --> | | noauthnodate = ''{{{title}}}''. <!-- No author nor date set --> | ||
| nodatenotitle = {{{auth}}}. [{{{desc}}}]. <!-- No date nor title set --> | | noauthnotitle = ({{{date}}}). [{{{desc}}}]. <!-- No author nor title set --> | ||
| | | nodatenotitle = {{{auth}}}. [{{{desc}}}]. <!-- No date nor title set --> | ||
| #default = Say, my good chap. Have you checked the validity of your arguments? <!-- Brain fart --> | | = {{{auth}}}. ({{{date}}}). ''{{{title}}}''. <!-- All's fine and dandy --> | ||
}} | | #default = Say, my good chap. Have you checked the validity of your arguments? <!-- Brain fart --> | ||
}}{{ | |||
#switch: {{#if:{{{fetch |}}} | | nofetch}}{{#if:{{{url |}}} | | nourl}} | #if:{{{pub|}}} |  {{{pub}}}. | ||
| nofetch =  Retrieved from [{{{url}}} {{{dom |Crikey. Need a domain here, kthnxbye}}}]. | }}{{ | ||
| nourl =  Retrieved {{{fetch}}}. | #switch: {{ | ||
| =  Retrieved {{{fetch}}} from [{{{url}}} {{{dom}}}]. | #if:{{{fetch |}}} | | nofetch}}{{#if:{{{url |}}} | | nourl}} | ||
| #default = | | nofetch =  Retrieved from [{{{url}}} {{{dom |Crikey. Need a domain here, kthnxbye}}}]. | ||
}}{{#ifeq:{{{type}}} | int |  [''[[{{{doc}}} {{vb}}Verify this source]]'']}}</includeonly> | | nourl =  Retrieved {{{fetch}}}. | ||
| =  Retrieved {{{fetch}}} from [{{{url}}} {{{dom}}}]. | |||
| #default = | |||
}}{{ | |||
#ifeq:{{{type}}} | int |  [''[[{{{doc}}} {{vb}}Verify this source]]''] | |||
}}</includeonly> |
Revision as of 15:10, 9 January 2011
Here be a reference template with lots of cases depending on the variables set.