Difference between revisions of "Template:Cite"

MuseWiki, wiki for the band Muse
Jump to navigation Jump to search
m (moved Template:Cite/web to Template:Cite: Simpler. Perhaps doing so shall reduce cpu use.)
m (Replaced lots of spaces with tabs)
 
(3 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             = {{#ifeq:{{{med}}} | magazine                                                       <!-- ------------- -->
| noauth = {{#ifeq:{{{med}}} | magazine <!-- ------------- -->
                                | {{{title}}} ({{{date}}}).                                                   <!-- No author set -->
| {{{title}}} ({{{date}}}). <!-- No author set -->
                                |''{{{title}}}'' ({{{date}}}).                                               <!-- ------------- -->
|''{{{title}}}'' ({{{date}}}). <!-- ------------- -->
                            }}                                                                                 <!-- ------------- -->
}} <!-- ------------- -->
    | nodate             = {{#ifeq:{{{med}}} | magazine                                                       <!-- ------------- -->
| nodate = {{#ifeq:{{{med}}} | magazine <!-- ------------- -->
                                | {{{auth}}}{{#if:{{{auth2 |}}}                                               <!-- ----------- -->
| {{{auth}}}{{#if:{{{auth2 |}}} <!-- ----------- -->
                                                  | &#32;& {{{auth2}}}                                             <!-- ----------- -->
| &#32;& {{{auth2}}} <!-- ----------- -->
                                            }}. {{{title}}}                                                   <!-- ----------- -->
}}. {{{ title}}} <!-- ----------- -->
                                | {{{auth}}}{{#if:{{{auth2 |}}}                                               <!-- No date set -->
| {{{auth}}}{{#if:{{{auth2 |}}} <!-- No date set -->
                                                  | &#32;& {{{auth2}}}                                             <!-- ----------- -->
| &#32;& {{{auth2}}} <!-- ----------- -->
                                            }}. ''{{{title}}}''.                                             <!-- ----------- -->
}}. ''{{{title}}}''. <!-- ----------- -->
                            }}                                                                                 <!-- ----------- -->
}} <!-- ----------- -->
    | notitle           = {{{auth}}}{{#if:{{{auth2 |}}}                                                     <!-- ------------ -->
| notitle = {{{auth}}}{{#if:{{{auth2 |}}} <!-- ------------ -->
                                                  | &#32;& {{{auth2}}}                                             <!-- No title set -->
| &#32;& {{{auth2}}} <!-- No title set -->
                                            }}. ({{{date}}}). [{{{desc |'''Description missing'''}}}].       <!-- ------------ -->
}}. ({{{date}}}). [{{{desc |'''Description missing'''}}}]. <!-- ------------ -->
    | noauthnodate       = {{#ifeq:{{{med}}} | magazine                                                       <!-- ---------------------- -->
| noauthnodate = {{#ifeq:{{{med}}} | magazine <!-- ---------------------- -->
                                | {{{title}}}.                                                               <!-- No author nor date set -->
| {{{title}}}. <!-- No author nor date set -->
                                | ''{{{title}}}''.                                                           <!-- ---------------------- -->
| ''{{{title}}}''. <!-- ---------------------- -->
                            }}                                                                                 <!-- ---------------------- -->
}} <!-- ---------------------- -->
    | noauthnotitle     = ({{{date}}}). [{{{desc |'''Description missing'''}}}].                             <!-- No author nor title set -->
| noauthnotitle = ({{{date}}}). [{{{desc |'''Description missing'''}}}]. <!-- No author nor title set -->
    | nodatenotitle     = {{{auth}}}{{#if:{{{auth2 |}}}                                                     <!-- --------------------- -->
| nodatenotitle = {{{auth}}}{{#if:{{{auth2 |}}} <!-- --------------------- -->
                                                  | &#32;& {{{auth2}}}                                             <!-- No date nor title set -->
| &#32;& {{{auth2}}} <!-- No date nor title set -->
                                            }}. [{{{desc |'''Description missing'''}}}].                     <!-- --------------------- -->
}}. [{{{desc |'''Description missing'''}}}]. <!-- --------------------- -->
    | noauthnodatenotitle = [{{{desc |'''Description missing'''}}}].                                         <!-- None set, so print description -->
| noauthnodatenotitle = [{{{desc |'''Description missing'''}}}]. <!-- None set, so print description -->
    |                   = {{#ifeq:{{{med}}} | magazine                                                       <!-- -------------------- -->
| = {{#ifeq:{{{med}}} | magazine <!-- -------------------- -->
                                | {{{auth}}}{{#if:{{{auth2 |}}}                                               <!-- -------------------- -->
| {{{auth}}}{{#if:{{{auth2 |}}} <!-- -------------------- -->
                                                  | &#32;& {{{auth2}}}                                             <!-- -------------------- -->
| &#32;& {{{auth2}}} <!-- -------------------- -->
                                            }}. ({{{date}}}). {{{title}}}.                                   <!-- All's fine and dandy -->
}}. ({{{date}}}). {{{title}}}. <!-- All's fine and dandy -->
                                | {{{auth}}}{{#if:{{{auth2 |}}}                                               <!-- -------------------- -->
| {{{auth}}}{{#if:{{{auth2 |}}} <!-- -------------------- -->
                                                  | &#32;& {{{auth2}}}                                             <!-- -------------------- -->
| &#32;& {{{auth2}}} <!-- -------------------- -->
                                            }}. ({{{date}}}). ''{{{title}}}''.                               <!-- -------------------- -->
}}. ({{{date}}}). ''{{{title}}}''. <!-- -------------------- -->
                            }}                                                                                 <!-- -------------------- -->
}} <!-- -------------------- -->
    | #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 -->
}}{{  
}}{{  
#if:{{{pub|}}} | &#32;{{
#if:{{{pub |}}} | &#32;{{
    #ifeq:{{{med}}} | magazine
#ifeq:{{{med}}} | magazine
          | ''{{{pub}}}''
| ''{{{pub}}}''
          | {{{pub}}}
| {{{pub}}}
    }}{{
}}{{
    #if:{{{issue|}}} | , ''{{{issue}}}''
#if:{{{issue |}}} | , ''{{{issue}}}''
    }}{{
}}{{
    #if:{{{page|}}} | , {{{page}}}
#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}}}]{{
          #if:{{{dead |}}} | {{deadlink}}
#if:{{{dead |}}} | {{deadlink}}
          }}.
}}.
    | nourl      = &#32;Retrieved {{{fetch}}}.
| nourl      = &#32;Retrieved {{{fetch}}}.
    |            = &#32;Retrieved {{{fetch}}} from [{{{url}}} {{{dom}}}]{{
|            = &#32;Retrieved {{{fetch}}} from [{{{url}}} {{{dom}}}]{{
          #if:{{{dead |}}} | {{deadlink}}
#if:{{{dead |}}} | {{deadlink}}
          }}.
}}.
    | #default  =  
| #default  =  
}}{{
}}{{
#ifeq:{{{type}}} | int | &#32;[''[[{{{doc}}} {{vb}}verify this source]]'']
#ifeq:{{{type}}} | int | &#32;[''[[{{{doc}}} {{vb}}verify]]'']
}}</includeonly><noinclude>
}}</includeonly><noinclude>


[[Category:Templates]]</noinclude>
[[Category:Citing]]
[[Category:Templates]]
 
</noinclude>

Latest revision as of 23:17, 29 December 2011