Difference between revisions of "Template:Cite"

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

Latest revision as of 22:17, 29 December 2011