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)
 
mNo edit summary
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly><cite class="book" style="font-style:normal" {{
{{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={{{title|}}}
|TransTitle={{{trans_chapter|}}}
|TransItalic={{{trans_title|}}}
|IncludedWorkTitle={{{chapter|{{{contribution|{{{section|}}}}}}}}}
|TitleType={{{type|}}}
|language={{{language|}}}
 
|URL={{#if:{{{archiveurl|}}}
      |{{#ifeq: {{{deadurl|}}} | no | {{{url|}}} | {{{archiveurl|}}}}}
      |{{{url|}}}
    }}
|IncludedWorkURL={{{chapter-url|{{{chapterurl|{{{contribution-url|{{{sectionurl|}}}}}}}}}}}}
|AccessDate={{{accessdate|}}}
|OriginalURL={{{url|}}}
|ArchiveURL={{{archiveurl|}}}
|ArchiveDate={{{archivedate|}}}
|DeadURL={{{deadurl|}}}
|format={{{format|}}}
 
|At={{#if: {{{page|}}}|{{#if:{{{nopp|}}}||p.&nbsp;}}{{{page}}}
       |{{#if: {{{pages|}}}|{{#if:{{{nopp|}}}||pp.&nbsp;}}{{{pages}}}
       |{{{at|}}}}}
     }}
     }}
  }}
 
}}{{
|Edition={{{edition|}}}
  #if: {{{author|{{{last|}}}}}}
|Series={{{series|{{{version|}}}}}}
  | {{ #if: {{{coauthors|}}} | <nowiki>;</nowiki>&#32;{{{coauthors}}} }}
|Volume={{{volume|}}}
}}{{
 
  #if: {{{origdate|}}}
|Publisher={{{publisher|}}}
  | &#32;<nowiki>[</nowiki>{{{origdate}}}]
|Place={{{location|{{{place|}}}}}}
  | {{
|PublicationPlace={{{location|{{{place|{{{publication-place|}}}}}}}}}
    #if: {{{origyear|}}}
|PublicationDate={{{publication-date|}}}
    | {{
 
      #if: {{{origmonth|}}}
|EditorSurname1={{{editor-last|{{{editor1-last|{{{editor|{{{editors|{{{editor-surname|{{{editor1-surname|}}}}}}}}}}}}}}}}}}
      | &#32;<nowiki>[</nowiki>{{{origmonth}}} {{{origyear}}}]
|EditorSurname2={{{editor2-last|{{{editor2-surname|}}}}}}
      | &#32;<nowiki>[</nowiki>{{{origyear}}}]
|EditorSurname3={{{editor3-last|{{{editor3-surname|}}}}}}
    }}
|EditorSurname4={{{editor4-last|{{{editor4-surname|}}}}}}
  }}
|EditorGiven1={{{editor-first|{{{editor1-first|{{{editor-given|{{{editor1-given|}}}}}}}}}}}}
}}{{
|EditorGiven2={{{editor2-first|{{{editor2-given|}}}}}}
  #if: {{{date|}}}
|EditorGiven3={{{editor3-first|{{{editor3-given|}}}}}}
  | &#32;({{{date}}})
|EditorGiven4={{{editor4-first|{{{editor4-given|}}}}}}
  | {{
|Editorlink1={{{editor-link|{{{editor1-link|}}}}}}
    #if: {{{year|}}}
|Editorlink2={{{editor2-link|}}}
    | {{
|Editorlink3={{{editor3-link|}}}
      #if: {{{month|}}}
|Editorlink4={{{editor4-link|}}}
      | &#32;({{{month}}} {{{year}}})
 
      | &#32;({{{year}}})
|ARXIV={{{arxiv|}}}
    }}
|ASIN={{{asin|{{{ASIN|}}}}}}
  }}
|ASIN-TLD={{{asin-tld|}}}
}}{{ #if: {{{author|{{{last|}}}}}} | .
|BIBCODE={{{bibcode|}}}
}}{{
|DOI={{{doi|{{{DOI|}}}}}}
  #if: {{{chapter|}}}
|DoiBroken={{{doi_brokendate|{{{doi_inactivedate|}}}}}}
  | &#32;“{{
|ISBN={{{isbn|{{{ISBN|}}}}}}
    #if: {{{chapterurl|}}}
|ISSN={{{issn|{{{ISSN|}}}}}}
    | [{{{chapterurl}}} {{{chapter}}}]
|JFM={{{jfm|{{{JFM|}}}}}}
    | {{{chapter}}}
|JSTOR={{{jstor|{{{JSTOR|}}}}}}
}}”,}}{{
|LCCN={{{lccn|{{{LCCN|}}}}}}
  #if: {{{editor|}}}
|MR={{{mr|{{{MR|}}}}}}
  | &#32;{{{editor}}}
|OCLC={{{oclc|{{{OCLC|}}}}}}
}} ''{{
|OL={{{ol|{{{OL|}}}}}}
  #if: {{{url|}}} | [{{{url}}} {{{title}}}] | {{{title}}}
|OSTI={{{osti|{{{OSTI|}}}}}}
}}''{{
|PMC={{{pmc|{{{PMC|}}}}}}
  #if: {{{format|}}} | &#32;({{{format}}})
|PMID={{{pmid|{{{PMID|}}}}}}
}}{{
|RFC={{{rfc|{{{RFC|}}}}}}
  #if: {{{others|}}} | , {{{others}}}
|SSRN={{{ssrn|{{{SSRN|}}}}}}
}}{{
|ZBL={{{zbl|}}}
  #if: {{{edition|}}} | , {{{edition}}}
|ID={{{id|{{{ID|}}}}}}
}}{{
 
  #if: {{{language|}}} | &#32;(in {{{language}}})
|laysummary={{{laysummary|}}}
}}{{
|laydate={{{laydate|}}}
  #if: {{{publisher|}}}
|laysource={{{laysource|}}}
  | {{#if: {{{format|}}}{{{others|}}}{{{edition|}}} | ,&#32; | .&#32; }}{{  
 
    #if: {{{location|}}}  
|quote={{{quote|}}}
    | {{{location}}}:&#32;
 
  }}{{{publisher}}}
|Ref={{{ref|}}}
}}{{
 
  #if: {{{pages|}}} | ,&#32;{{{pages}}}
|amp={{{lastauthoramp|}}}
}}{{
|AuthorMask={{{author-mask|{{{authormask|}}}}}}
  #if: {{{doi|}}} | . [[Digital object identifier|DOI]]:[http://dx.doi.org/{{{doi}}} {{{doi}}}]
|AuthorSep={{#ifeq:{{{author-separator|}}}|;|&#059;|{{{author-separator|&#059;}}}}}&#32;
}}{{
|NameSep={{{author-name-separator|,}}}&#32;
  #if: {{{id|}}} | . {{{id}}}
|PS={{#if:{{{quote|}}}||{{{postscript|.}}}}}
}}{{
|Sep={{#ifeq:{{{separator|{{{seperator}}} }}}|;|&#059;|{{{separator|{{{seperator|.}}} }}} }}
  #if: {{{accessdate|}}}
|template doc demo={{{template doc demo|}}}
  | . Retrieved on [[{{{accessdate}}}]]
|Trunc={{#if:{{{display-authors|}}}|{{{display-authors}}}|8}}
  | {{
}}{{#if:{{{access-date|}}}{{{accessdaymonth|}}}{{{accessday|}}}{{{accessmonthday|}}}{{{accessmonth|}}}{{{accessyear|}}}{{{dateformat|}}}{{{day|}}}{{{doilabel|}}}
    #if: {{{accessyear|}}}
|[[Category:Pages containing cite templates with deprecated parameters|{{NAMESPACE}} {{PAGENAME}}]]}}<noinclude>
    | . Retrieved {{
{{documentation}}
      #if: {{{accessmonth|}}}
      | on [[{{{accessmonth}}} {{{accessyear}}}]]
      | during [[{{{accessyear}}}]]
    }}
  }}
}}.{{ #if: {{{quote|}}} | &nbsp;“{{{quote}}}”
}}</cite></includeonly><noinclude>
{{template doc}}
</noinclude>
</noinclude>

Latest revision as of 20:10, 11 December 2020

. 

[edit]
Error creating thumbnail: Unable to save thumbnail to destination
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.