Difference between revisions of "Template:Cite book"

From Self-sufficiency
Jump to: navigation, search
m (Protected "Template:Cite book": high-use template [edit=sysop:move=sysop])
m (1 revision imported)
 
(12 intermediate revisions by 7 users not shown)
Line 1: Line 1:
<includeonly><cite class="book" style="font-style:normal" {{
+
<includeonly>{{#invoke:citation/CS1|citation
  #if: {{{ref|}}}
+
|CitationClass=book
  |{{#ifeq:{{{ref}}}|none||id="{{{ref}}}"}}
+
}}</includeonly><noinclude>
  |{{#if:{{{last|}}} | {{#if:{{{year|}}} | id="Reference-{{{last}}}-{{{year}}}" }} }}
+
{{documentation}}
}}>{{
+
{{collapse top|TemplateData}}
  #if: {{{author|{{{last|}}}}}}
+
{{Cite book/TemplateData}}
  | {{
+
{{collapse bottom}}
    #if: {{{authorlink|}}}
+
</noinclude>
    | [[{{{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;({{{date}}})
+
  | {{
+
    #if: {{{year|}}}
+
    | {{
+
      #if: {{{month|}}}
+
      | &#32;({{{month}}} {{{year}}})
+
      | &#32;({{{year}}})
+
    }}
+
  }}
+
}}{{ #if: {{{author|{{{last|}}}}}} | .
+
}}{{
+
  #if: {{{chapter|}}}
+
  | &#32;“{{
+
    #if: {{{chapterurl|}}}
+
    | [{{{chapterurl}}} {{{chapter}}}]
+
    | {{{chapter}}}
+
}}”,}}{{
+
  #if: {{{editor|}}}
+
  | &#32;{{{editor}}}
+
}} ''{{
+
  #if: {{{url|}}} | [{{{url}}} {{{title}}}] | {{{title}}}
+
}}''{{
+
  #if: {{{format|}}} | &#32;({{{format}}})
+
}}{{
+
  #if: {{{others|}}} | , {{{others}}}
+
}}{{
+
  #if: {{{edition|}}} | , {{{edition}}}
+
}}{{
+
  #if: {{{language|}}} | &#32;(in {{{language}}})
+
}}{{
+
  #if: {{{page|{{{pages|}}}}}} | ,&#32;{{{page|{{{pages}}}}}}
+
}}{{
+
  #if: {{{publisher|}}}
+
  | {{#if: {{{format|}}}{{{others|}}}{{{edition|}}}{{{pages|}}} | ,&#32; | .&#32; }}{{
+
    #if: {{{location|}}}
+
    | {{{location}}}:&#32;
+
  }}{{{publisher}}}
+
}}{{
+
  #if: {{{doi|}}} | . [[Digital object identifier|DOI]]:[http://dx.doi.org/{{{doi}}} {{{doi}}}]
+
}}{{
+
  #if: {{{id|}}} | . {{{id}}}
+
}}{{
+
  #if: {{{accessdate|}}}
+
  | . Retrieved on [[{{{accessdate}}}]]
+
  | {{
+
    #if: {{{accessyear|}}}
+
    | . Retrieved {{
+
      #if: {{{accessmonth|}}}
+
      | on [[{{{accessmonth}}} {{{accessyear}}}]]
+
      | during [[{{{accessyear}}}]]
+
    }}
+
  }}
+
}}.{{ #if: {{{quote|}}} | &nbsp;“{{{quote}}}”
+
}}</cite></includeonly><noinclude>{{Documentation}}</noinclude>
+

Latest revision as of 21:55, 17 February 2018

Template:Collapse top Template:Cite book/TemplateData Template:Collapse bottom