Difference between revisions of "Template:Cite"
Jump to navigation
Jump to search
m (Saving "progress" then reverting) |
|||
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}}{{#if:{{{fetch|}}}||nofetch}}{{#if:{{{notitle|}}}||notitle | </noinclude><includeonly>{{#switch: {{#if:{{{auth|}}}||noauth}}{{#if:{{{date|}}}||nodate}}{{#if:{{{fetch|}}}||nofetch}}{{#if:{{{notitle|}}}||notitle}} | ||
| noauth = ''{{{title}}}'' ({{{date}}}). Retrieved {{{fetch}}}. <!-- No author set --> | | noauth = ''{{{title}}}'' ({{{date}}}). Retrieved {{{fetch}}}. <!-- No author set --> | ||
| nodate = {{{auth}}}. ''{{{title}}}''. Retrieved {{{fetch}}}. <!-- No date set --> | | nodate = {{{auth}}}. ''{{{title}}}''. Retrieved {{{fetch}}}. <!-- No date set --> | ||
| notitle = {{{auth}}}. ({{{date}}}). [{{{desc}}}]. Retrieved {{{fetch}}}. <!-- No title set --> | | notitle = {{{auth}}}. ({{{date}}}). [{{{desc}}}]. Retrieved {{{fetch}}}. <!-- No title set --> | ||
| nofetch = {{{auth}}}. ({{{date}}}). ''{{{title}}}''. <!-- No retrieval date set --> | | nofetch = {{{auth}}}. ({{{date}}}). ''{{{title}}}''. <!-- No retrieval date set --> | ||
| noauthnodate = ''{{{title}}}''. Retrieved {{{fetch}}}. <!-- No author nor date set --> | | noauthnodate = ''{{{title}}}''. Retrieved {{{fetch}}}. <!-- No author nor date set --> | ||
| noauthnotitle = ({{{date}}}). [{{{desc}}}]. Retrieved {{{fetch}}}. <!-- No author nor title set --> | | noauthnotitle = ({{{date}}}). [{{{desc}}}]. Retrieved {{{fetch}}}. <!-- No author nor title set --> | ||
| nodatenotitle = {{{auth}}}. [{{{desc}}}]. Retrieved {{{fetch}}}. <!-- No date nor title set --> | | nodatenotitle = {{{auth}}}. [{{{desc}}}]. Retrieved {{{fetch}}}. <!-- No date nor title set --> | ||
| noauthnofetch = ''{{{title}}}''. ({{{date}}}). <!-- No author nor retrieval date set --> | | noauthnofetch = ''{{{title}}}''. ({{{date}}}). <!-- No author nor retrieval date set --> | ||
| nodatenofetch = {{{auth}}}. ''{{{title}}}'' | | nodatenofetch = {{{auth}}}. ''{{{title}}}'' <!-- No date nor retrieval date set --> | ||
| notitlenofetch = {{{auth}}}. ({{{date}}}). [{{{desc}}}] | | notitlenofetch = {{{auth}}}. ({{{date}}}). [{{{desc}}}] <!-- No title nor retrieval date set --> | ||
| noauthnodatenofetch = ''{{{title}}}''. <!-- No author, date nor retrieval date set --> | | noauthnodatenofetch = ''{{{title}}}''. <!-- No author, date nor retrieval date set --> | ||
| noauthnotitlenofetch = ({{{date}}}). [{{{desc}}}] | | noauthnotitlenofetch = ({{{date}}}). [{{{desc}}}] <!-- No author, title nor retrieval date set --> | ||
| nodatenotitlenofetch = {{{auth}}} <!-- No date, title nor retrieval date set --> | | nodatenotitlenofetch = {{{auth}}} <!-- No date, title nor retrieval date set --> | ||
| = {{{auth}}}. ({{{date}}}). ''{{{title}}}''. Fetched {{{fetch}}}. <!-- All's fine and dandy --> | | = {{{auth}}}. ({{{date}}}). ''{{{title}}}''. Fetched {{{fetch}}}. <!-- All's fine and dandy --> | ||
| #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 --> | ||
}}{{#ifeq:{{{type}}} | int | [''[[{{{doc}}} {{vb}}Verify this source]]'']}} | }}</includeonly>{{#ifeq:{{{type}}} | int | [''[[{{{doc}}} {{vb}}Verify this source]]'']}} | ||
Revision as of 04:35, 9 January 2011
Here be a reference template with lots of cases depending on the variables set.