Difference between revisions of "Template:Cite"
Jump to navigation
Jump to search
(So I thought mebbe splitting would be good) |
|||
Line 3: | Line 3: | ||
Here be a reference template with lots of cases depending on the variables set. | Here be a reference template with lots of cases depending on the variables set. | ||
</noinclude><includeonly>{{#switch: {{#if:{{{auth|}}}||noauth}}{{#if:{{{date|}}}||nodate | </noinclude><includeonly>{{ | ||
| noauth = ''{{{title}}}'' ({{{date}}}). | #switch: {{#if:{{{auth|}}}||noauth}}{{#if:{{{date|}}}||nodate}}{{#if:{{{notitle|}}}||notitle}} | ||
| nodate = {{{auth}}}. ''{{{title}}}''. | | noauth = ''{{{title}}}'' ({{{date}}}). <!-- No author set --> | ||
| notitle = {{{auth}}}. ({{{date}}}). [{{{desc}}}]. | | nodate = {{{auth}}}. ''{{{title}}}''. <!-- No date set --> | ||
| notitle = {{{auth}}}. ({{{date}}}). [{{{desc}}}].. <!-- No title set --> | |||
| nofetch = {{{auth}}}. ({{{date}}}). ''{{{title}}}''. <!-- No retrieval date set --> | | nofetch = {{{auth}}}. ({{{date}}}). ''{{{title}}}''. <!-- No retrieval date set --> | ||
| noauthnodate = ''{{{title}}}''. | | noauthnodate = ''{{{title}}}''. <!-- No author nor date set --> | ||
| noauthnotitle = ({{{date}}}). [{{{desc}}}]. | | noauthnotitle = ({{{date}}}). [{{{desc}}}]. <!-- No author nor title set --> | ||
| nodatenotitle = {{{auth}}}. [{{{desc}}}]. | | nodatenotitle = {{{auth}}}. [{{{desc}}}]. <!-- No date nor title set --> | ||
| = {{{auth}}}. ({{{date}}}). ''{{{title}}}''. <!-- All's fine and dandy --> | |||
| = {{{auth}}}. ({{{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 --> | ||
}}<!-- | |||
-->{{ | |||
#switch: {{#if:{{{fetch|nofetch}}}||nofetch}}{{#if:{{url|}}||nourl}} | |||
| nofetch = Retrieved from [{{{url}}} {{{dom|Crikey. Need a domain here, kthnxbye}}}]. | |||
| nourl = Retrieved {{{date}}}. | |||
| = Retrieved {{{date}}} from [{{{url}}} {{{dom}}}]. | |||
}}</includeonly>{{#ifeq:{{{type}}} | int | [''[[{{{doc}}} {{vb}}Verify this source]]'']}} | }}</includeonly>{{#ifeq:{{{type}}} | int | [''[[{{{doc}}} {{vb}}Verify this source]]'']}} |
Revision as of 14:30, 9 January 2011
Here be a reference template with lots of cases depending on the variables set.