Template:Cite book: Difference between revisions

From WikiIslam, the online resource on Islam
Jump to navigation Jump to search
[checked revision][checked revision]
(correct template doc link)
 
(might be an easy fix)
Line 1: Line 1:
<includeonly><cite class="book" style="font-style:normal" {{
<includeonly>{{Citation/core
  #if: {{{ref|}}}
|Citation class=book
  |{{#ifeq:{{{ref}}}|none||id="{{{ref}}}"}}
 
  |{{#if:{{{last|}}} | {{#if:{{{year|}}} | id="Reference-{{{last}}}-{{{year}}}" }} }}
|Surname1={{{last|{{{last1|{{{author|{{{author1|{{{authors|{{{surname|{{{surname1|}}}}}}}}}}}}}}}}}}}}}
}}>{{
|Surname2={{{last2|{{{author2|{{{surname2|}}}}}}}}}
  #if: {{{author|{{{last|}}}}}}
|Surname3={{{last3|{{{author3|{{{surname3|}}}}}}}}}
  | {{
|Surname4={{{last4|{{{author4|{{{surname4|}}}}}}}}}
    #if: {{{authorlink|}}}
|Surname5={{{last5|{{{author5|{{{surname5|}}}}}}}}}
    | [[{{{authorlink}}}|{{
|Surname6={{{last6|{{{author6|{{{surname6|}}}}}}}}}
      #if: {{{last|}}}
|Surname7={{{last7|{{{author7|{{{surname7|}}}}}}}}}
      | {{{last}}}{{ #if: {{{first|}}} | , {{{first}}} }}
|Surname8={{{last8|{{{author8|{{{surname8|}}}}}}}}}
      | {{{author}}}
|Surname9={{{last9|{{{author9|{{{surname9|}}}}}}}}}
    }}]]
 
    | {{
|Given1={{{first|{{{first1|{{{given|{{{given1|}}}}}}}}}}}}
       #if: {{{last|}}}
|Given2={{{first2|{{{given2|}}}}}}
      | {{{last}}}{{ #if: {{{first|}}} | , {{{first}}} }}
|Given3={{{first3|{{{given3|}}}}}}
      | {{{author}}}
|Given4={{{first4|{{{given4|}}}}}}
|Given5={{{first5|{{{given5|}}}}}}
|Given6={{{first6|{{{given6|}}}}}}
|Given7={{{first7|{{{given7|}}}}}}
|Given8={{{first8|{{{given8|}}}}}}
|Given9={{{first9|{{{given9|}}}}}}
 
|Authorlink1={{{authorlink|{{{authorlink1|{{{author-link|{{{author1-link|}}}}}}}}}}}}
|Authorlink2={{{authorlink2|{{{author2-link|}}}}}}
|Authorlink3={{{authorlink3|{{{author3-link|}}}}}}
|Authorlink4={{{authorlink4|{{{author4-link|}}}}}}
|Authorlink5={{{authorlink5|{{{author5-link|}}}}}}
|Authorlink6={{{authorlink6|{{{author6-link|}}}}}}
|Authorlink7={{{authorlink7|{{{author7-link|}}}}}}
|Authorlink8={{{authorlink8|{{{author8-link|}}}}}}
|Authorlink9={{{authorlink9|{{{author9-link|}}}}}}
 
|Coauthors={{{coauthors|{{{coauthor|}}}}}}
 
|Other={{{others|}}}
 
|Year={{{year|{{    <!-- attempt to derive year from date, if possible -->
          #if: {{{date|}}}
          |{{
              #iferror:{{#time:Y|{{{date|}}} }}
              |{{#iferror:{{#time:Y|{{{publication-date|einval}}} }}||{{#time:Y|{{{publication-date|}}} }}}}
              |{{#time:Y|{{{date|}}} }}
            }}
          |{{{publication-date|}}} <!-- last resort -->
        }}
       }}}
|YearNote={{{origyear|}}}
|Date={{#if:{{{date|}}}|{{{date}}}|{{{day|}}} {{{month|}}} {{{year|{{{publication-date|}}}}}}}}
 
|Title={{{work|}}}
|IncludedWorkTitle={{
  #if:{{{title|}}}
  |{{{title}}}
  |{{
    #if:{{{trans_title|}}}
    |
    |{{citation error|nocat={{{template doc demo|}}}|no <code>&#124;title&#61;</code> specified|Cite web}}
     }}
     }}
   }}
   }}
}}{{
|TransTitle={{{trans_title|}}}
  #if: {{{author|{{{last|}}}}}}
|TitleType={{{type|}}}
  | {{ #if: {{{coauthors|}}} | <nowiki>;</nowiki>&#32;{{{coauthors}}} }}
|language={{{language|}}}
}}{{
 
  #if: {{{origdate|}}}
|IncludedWorkURL={{#if:{{{archiveurl|}}}
  | &#32;<nowiki>[</nowiki>{{{origdate}}}]
      |{{#ifeq: {{{deadurl|}}} | no | {{{url|}}} | {{{archiveurl|}}}}}
  | {{
      |{{{url|}}}
    #if: {{{origyear|}}}
    }}
    | {{
|AccessDate={{{accessdate|}}}
       #if: {{{origmonth|}}}
|OriginalURL={{{url|}}}
      | &#32;<nowiki>[</nowiki>{{{origmonth}}} {{{origyear}}}]
|ArchiveURL={{{archiveurl|}}}
       | &#32;<nowiki>[</nowiki>{{{origyear}}}]
|ArchiveDate={{{archivedate|}}}
|DeadURL={{{deadurl|}}}
|format={{{format|}}}
 
|At={{#if: {{{page|}}}|{{#if:{{{nopp|}}}||p.&nbsp;}}{{{page}}}
       |{{#if: {{{pages|}}}|{{#if:{{{nopp|}}}||pp.&nbsp;}}{{{pages}}}
       |{{{at|}}}}}
     }}
     }}
  }}
 
}}{{
|Series={{{agency|{{{series|{{{version|}}}}}}}}}
  #if: {{{date|}}}
 
  | &#32;({{{date}}})
|Publisher={{{publisher|}}}
  | {{
|Place={{{location|{{{place|}}}}}}
    #if: {{{year|}}}
|PublicationPlace={{{location|{{{place|{{{publication-place|}}}}}}}}}
    | {{
|PublicationDate={{{publication-date|}}}
      #if: {{{month|}}}
 
      | &#32;({{{month}}} {{{year}}})
|EditorSurname1={{{editor-last|{{{editor1-last|{{{editor|{{{editors|{{{editor-surname|{{{editor1-surname|}}}}}}}}}}}}}}}}}}
      | &#32;({{{year}}})
|EditorSurname2={{{editor2-last|{{{editor2-surname|}}}}}}
    }}
|EditorSurname3={{{editor3-last|{{{editor3-surname|}}}}}}
  }}
|EditorSurname4={{{editor4-last|{{{editor4-surname|}}}}}}
}}{{ #if: {{{author|{{{last|}}}}}} | .
|EditorGiven1={{{editor-first|{{{editor1-first|{{{editor-given|{{{editor1-given|}}}}}}}}}}}}
}}{{
|EditorGiven2={{{editor2-first|{{{editor2-given|}}}}}}
  #if: {{{chapter|}}}
|EditorGiven3={{{editor3-first|{{{editor3-given|}}}}}}
  | &#32;“{{
|EditorGiven4={{{editor4-first|{{{editor4-given|}}}}}}
    #if: {{{chapterurl|}}}
|Editorlink1={{{editor-link|{{{editor1-link|}}}}}}
    | [{{{chapterurl}}} {{{chapter}}}]
|Editorlink2={{{editor2-link|}}}
    | {{{chapter}}}
|Editorlink3={{{editor3-link|}}}
}}”,}}{{
|Editorlink4={{{editor4-link|}}}
  #if: {{{editor|}}}
 
  | &#32;{{{editor}}}
|ARXIV={{{arxiv|}}}
}} ''{{
|ASIN={{{asin|{{{ASIN|}}}}}}
  #if: {{{url|}}} | [{{{url}}} {{{title}}}] | {{{title}}}
|ASIN-TLD={{{asin-tld|}}}
}}''{{
|BIBCODE={{{bibcode|}}}
  #if: {{{format|}}} | &#32;({{{format}}})
|DOI={{{doi|{{{DOI|}}}}}}
}}{{
|DoiBroken={{{doi_brokendate|{{{doi_inactivedate|}}}}}}
  #if: {{{others|}}} | , {{{others}}}
|ISBN={{{isbn|{{{ISBN|}}}}}}
}}{{
|ISSN={{{issn|{{{ISSN|}}}}}}
  #if: {{{edition|}}} | , {{{edition}}}
|JFM={{{jfm|{{{JFM|}}}}}}
}}{{
|JSTOR={{{jstor|{{{JSTOR|}}}}}}
  #if: {{{language|}}} | &#32;(in {{{language}}})
|LCCN={{{lccn|{{{LCCN|}}}}}}
}}{{
|MR={{{mr|{{{MR|}}}}}}
  #if: {{{publisher|}}}
|OCLC={{{oclc|{{{OCLC|}}}}}}
  | {{#if: {{{format|}}}{{{others|}}}{{{edition|}}} | ,&#32; | .&#32; }}{{  
|OL={{{ol|{{{OL|}}}}}}
    #if: {{{location|}}}  
|OSTI={{{osti|{{{OSTI|}}}}}}
    | {{{location}}}:&#32;
|PMC={{{pmc|{{{PMC|}}}}}}
  }}{{{publisher}}}
|PMID={{{pmid|{{{PMID|}}}}}}
}}{{
|RFC={{{rfc|{{{RFC|}}}}}}
  #if: {{{pages|}}} | ,&#32;{{{pages}}}
|SSRN={{{ssrn|{{{SSRN|}}}}}}
}}{{
|ZBL={{{zbl|}}}
  #if: {{{doi|}}} | . [[Digital object identifier|DOI]]:[http://dx.doi.org/{{{doi}}} {{{doi}}}]
|ID={{{id|{{{ID|}}}}}}
}}{{
 
  #if: {{{id|}}} | . {{{id}}}
|laysummary={{{laysummary|}}}
}}{{
|laydate={{{laydate|}}}
  #if: {{{accessdate|}}}
|laysource={{{laysource|}}}
  | . Retrieved on [[{{{accessdate}}}]]
 
  | {{
|quote={{{quote|}}}
    #if: {{{accessyear|}}}
 
    | . Retrieved {{
|Ref={{{ref|}}}
      #if: {{{accessmonth|}}}
 
      | on [[{{{accessmonth}}} {{{accessyear}}}]]
|amp={{{lastauthoramp|}}}
      | during [[{{{accessyear}}}]]
|AuthorMask={{{author-mask|{{{authormask|}}}}}}
    }}
|AuthorSep={{#ifeq:{{{author-separator|}}}|;|&#059;|{{{author-separator|&#059;}}}}}&#32;
  }}
|NameSep={{{author-name-separator|,}}}&#32;
}}.{{ #if: {{{quote|}}} | &nbsp;“{{{quote}}}
|PS={{#if:{{{quote|}}}||{{{postscript|.}}}}}
}}</cite></includeonly><noinclude>
|Sep={{#ifeq:{{{separator|{{{seperator}}} }}}|;|&#059;|{{{separator|{{{seperator|,}}} }}} }}
{{template doc}}
|template doc demo={{{template doc demo|}}}
|old-ra-templatetext={{{old-ra-templatetext|}}}
|Trunc={{#if:{{{display-authors|}}}|{{{display-authors}}}|8}}
}}{{#if:{{{access-date|}}}{{{accessdaymonth|}}}{{{accessday|}}}{{{accessmonthday|}}}{{{accessed|}}}{{{accessmonth|}}}{{{accessyear|}}}{{{dateformat|}}}{{{day|}}}{{{doilabel|}}}
|[[Category:Pages containing cite templates with deprecated parameters|{{NAMESPACE}} {{PAGENAME}}]]}}</includeonly><noinclude>
{{documentation}}
</noinclude>
</noinclude>

Revision as of 04:42, 5 March 2014

[edit] Template-info.png Template documentation

Usage:

{{cite book |title= |last= |first= |page= |year= |url= |location= |publisher= |isbn= |date= |accessdate= }}

Use 'page' for a single page or 'pages' for multiple pages.

For more examples see Wikipedia's document page on this template.