Difference between revisions of "Template:Cite"

MuseWiki, wiki for the band Muse
Jump to navigation Jump to search
m (Indent & add pub bit)
m (Replaced lots of spaces with tabs)
 
(22 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>{{
</noinclude><includeonly>{{
#switch: {{
#switch: {{
    #if:{{{auth |}}} | | noauth}}{{#if:{{{date |}}} | | nodate}}{{#if:{{{title |}}} | | notitle}}
#if:{{{auth |}}} | | noauth}}{{#if:{{{date |}}} | | nodate}}{{#if:{{{title |}}} | | notitle}}
    | noauth             = ''{{{title}}}'' ({{{date}}}).                                                     <!-- No author set -->
| noauth = {{#ifeq:{{{med}}} | magazine <!-- ------------- -->
    | nodate             = {{{auth}}}. ''{{{title}}}''.                                                       <!-- No date set -->
| {{{title}}} ({{{date}}}). <!-- No author set -->
    | notitle           = {{{auth}}}. ({{{date}}}). [{{{desc}}}].                                           <!-- No title set -->
|''{{{title}}}'' ({{{date}}}). <!-- ------------- -->
    | noauthnodate       = ''{{{title}}}''.                                                                   <!-- No author nor date set -->
}} <!-- ------------- -->
    | noauthnotitle     = ({{{date}}}). [{{{desc}}}].                                                       <!-- No author nor title set -->
| nodate = {{#ifeq:{{{med}}} | magazine <!-- ------------- -->
    | nodatenotitle     = {{{auth}}}. [{{{desc}}}].                                                         <!-- No date nor title set -->
| {{{auth}}}{{#if:{{{auth2 |}}} <!-- ----------- -->
    |                   = {{{auth}}}. ({{{date}}}). ''{{{title}}}''.                                         <!-- All's fine and dandy -->
| &#32;& {{{auth2}}} <!-- ----------- -->
    | #default = Say, my good chap.  Have you checked the validity of your arguments?                         <!-- Brain fart -->
}}. {{{ title}}} <!-- ----------- -->
}}{{
| {{{auth}}}{{#if:{{{auth2 |}}} <!-- No date set -->
#if:{{{pub|}}} | &#32;{{{pub}}}.
| &#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: {{
#switch: {{
    #if:{{{fetch |}}} | | nofetch}}{{#if:{{{url |}}} | | nourl}}
#if:{{{fetch |}}} | | nofetch}}{{#if:{{{url |}}} | | nourl}}
    | nofetch    = &#32;Retrieved from [{{{url}}} {{{dom |Crikey. Need a domain here, kthnxbye}}}].
| nofetch    = &#32;Retrieved from [{{{url}}} {{{dom |Crikey. Need a domain here, kthnxbye}}}]{{
    | nourl      = &#32;Retrieved {{{fetch}}}.
#if:{{{dead |}}} | {{deadlink}}
    |            = &#32;Retrieved {{{fetch}}} from [{{{url}}} {{{dom}}}].
}}.
    | #default  =  
| nourl      = &#32;Retrieved {{{fetch}}}.
|            = &#32;Retrieved {{{fetch}}} from [{{{url}}} {{{dom}}}]{{
#if:{{{dead |}}} | {{deadlink}}
}}.
| #default  =  
}}{{
}}{{
#ifeq:{{{type}}} | int | &#32;[''[[{{{doc}}} {{vb}}Verify this source]]'']
#ifeq:{{{type}}} | int | &#32;[''[[{{{doc}}} {{vb}}verify]]'']
}}</includeonly>
}}</includeonly><noinclude>
 
[[Category:Citing]]
[[Category:Templates]]
 
</noinclude>

Latest revision as of 22:17, 29 December 2011