Difference between revisions of "Template:Cite"

MuseWiki, wiki for the band Muse
Jump to navigation Jump to search
(Added to Category:Templates)
m (Accommodated two authors)
Line 11: Line 11:
                             }}                                                                                <!-- ------------- -->
                             }}                                                                                <!-- ------------- -->
     | nodate            = {{#ifeq:{{{med}}} | magazine                                                      <!-- ------------- -->
     | nodate            = {{#ifeq:{{{med}}} | magazine                                                      <!-- ------------- -->
                                 | {{{auth}}}. {{{title}}}                                                     <!-- No date set -->
                                 | {{{auth}}}{{#if:{{{auth2 |}}}                                              <!-- ----------- -->
                                | {{{auth}}}. ''{{{title}}}''.                                               <!-- ----------- -->
                                                  | & {{{auth2}}}                                            <!-- ----------- -->
                                            }}. {{{title}}}                                                   <!-- ----------- -->
                                | {{{auth}}}{{#if:{{{auth2 |}}}                                              <!-- No date set -->
                                                  | & {{{auth2}}}                                             <!-- ----------- -->
                                            }}. ''{{{title}}}''.                                             <!-- ----------- -->
                             }}                                                                                <!-- ----------- -->
                             }}                                                                                <!-- ----------- -->
     | notitle            = {{{auth}}}. ({{{date}}}). [{{{desc |'''Description missing'''}}}].                 <!-- No title set -->
     | notitle            = {{{auth}}}{{#if:{{{auth2 |}}}                                                      <!-- ------------ -->
                                                  | & {{{auth2}}}                                            <!-- No title set -->
                                            }}. ({{{date}}}). [{{{desc |'''Description missing'''}}}].       <!-- ------------ -->
     | noauthnodate      = {{#ifeq:{{{med}}} | magazine                                                      <!-- ---------------------- -->
     | noauthnodate      = {{#ifeq:{{{med}}} | magazine                                                      <!-- ---------------------- -->
                                 | {{{title}}}.                                                                <!-- No author nor date set -->
                                 | {{{title}}}.                                                                <!-- No author nor date set -->
Line 20: Line 26:
                             }}                                                                                <!-- ---------------------- -->
                             }}                                                                                <!-- ---------------------- -->
     | noauthnotitle      = ({{{date}}}). [{{{desc |'''Description missing'''}}}].                            <!-- No author nor title set -->
     | noauthnotitle      = ({{{date}}}). [{{{desc |'''Description missing'''}}}].                            <!-- No author nor title set -->
     | nodatenotitle      = {{{auth}}}. [{{{desc |'''Description missing'''}}}].                               <!-- No date nor title set -->
     | nodatenotitle      = {{{auth}}}{{#if:{{{auth2 |}}}                                                      <!-- --------------------- -->
                                                  | & {{{auth2}}}                                            <!-- No date nor title set -->
                                            }}. [{{{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}}}. ({{{date}}}). {{{title}}}.                                       <!-- All's fine and dandy -->
                                 | {{{auth}}}{{#if:{{{auth2 |}}}                                                <!-- -------------------- -->
                                 | {{{auth}}}. ({{{date}}}). ''{{{title}}}''.                                   <!-- -------------------- -->
                                                  | & {{{auth2}}}                                            <!-- -------------------- -->
                                            }}. ({{{date}}}). {{{title}}}.                                   <!-- All's fine and dandy -->
                                 | {{{auth}}}{{#if:{{{auth2 |}}}                                                <!-- -------------------- -->
                                                  | & {{{auth2}}}                                            <!-- -------------------- -->
                                            }}. ({{{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

Revision as of 16:47, 30 April 2011


Here be a reference template with lots of cases depending on the variables set.