Difference between revisions of "Template:Cite"

MuseWiki, wiki for the band Muse
Jump to navigation Jump to search
(Lots of cases.)
m (Replaced lots of spaces with tabs)
 
(37 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>{{Helpbox}}


Here be a reference template with lots of cases depending on the variables set.
</noinclude><includeonly>{{
#switch: {{
#if:{{{auth |}}} | | noauth}}{{#if:{{{date |}}} | | nodate}}{{#if:{{{title |}}} | | notitle}}
| noauth = {{#ifeq:{{{med}}} | magazine <!-- ------------- -->
| {{{title}}} ({{{date}}}). <!-- No author set -->
|''{{{title}}}'' ({{{date}}}). <!-- ------------- -->
}} <!-- ------------- -->
| nodate = {{#ifeq:{{{med}}} | magazine <!-- ------------- -->
| {{{auth}}}{{#if:{{{auth2 |}}} <!-- ----------- -->
| &#32;& {{{auth2}}} <!-- ----------- -->
}}. {{{ title}}} <!-- ----------- -->
| {{{auth}}}{{#if:{{{auth2 |}}} <!-- No date set -->
| &#32;& {{{auth2}}} <!-- ----------- -->
}}. ''{{{title}}}''. <!-- ----------- -->
}} <!-- ----------- -->
| notitle = {{{auth}}}{{#if:{{{auth2 |}}} <!-- ------------ -->
| &#32;& {{{auth2}}} <!-- No title set -->
}}. ({{{date}}}). [{{{desc |'''Description missing'''}}}]. <!-- ------------ -->
| noauthnodate = {{#ifeq:{{{med}}} | magazine <!-- ---------------------- -->
| {{{title}}}. <!-- No author nor date set -->
| ''{{{title}}}''. <!-- ---------------------- -->
}} <!-- ---------------------- -->
| noauthnotitle = ({{{date}}}). [{{{desc |'''Description missing'''}}}]. <!-- No author nor title set -->
| nodatenotitle = {{{auth}}}{{#if:{{{auth2 |}}} <!-- --------------------- -->
| &#32;& {{{auth2}}} <!-- No date nor title set -->
}}. [{{{desc |'''Description missing'''}}}]. <!-- --------------------- -->
| noauthnodatenotitle = [{{{desc |'''Description missing'''}}}]. <!-- None set, so print description -->
| = {{#ifeq:{{{med}}} | magazine <!-- -------------------- -->
| {{{auth}}}{{#if:{{{auth2 |}}} <!-- -------------------- -->
| &#32;& {{{auth2}}} <!-- -------------------- -->
}}. ({{{date}}}). {{{title}}}. <!-- All's fine and dandy -->
| {{{auth}}}{{#if:{{{auth2 |}}} <!-- -------------------- -->
| &#32;& {{{auth2}}} <!-- -------------------- -->
}}. ({{{date}}}). ''{{{title}}}''. <!-- -------------------- -->
}} <!-- -------------------- -->
| #default = Say, my good chap.  Have you checked the validity of your arguments? <!-- Brain fart -->
}}{{
#if:{{{pub |}}} | &#32;{{
#ifeq:{{{med}}} | magazine
| ''{{{pub}}}''
| {{{pub}}}
}}{{
#if:{{{issue |}}} | , ''{{{issue}}}''
}}{{
#if:{{{page |}}} | , {{{page}}}
}}.
}}{{
#switch: {{
#if:{{{fetch |}}} | | nofetch}}{{#if:{{{url |}}} | | nourl}}
| nofetch    = &#32;Retrieved from [{{{url}}} {{{dom |Crikey. Need a domain here, kthnxbye}}}]{{
#if:{{{dead |}}} | {{deadlink}}
}}.
| nourl      = &#32;Retrieved {{{fetch}}}.
|            = &#32;Retrieved {{{fetch}}} from [{{{url}}} {{{dom}}}]{{
#if:{{{dead |}}} | {{deadlink}}
}}.
| #default  =
}}{{
#ifeq:{{{type}}} | int | &#32;[''[[{{{doc}}} {{vb}}verify]]'']
}}</includeonly><noinclude>


</noinclude><includeonly>{{#switch: {{#if:{{{auth|}}}||noauth}}{{#if:{{{date|}}}||nodate}}{{#if:{{{fetch|}}}||nofetch}}{{#if:{{{notitle|}}}||notitle}}
[[Category:Citing]]
| noauth = ''{{{title}}}'' ({{{date}}}). Retrieved {{{fetch}}}.                                          <!-- No author set -->
[[Category:Templates]]
| nodate = {{{auth}}}. ''{{{title}}}''. Retrieved {{{fetch}}}.                                            <!-- No date set -->
 
| notitle = {{{auth}}}. ({{{date}}}). [{{{desc}}}]. Retrieved {{{fetch}}}.                                <!-- No title set -->
</noinclude>
| noauthnodate = ''{{{title}}}''. Retrieved {{{fetch}}}.                                                  <!-- No author nor date set -->
| noauthnotitle = ({{{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 -->
| 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}}}''.                                                          <!-- All's fine and dandy -->
| #default = Say, my good chap.  Have you checked the validity of your arguments?                        <!-- Brain fart -->
}}</includeonly>

Latest revision as of 22:17, 29 December 2011