Typecraft v2.5
Jump to: navigation, search

Difference between revisions of "Template:Infobox book"

(made change per talk request)
(rv until code is fixed)
Line 22: Line 22:
 
-->{{#if:{{{oclc|}}}|<tr><th>[[OCLC]]</th><td>[http://worldcat.org/oclc/{{urlencode:{{{oclc}}}}} {{{oclc}}}]</td></tr>}}<!--
 
-->{{#if:{{{oclc|}}}|<tr><th>[[OCLC]]</th><td>[http://worldcat.org/oclc/{{urlencode:{{{oclc}}}}} {{{oclc}}}]</td></tr>}}<!--
 
-->{{#if:{{{preceded_by|}}}|<tr><th>Preceded&nbsp;by</th><td>''{{{preceded_by|}}}''</td></tr>}}<!--
 
-->{{#if:{{{preceded_by|}}}|<tr><th>Preceded&nbsp;by</th><td>''{{{preceded_by|}}}''</td></tr>}}<!--
-->{{#if:{{{followed_by|}}}|<tr><th>Followed&nbsp;by</th><td>''{{{followed_by|}}}''</td></tr>}}<!--
+
-->{{#if:{{{followed_by|}}}|<tr><th>Followed&nbsp;by</th><td>''{{{followed_by|}}}''</td></tr>}}
 
+
|}<noinclude>
This is a COinS tag (http://ocoins.info), which allows automated tools to parse the citation information:
+
{{/doc}}</noinclude>
 
+
  --><tr><th></th><td><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:{{{name|}}}}}<!--                                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: {{{author|}}}      | &rft.author={{urlencode:{{{author}}}}}      }}<!-- Author's name (USING "last" AND "first" WOULD BE BETTER)
+
  -->{{#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" NOT USED IN INFOBOX BOOK AS YET
+
  -->{{#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" NOT USED IN INFOBOX BOOK AS YET
+
  -->{{#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|}}}    | &rft.pages={{urlencode:{{{pages}}}}}      }}<!-- 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}}}}}          }}<!-- URL
+
  -->">&nbsp;</span>
+
</td></tr>
+
|}<noinclude>{{/doc}}</noinclude>
+

Revision as of 17:49, 17 August 2007

<tr><th>Author</th><td>{{{author}}}</td></tr> <tr><th>Publisher</th><td>{{{publisher}}}</td></tr> <tr><th>Publication date</th><td></td></tr>
{{{name}}}

Template:/doc