Difference between revisions of "Template:Cite"
Jump to navigation
Jump to search
(Added int type logic) |
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}}{{#if:{{{url|}}}||nourl}} | ||
| 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 --> | ||
| nourl = {{{auth}}}. ({{{date}}}). ''{{{title}}}''. Fetched {{{fetch}}}. | |||
| 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 --> | ||
| noauthnourl = ''{{{title}}}'' ({{{date}}}). Retrieved {{{fetch}}}. <!-- No author set --> | |||
| nodatenourl = {{{auth}}}. ''{{{title}}}''. Retrieved {{{fetch}}}. <!-- No date set --> | |||
| notitlenourl = {{{auth}}}. ({{{date}}}). [{{{desc}}}]. Retrieved {{{fetch}}}. <!-- No title set --> | |||
| nofetchnourl = {{{auth}}}. ({{{date}}}). ''{{{title}}}''. <!-- No retrieval date set --> | |||
| nourl = {{{auth}}}. ({{{date}}}). ''{{{title}}}''. Fetched {{{fetch}}}. | |||
| noauthnodatenourl = ''{{{title}}}''. Retrieved {{{fetch}}}. <!-- No author nor date set --> | |||
| noauthnotitlenoru = ({{{date}}}). [{{{desc}}}]. Retrieved {{{fetch}}}. <!-- No author 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><noinclude<!-- | ||
dom doesn't wrt cases. --> |
Revision as of 04:35, 9 January 2011
Here be a reference template with lots of cases depending on the variables set.
<noinclude