From WikiChip
Difference between revisions of "Template:cite book"

(Created page with "{{#if:{{{last|}}}|{{{last}}}, |}}{{#if:{{{first|}}}|{{{first}}}.|}}{{#if:{{{middle|}}}| {{{middle}}}.|}} ''<cite>{{{title}}}</cite>''. ({{{year}}}). {{{publisher}}}....")
 
 
Line 1: Line 1:
{{#if:{{{last|}}}|{{{last}}},&nbsp;|}}{{#if:{{{first|}}}|{{{first}}}.|}}{{#if:{{{middle|}}}|&nbsp;{{{middle}}}.|}} ''<cite>{{{title}}}</cite>''. ({{{year}}}). {{{publisher}}}. {{#if:{{{pages|}}} pp. {{{pages}}}.|}} {{#if:{{{isbn|}}}|ISBN {{{isbn}}}.|}} {{#if:{{{url|}}}|Retrieved {{{rmonth}}} {{{rday}}}, {{{ryear}}}, from <span class="url">{{{url}}}</span>.|}}
+
<includeonly><cite class="book" style="font-style:normal" {{
 +
  #if: {{{ref|}}}
 +
  |{{#ifeq:{{{ref}}}|none||id="{{{ref}}}"}}
 +
  |{{#if:{{{last|}}} | {{#if:{{{year|}}} | id="Reference-{{{last}}}-{{{year}}}" }} }}
 +
}}>{{
 +
  #if: {{{author|}}}{{{last|}}}
 +
  | {{
 +
    #if: {{{authorlink|}}}
 +
    | [[{{{authorlink}}}|{{
 +
      #if: {{{last|}}}
 +
      | {{{last}}}{{ #if: {{{first|}}} | , {{{first}}} }}
 +
      | {{{author}}}
 +
    }}]]
 +
    | {{
 +
      #if: {{{last|}}}
 +
      | {{{last}}}{{ #if: {{{first|}}} | , {{{first}}} }}
 +
      | {{{author}}}
 +
    }}
 +
  }}
 +
}}{{
 +
  #if: {{{author|}}}{{{last|}}}
 +
  | {{ #if: {{{coauthors|}}} | <nowiki>;</nowiki>&#32;{{{coauthors}}} }}
 +
}}{{
 +
  #if: {{{origdate|}}}
 +
  | &#32;<nowiki>[</nowiki>{{{origdate}}}]
 +
  | {{
 +
    #if: {{{origyear|}}}
 +
    | {{
 +
      #if: {{{origmonth|}}}
 +
      | &#32;<nowiki>[</nowiki>{{{origmonth}}} {{{origyear}}}]
 +
      | &#32;<nowiki>[</nowiki>{{{origyear}}}]
 +
    }}
 +
  }}
 +
}}{{
 +
  #if: {{{date|}}}
 +
  | &#32;({{#ifeq:{{#time:Y-m-d|{{{date}}}}}|{{{date}}}|{{{date}}}|{{#ifeq:{{#time:Y-m-d|{{{date}}}}}|1970-01-01|{{{date}}}|{{{date}}}}}}})  | {{
 +
    #if: {{{year|}}}
 +
    | {{
 +
      #if: {{{month|}}}
 +
      | &#32;({{{month}}} {{{year}}})
 +
      | &#32;({{{year}}})
 +
    }}
 +
  }}
 +
}}{{ #if: {{{author|}}}{{{last|}}} | .
 +
}}{{
 +
  #if: {{{chapter|}}}
 +
  | &#32;"{{
 +
    #if: {{{chapterurl|}}}
 +
    | [{{{chapterurl}}} {{{chapter}}}]
 +
    | {{{chapter}}}
 +
}}",}}{{
 +
  #if: {{{editor|}}}
 +
  | &#32;in {{{editor}}}:
 +
}} <i>{{
 +
  #if: {{{url|}}} | [{{{url}}} {{{title}}}] | {{{title}}}
 +
}}</i>{{
 +
  #if: {{{format|}}} | &#32;({{{format}}})
 +
}}{{
 +
  #if: {{{others|}}} | , {{{others}}}
 +
}}{{
 +
  #if: {{{edition|}}} | , {{{edition}}}
 +
}}{{
 +
  #if: {{{series|}}} | , {{{series}}}
 +
}}{{
 +
    #if: {{{volume|{{{number|}}}}}} | &#32;'''{{{volume|{{{number}}}}}}'''
 +
}}{{
 +
  #if: {{{language|}}} | &#32;(in {{{language}}})
 +
}}{{
 +
  #if: {{{publisher|}}}
 +
  | {{#if: {{{format|}}}{{{others|}}}{{{edition|}}} | ,&#32; | .&#32; }}{{
 +
    #if: {{{location|}}}
 +
    | {{{location}}}:&#32;
 +
  }}{{{publisher}}}
 +
}}{{
 +
  #if: {{{pages|{{{page|}}}}}} | ,&#32;{{{pages|{{{page}}}}}}
 +
}}{{
 +
  #if: {{{doi|}}} | . [[Digital object identifier|doi]]:[http://dx.doi.org/{{{doi|{{{doilabel|}}}}}} {{{doi}}}]
 +
}}{{
 +
  #if: {{{id|}}} | . {{{id}}}
 +
}}{{
 +
  #if: {{{isbn|}}} | . ISBN {{{isbn}}}
 +
}}{{
 +
  #if: {{{oclc|}}} | . [[Online Computer Library Center|OCLC]] [http://worldcat.org/oclc/{{urlencode:{{{oclc}}}}} {{{oclc}}}]
 +
}}{{
 +
  #if: {{{url|}}}{{{chapterurl|}}} | {{
 +
  #if: {{{accessdate|}}} |
 +
  <span class="reference-accessdate">. Retrieved on {{{accessdate}}}</span>
 +
  | {{
 +
    #if: {{{accessyear|}}}
 +
    | <span class="reference-accessdate">. Retrieved {{
 +
      #if: {{{accessmonth|}}}
 +
      | on {{{accessmonth}}} {{{accessyear}}}
 +
      | during {{{accessyear}}}
 +
  }}</span>}}
 +
  }}
 +
}}.{{ #if: {{{quote|}}} | &nbsp;"{{{quote}}}"
 +
}}</cite></includeonly>

Latest revision as of 01:15, 6 September 2024