Typecraft v2.5
Jump to: navigation, search

Difference between revisions of "Template:Infobox book"

(made change per talk request)
 
(68 intermediate revisions by 26 users not shown)
Line 1: Line 1:
{| class="infobox" style="width:20em; text-align:left"
+
{{Infobox
<caption style="font-size: larger;">'''''{{{name}}}'''''</caption><!--
+
|italic title={{{italic title|}}}
-->{{#if: {{{image|}}} |<tr><td colspan=2 style="text-align: center">{{{image}}}
+
|bodystyle=width:{{{infoboxwidth|{{{width|20em}}}}}};
{{#if: {{{image_caption|}}} | <br> {{{image_caption}}} }}</td></tr>}}
+
|abovestyle=background:inherit; font-weight:bold; font-style:italic;
<tr><th>Author</th><td>{{{author}}}</td></tr><!--
+
|labelstyle=background:inherit; white-space:nowrap;
-->{{#if:{{{title_orig|}}}|<tr><th>Original title</th><td>{{{title_orig}}}</td></tr>}}<!--
+
|above= {{{name|{{PAGENAME}}}}} <span class="Z3988" title="ctx_ver=Z39.88-2004&rft_val_fmt={{urlencode:info:ofi/fmt:kev:mtx:book}}&rft.genre=book&rft.btitle={{urlencode:{{{name|}}}}}{{#if: {{{author|}}}|&rft.author={{urlencode:{{{author}}}}}}}{{#if: {{{last|}}}|&rft.aulast={{urlencode:{{{last}}}}}}}{{#if: {{{first|}}}|&rft.aufirst={{urlencode:{{{first}}}}}}}{{#if: {{{pub_date|{{{release_date|}}}}}}|&rft.date={{urlencode:{{{pub_date|{{{release_date}}}}}}}}}}{{#if: {{{publisher|}}}|&rft.pub={{urlencode:{{{publisher}}}}}}}{{#if: {{{location|}}}|&rft.place={{urlencode:{{{location}}}}}}}{{#if: {{{pages|}}}|&rft.pages={{urlencode:{{{pages}}}}}}}{{#if: {{{series|}}}|&rft.series={{urlencode:{{{series}}}}}}}{{#if: {{{oclc|}}}|&rft_id=info:oclcnum/{{{oclc}}}}}">&nbsp;</span>
-->{{#if:{{{translator|}}}|<tr><th>Translator</th><td>{{{translator|}}}</td></tr>}}<!--
+
|image= {{{image|}}}
-->{{#if:{{{illustrator|}}}|<tr><th>Illustrator</th><td>{{{illustrator|}}}</td></tr>}}<!--
+
|caption= {{{image_caption|}}}
-->{{#if:{{{cover_artist|}}}|<tr><th>Cover&nbsp;artist</th><td>{{{cover_artist|}}}</td></tr>}}<!--
+
|label1=Type
-->{{#if:{{{country|}}}|<tr><th>[[Country]]</th><td>{{{country|}}}</td></tr>}}<!--
+
|data1={{{type|}}}
-->{{#if:{{{language|}}}|<tr><th>[[Language]]</th><td>{{{language|}}}</td></tr>}}<!--
+
|label2= Author(s)
-->{{#if:{{{series|}}}|<tr><th>Series</th><td>{{{series}}}</td></tr>}}<!--
+
|data2= {{{author}}}
-->{{#if:{{{subject|}}}|<tr><th>{{nowrap|Subject(s)}}</th><td>{{{subject|}}}</td></tr>}}<!--
+
|label3=Translator(s)
-->{{#if:{{{genre|}}}|<tr><th>{{nowrap|Genre(s)}}</th><td>{{{genre|}}}</td></tr>}}
+
|data3={{{translator|}}}
<tr><th>[[Publisher]]</th><td>{{{publisher}}}</td></tr>
+
|label4=Editor(s)
<tr><th>Publication date</th><td>{{{pub_date|{{{release_date|}}}}}}</td></tr><!--
+
|data4={{{editor|}}}
-->{{#if:{{{english_release_date|}}}{{{english_pub_date|}}}|<tr><th>Published in English</th><td>{{{english_pub_date|{{{english_release_date}}}}}}</td></tr>}}<!--
+
|label5= Publication title
-->{{#if:{{{media_type|}}}|<tr><th>Media&nbsp;type</th><td>{{{media_type|}}}</td></tr>}}<!--
+
|data5= {{#if:{{{pub_title|}}}|''{{{pub_title}}}''}}
-->{{#if:{{{pages|}}}|<tr><th>Pages</th><td>{{{pages|}}}</td></tr>}}<!--
+
|label6=Journal
-->{{#if:{{{size_weight|}}}|<tr><th>Size&nbsp;and&nbsp;weight</th><td>{{{size_weight|}}}</td></tr>}}<!--
+
|data6={{{journal|}}}
-->{{#if:{{{isbn|}}}|<tr><th>[[International Standard Book Number|ISBN]]</th><td>{{{isbn|}}}</td></tr>}}<!--
+
|label7=Publisher
-->{{#if:{{{oclc|}}}|<tr><th>[[OCLC]]</th><td>[http://worldcat.org/oclc/{{urlencode:{{{oclc}}}}} {{{oclc}}}]</td></tr>}}<!--
+
|data7={{{publisher|}}}  
-->{{#if:{{{preceded_by|}}}|<tr><th>Preceded&nbsp;by</th><td>''{{{preceded_by|}}}''</td></tr>}}<!--
+
|label8=Publication date
-->{{#if:{{{followed_by|}}}|<tr><th>Followed&nbsp;by</th><td>''{{{followed_by|}}}''</td></tr>}}<!--
+
|data8={{{pub_date|{{{release_date|}}}}}}
 
+
|label9=Pages
This is a COinS tag (http://ocoins.info), which allows automated tools to parse the citation information:
+
|data9={{{pages|}}}
 
+
|label10=Volume
  --><tr><th></th><td><span class="Z3988" title="ctx_ver=Z39.88-2004<!--
+
|data10={{{volume|}}}  
  -->&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
+
|label11= Country
  -->&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)
+
|data11={{{country|}}}
  -->&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"
+
|label12= [[International Standard Book Number|ISBN]]
  -->{{#if: {{{chapter|}}}   | &rft.atitle={{urlencode:{{{chapter}}}}}   }}<!-- Chapter title. Chapter title is included if it is a distinct title, e.g. "The Push Westward."
+
|data12= {{#if:{{{isbn|{{{ISBN|}}}}}} | {{#iferror: {{#expr:{{{isbn|{{{ISBN}}}}}}}}  
  -->{{#if: {{{author|}}}      | &rft.author={{urlencode:{{{author}}}}}      }}<!-- Author's name (USING "last" AND "first" WOULD BE BETTER)
+
| {{{isbn|{{{ISBN}}}}}} | [[Special:Booksources/{{{isbn|{{{ISBN}}}}}}|{{{isbn|{{{ISBN}}}}}}]] }} }}
  -->{{#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
+
|label13= [[Online Computer Library Center|OCLC]] Number
  -->{{#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
+
|data13= {{#if:{{{oclc|}}}| [http://worldcat.org/oclc/{{urlencode:{{{oclc}}}}} {{{oclc}}}] }}
  -->{{#if: {{{date|}}}  
+
|label13= [[Dewey Decimal Classification|Dewey Decimal]]
      | &rft.date={{urlencode:{{{date}}}}}                                    
+
|label14= available_at
      | {{#if: {{{year|}}}  | &rft.date={{urlencode:{{{year}}}}} }}     }}<!-- Date of publication. Book dates are assumed to be a single year. (or ISO 8601)
+
|data14={{{available_at|}}}
  -->{{#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."
+
|label15= Annotator
  -->{{#if: {{{publisher|}}} | &rft.pub={{urlencode:{{{publisher}}}}}   }}<!-- Publisher name. "Harper and Row"
+
|data15= {{{annotator|}}}
  -->{{#if: {{{location|}}} | &rft.place={{urlencode:{{{location}}}}}   }}<!-- Place of publication. "New York"
+
|label16= Corpus Link
  -->{{#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".
+
|data16= {{{corpus|}}}
  -->{{#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.
+
|label17= Language
  -->{{#if: {{{isbn|}}}     | &rft.isbn={{{isbn}}}                     }}<!-- International Standard Book Number (ISBN) ... i.e. "057117678X" but it may contain hyphens, e.g. "1-878067-73-7"
+
|data17= {{{language|}}}
  -->{{#if: {{{oclc|}}}     | &rft_id=info:oclcnum/{{{oclc}}}           }}<!--
+
|label18= Series
  -->{{#if: {{{doi|}}}       | &rft_id=info:doi/{{urlencode:{{{doi}}}}} }}<!--
+
|data18= {{{series|}}}
  -->{{#if: {{{url|}}}       | &rft_id={{urlencode:{{{url}}}}}           }}<!-- URL
+
|label18= Subject(s)
  -->">&nbsp;</span>
+
|data18= {{{subject|}}}
</td></tr>
+
|label20= Framework
|}<noinclude>{{/doc}}</noinclude>
+
|data20= {{{framework|}}}
 +
|label21= Media type
 +
|data21= {{{media_type|}}}
 +
|label22= Preceded by
 +
|data22= {{#if:{{{preceded_by|}}}|''{{{preceded_by}}}''}}
 +
|label23= Followed by
 +
|data23= {{#if:{{{followed_by|}}}|''{{{followed_by|}}}''}}
 +
}}<noinclude>
 +
{{documentation}}
 +
</noinclude>

Latest revision as of 17:41, 2 September 2012

Infobox book  
Author(s) {{{author}}}
[edit] [purge] 50px Template documentation

TypeCraft uses the Infobox books to provide metadata information for TCwiki pages in the Category:Interlinear Glossed Text from Linguistic Research. In the template below you see which parameters you can add to this template.

Usage

{{Infobox
| name             = 
| image            = <!-- include the picture file and determine the size; e.g.: [[File:Example.jpg|200px|Cover]] -->
| image_caption    = 
|caption= 
|type= 
|author=
|translator=
|editor=
|pub_title= 
|journal=
|publisher=
|pub_date=
|pages= 
|volume=
|country=
|isbn=
|oclc=
|dewey=
|congress=
|annotator=
|corpus=
|language=
|series=
|subject=
|genre=
|media_type=
|available_at=
|preceded_by=
|followed_by=
}}

Parameters

  • name Title of the article or book that the Interlinear Glossed Text (IGT) was taken from. If this parameter is left blank, the title will be inherited from page title.
  • image' Image (might be this is important for rare sources). Load the picture to the TypeCraft wiki and create an internal link to the picture [[Image: example.jpg|200px|Cover]]
  • image_captionImage caption (should describe the edition used)
  • typeType refers to different forms of publications: Possible entries are: [in-book|book|article|proceedings|manuscript|PhD-thesis]]
  • author Author of the publication
  • translator Translator of the original text
  • editor= name of the editor
  • pub_title=name of the publication that contains the article
  • journal=name of the paper or online journal that contains the article
  • publisher=name of the publisher of the book, or the book or journal, that contains the article
  • pub_date=data of the 1edition
  • pages= for example: p.34-123
  • volume=volume may apply to a series of books or a journal
  • country=country of publication
  • isbn=isbn number for example: "ISBN xxxxxxxxx" (prefer 1st edition)
  • oclc=OCLC
  • dewey=[1]
  • congress=http://en.wikipedia.org/wiki/Library_of_Congress_Classification
  • annotator=name of the Tc annotator who has added additional layers of linguistic annotation
  • corpus=link to the TypeCraft corpus of Interlinear Glossed Text
  • language=language of the original
  • series= series if any
  • subject= linguistic characterisation of the phenomenon treated in the publication
  • framework= linguistic framework
  • available_at=for example URL
  • media_type= [paper|on-line|remarks about physical property of the publication (if any)]
  • preceded_by=title of a publication which treated the same phenomenon in the same language prior to the present publication
  • followed_by=title of a publication which treated the same phenomenon in the same language subsequently to the present publication