Template:Cite book: Difference between revisions

From FasciPedia
Jump to navigation Jump to search
en>Hu1
m (Changed protection level for "Template:Cite book": security ([edit=sysop] (indefinite) [move=sysop] (indefinite)) [cascading])
 
m (1 revision imported)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<includeonly><cite class="book" style="font-style:normal" {{
<includeonly>{{
  #if: {{{ref|}}}
#if: {{#if: {{{title|}}} |1}}
   |{{#ifeq:{{{ref}}}|none||id="{{{ref}}}"}}
   ||Error on call to [[Template:Cite book]]: Parameter '''title''' must be specified<br/>
   |{{#if:{{{last|}}} | {{#if:{{{year|}}} | id="Reference-{{{last}}}-{{{year}}}" }} }}
}}{{
}}>{{
#if: {{{archiveurl|}}}{{{archivedate|}}}  
  #if: {{{author|}}}{{{last|}}}
   | {{#if: {{#if: {{{archiveurl|}}}| {{#if: {{{archivedate|}}} |1}}}}
   | {{
    || Error on call to [[Template:Cite web]]: Parameters '''archiveurl''' and '''archivedate''' must be both specified or both omitted
    #if: {{{authorlink|}}}
}}
     | [[{{{authorlink}}}|{{
}}{{#if: {{{author|}}}{{{last|}}}
      #if: {{{last|}}}
   | {{#if: {{{authorlink|}}}
       | {{{last}}}{{ #if: {{{first|}}} | , {{{first}}} }}
     | {{{authorlink}}}|{{#if: {{{last|}}}
       | {{{last}}}{{#if: {{{first|}}} | , {{{first}}} }}
       | {{{author}}}
       | {{{author}}}
     }}]]
     }}
     | {{
     | {{#if: {{{last|}}}
      #if: {{{last|}}}
       | {{{last}}}{{#if: {{{first|}}} | , {{{first}}} }}
       | {{{last}}}{{ #if: {{{first|}}} | , {{{first}}} }}
       | {{{author}}}
       | {{{author}}}
     }}
     }}
   }}
   }}
}}{{
}}{{#if: {{{author|}}}{{{last|}}}
  #if: {{{author|}}}{{{last|}}}
   | {{#if: {{{coauthors|}}}| <nowiki>;</nowiki>&#32;{{{coauthors}}} }}
   | {{ #if: {{{coauthors|}}} | <nowiki>;</nowiki>&#32;{{{coauthors}}} }}
}}{{#if: {{{author|}}}{{{last|}}}|
}}{{
    {{#if: {{{date|}}}
  #if: {{{origdate|}}}
    | &#32;({{{date}}})
  | &#32;<nowiki>[</nowiki>{{{origdate}}}]
    | {{#if: {{{year|}}}
  | {{
      | {{#if: {{{month|}}}
    #if: {{{origyear|}}}
        | &#32;({{{month}}} {{{year}}})
    | {{
        | &#32;({{{year}}})
      #if: {{{origmonth|}}}
      }}
      | &#32;<nowiki>[</nowiki>{{{origmonth}}} {{{origyear}}}]
      | &#32;<nowiki>[</nowiki>{{{origyear}}}]
     }}
     }}
  |}}
}}{{#if: {{{last|}}}{{{author|}}}
  | .&#32;}}{{#if: {{{archiveurl|}}}
    | {{#if: {{{archiveurl|}}} | {{#if: {{{title|}}} | [{{{archiveurl}}} {{{title}}}] }}}}
    | {{#if: {{{title|}}} | {{#if: {{{url|}}} | [{{{url}}} {{{title}}}] | {{{title}}} }}}}
}}{{#if: {{{language|}}} | &#32;<span style="font-size: 0.95em; font-weight: bold; color:#555; position: relative;">({{{language}}})</span>
}}{{#if: {{{format|}}}
  | &#32;({{{format|}}})
}}{{#if: {{{work|}}}
  | .&#32;''{{{work}}}''
}}{{#if: {{{pages|}}}
  | &#32;pp.&nbsp;{{{pages}}}
  |{{#if: {{{page|}}}
    | &#32;p.&nbsp;{{{page}}}
}}}}{{#if: {{{location|}}} |.&#32;{{{location|}}}:
}}{{#if: {{{publisher|}}}
  | &#32;{{{publisher}}}{{#if: {{{author|}}}{{{last|}}}
    |
    | {{#if: {{{date|}}}{{{year|}}}{{{month|}}} || }}
   }}
   }}
}}{{
}}{{#if: {{{author|}}}{{{last|}}}
   #if: {{{date|}}}
   ||{{#if: {{{date|}}}
  | &#32;({{{date}}})
    | &#32;({{{date}}})
  | {{
    | {{#if: {{{year|}}}
    #if: {{{year|}}}
      | {{#if: {{{month|}}}
    | {{
        | &#32;({{{month}}} {{{year}}})
      #if: {{{month|}}}
        | &#32;({{{year}}})
      | &#32;({{{month}}} {{{year}}})
      }}
      | &#32;({{{year}}})
     }}
     }}
   }}
   }}
}}{{ #if: {{{author|}}}{{{last|}}} | .
}}. {{#if: {{{isbn|}}}
}}{{
   | &#32;ISBN {{{isbn|}}}  
  #if: {{{chapter|}}}
}}{{#if: {{{archivedate|}}}
   | &#32;"{{
   | &#32;Archived from [{{{url}}} the original] on {{{archivedate}}}.
    #if: {{{chapterurl|}}}
}}{{#if: {{{accessdate|}}}
    | [{{{chapterurl}}} {{{chapter}}}]
   | &#32;Retrieved on {{{accessdate}}}{{#if: {{{accessyear|}}} | , {{{accessyear}}} }}.
    | {{{chapter}}}
}}{{#if: {{{accessmonthday|}}}
}}",}}{{
   | &#32;Retrieved on {{{accessmonthday}}}, {{{accessyear}}}.
  #if: {{{editor|}}}
}}{{#if: {{{quote|}}}  
   | &#32;in {{{editor}}}:
  | &nbsp;“{{{quote}}}”
}} <i>{{
}}</includeonly><noinclude>
  #if: {{{url|}}} | [{{{url}}} {{{title}}}] | {{{title}}}
{{Documentation|zh=Template:Cite book}}
}}</i>{{
</noinclude>
  #if: {{{format|}}} | &#32;({{{format}}})
}}{{
  #if: {{{others|}}} | , {{{others}}}
}}{{
  #if: {{{edition|}}} | , {{{edition}}}
}}{{
   #if: {{{series|}}} | , {{{series}}}
}}{{
  #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|}}} | . [[OCLC]] [http://worldcat.org/oclc/{{urlencode:{{{oclc}}}}} {{{oclc}}}]
}}{{
  #if: {{{url|}}} | {{
  #if: {{{accessdate|}}} |
  . Retrieved on [[{{{accessdate}}}]]
  | {{
    #if: {{{accessyear|}}}
    | . Retrieved {{
      #if: {{{accessmonth|}}}
      | on [[{{{accessmonth}}} {{{accessyear}}}]]
      | during [[{{{accessyear}}}]]
  }}}}
  }}
}}.{{ #if: {{{quote|}}} | &nbsp;“{{{quote}}}”
}}</cite><!--
 
This is a COinS tag (http://ocoins.info), which allows automated tools to parse the citation information:
  --><span class="Z3988" title="ctx_ver=Z39.88-2004<!--
  -->&rft_val_fmt={{urlencode:info:ofi/fmt:kev:mtx:book}}<!--                  Field descriptions: http://www.openurl.info/registry/docs/mtx/info:ofi/fmt:kev:mtx:book
  -->&rft.genre=book<!--                                                        book: a publication that is complete in one part or a designated finite number of parts, often identified with an ISBN.  (genre could also be bookitem, conference, proceeding, report, document, or unknown)
  -->&rft.btitle={{urlencode:{{{title|}}}}}<!--                                The title of the book. This can also be expressed as title, for compatibility with version 0.1. "moby dick or the white whale"
  -->{{#if: {{{chapter|}}}  | &rft.atitle={{urlencode:{{{chapter}}}}}  }}<!-- Chapter title. Chapter title is included if it is a distinct title, e.g. "The Push Westward."
  -->{{#if: {{{last|}}}      | &rft.aulast={{urlencode:{{{last}}}}}      }}<!-- First author's family name. This may be more than one word ... e.g. Smith, Fred James is recorded as "aulast=smith"
  -->{{#if: {{{first|}}}    | &rft.aufirst={{urlencode:{{{first}}}}}    }}<!-- First author's given name or names or initials. This data element may contain multiple words and punctuation, e.g. "Fred F", "Fred James"
  -->{{#if: {{{author|}}}    | &rft.au={{urlencode:{{{author}}}}}        }}<!-- This data element contains the full name of a single author, e.g. "Smith, Fred M", "Harry S. Truman".
  -->{{#if: {{{date|}}}      | &rft.date={{urlencode:{{{date}}}}}<!--
  -->{{#if: {{{year|}}}      | &rft.date={{urlencode:{{{year}}}}} }}    }}<!-- Date of publication. Book dates are assumed to be a single year. (or ISO 8601)
  -->{{#if: {{{edition|}}}  | &rft.edition={{urlencode:{{{edition}}}}}  }}<!-- Statement of the edition of the book. This will usually be a phrase, with or without numbers, but may be a single number, e.g. "First edition", "4th ed."
  -->{{#if: {{{publisher|}}} | &rft.pub={{urlencode:{{{publisher}}}}}    }}<!-- Publisher name. "Harper and Row"
  -->{{#if: {{{location|}}}  | &rft.place={{urlencode:{{{location}}}}}  }}<!-- Place of publication. "New York"
  -->{{#if: {{{pages|{{{page|}}}}}}    | &rft.pages={{urlencode:{{{pages|{{{page}}}}}}}}      }}<!-- Start and end pages for parts of a book, e.g. "124-147" ... This data element includes the OpenURL 0.1 definition of "pages".
  -->{{#if: {{{series|}}}    | &rft.series={{urlencode:{{{series}}}}}    }}<!-- The title of a series in which the book or document was issued. There may also be an ISSN associated with the series.
  -->{{#if: {{{isbn|}}}      | &rft.isbn={{{isbn}}}                      }}<!-- International Standard Book Number (ISBN) ... i.e. "057117678X" but it may contain hyphens, e.g. "1-878067-73-7"
  -->{{#if: {{{oclc|}}}      | &rft_id=info:oclcnum/{{{oclc}}}          }}<!--
  -->{{#if: {{{doi|}}}      | &rft_id=info:doi/{{urlencode:{{{doi}}}}}  }}<!--
  -->{{#if: {{{url|}}}      | &rft_id={{urlencode:{{{url}}}}}          }}<!--
  -->">&nbsp;</span></includeonly><noinclude>{{documentation}}</noinclude>

Latest revision as of 18:44, 3 February 2024

[[{{fullurl:Template:Documentation/docname|action=edit&preload=Template:Documentation/preload}} create]] Template documentation