Difference between revisions of "Template:Cite"

MuseWiki, wiki for the band Muse
Jump to navigation Jump to search
m (Undo revision 66068 by Tene (talk) ...so it works, even though it's not much use yet.)
(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}}{{#if:{{{fetch|}}}||nofetch}}{{#if:{{{notitle|}}}||notitle}}
</noinclude><includeonly>{{
| noauth = ''{{{title}}}'' ({{{date}}}). Retrieved {{{fetch}}}.                                          <!-- No author set -->
#switch: {{#if:{{{auth|}}}||noauth}}{{#if:{{{date|}}}||nodate}}{{#if:{{{notitle|}}}||notitle}}
| nodate = {{{auth}}}. ''{{{title}}}''. Retrieved {{{fetch}}}.                                            <!-- No date set -->
| noauth = ''{{{title}}}'' ({{{date}}}).                                                                 <!-- No author set -->
| notitle = {{{auth}}}. ({{{date}}}). [{{{desc}}}]. Retrieved {{{fetch}}}.                               <!-- No title set -->
| 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}}}''. Retrieved {{{fetch}}}.                                                  <!-- No author nor date set -->
| noauthnodate = ''{{{title}}}''.                                                                         <!-- No author nor date set -->
| noauthnotitle = ({{{date}}}). [{{{desc}}}]. Retrieved {{{fetch}}}.                                      <!-- No author nor title set -->
| noauthnotitle = ({{{date}}}). [{{{desc}}}].                                                             <!-- No author nor title set -->
| nodatenotitle = {{{auth}}}. [{{{desc}}}]. Retrieved {{{fetch}}}.                                        <!-- No date nor title set -->
| nodatenotitle = {{{auth}}}. [{{{desc}}}].                                                               <!-- No date nor title set -->
| noauthnofetch = ''{{{title}}}''. ({{{date}}}).                                                          <!-- No author nor retrieval date set -->
|  = {{{auth}}}. ({{{date}}}). ''{{{title}}}''.                                                           <!-- All's fine and dandy -->
| nodatenofetch = {{{auth}}}. ''{{{title}}}''                                                            <!-- No date nor retrieval date set -->
| notitlenofetch = {{{auth}}}. ({{{date}}}). [{{{desc}}}]                                                <!-- No title nor retrieval date set -->
| noauthnodatenofetch = ''{{{title}}}''.                                                                  <!-- No author, date nor retrieval date set -->
| noauthnotitlenofetch = ({{{date}}}). [{{{desc}}}]                                                      <!-- No author, title nor retrieval date set -->
| nodatenotitlenofetch = {{{auth}}}                                                                      <!-- No date, title nor retrieval date set -->
|  = {{{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 -->
}}<!--
-->{{
#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.