Template:Cite book/sandbox2

{{

#if: {{#if:||{{#if:{{{trans_title|}}}||{{{trans_chapter|}}}}}}} |{{    #if:{{{editorsurname1|{{{editor|{{{editor1|}}}}}}|}}} |{{{separator|{{{sep|,}}}}}}&#32; }}{{Citation/make link | 1={{          #if: |          |{{              #if: |{{{url}}}

|{{#ifexpr:{{#time: U}} > {{#time: U | {{{embargo|2001-10-10}}} }} |{{                  #if: {{{PMC|}}} |http://www.pubmedcentral.nih.gov/articlerender.fcgi?tool=pmcentrez&artid={{{PMC}}} }}              }}            }}         }}     | 2={{           #if: |{{{chapter|}} |"{{{chapter|{{{contribution|}}}}}}{{            #if: {{{trans_chapter|}}}             |{{                #if: {{{chapter|{{{contribution|}}}}}}                |&#32;              }}&#91;{{{trans_chapter}}}&#93;           }}" }}  }} }}{{

#if: {{{place|{{{location|}}}}}} |{{    #ifeq: {{{place|{{{location|}}}}}} | {{{publication-place|{{{place|{{{location|}}}}}}}}} |    |{{        #if: {{{surname1|{{{last|{{{last1|{{{authors|}}}}}}}}}|}}}{{{editor-surname1|{{{editor|{{{editor1|}}}}}}|}}}{{{chapter|{{{contribution|}}}}}} |{{{separator|{{{sep|,}}}}}}&#32;written at {{{place|{{{location}}}}}} }}  }} }}{{

#if: {{{editor-surname1|{{{editor-surname|{{{editor1|{{{editors|{{{editor|}}}}}}}}}}}}}}} |{{    #if: {{{surname1|{{{surname|{{{last|{{{last1|{{{author1|{{{authors|}}}}}}}}}}}}}}}}}} |{{{separator|{{{separator|{{{sep|,}}}}}}}}}&#32;{{ #if: {{{chapter|{{{contribution|}}}}}} |{{#ifeq:{{{separator|{{{separator|{{{sep|,}}}}}}}}}|.|I|i}}n&#32; }}{{       #if: {{{editorlink1|}}} |{{{editor-surname1|{{{editor-surname|{{{editor1|{{{editors|{{{editor|}}}}}}}}}}}}}}}{{          #if: {{{editor-given1|}}}           |, {{{editor-given1}}}         }} |{{{editor-surname1|{{{editor-surname|{{{editor1|{{{editors|{{{editor|}}}}}}}}}}}}}}}{{ #if: {{{editor-given1|}}} |, {{{editor-given1}}} }}}}{{       #if: {{{editor-surname2|{{{editor2|}}}}}} |{{         #if: {{{editor-surname3|{{{editor3|}}}}}} |{{{author-separator|&#059;}}}&#32; |{{#if:{{{amp|}}}|&#32;&amp;&#32;|{{{author-separator|&#059;}}}&#32;}} }}{{          #if: {{{editorlink2|}}} |{{{editor-surname2|{{{editor2|}}}}}}{{             #if: {{{editor-given2|}}}              |, {{{editor-given2}}}            }} |{{{editor-surname2|{{{editor2|}}}}}}{{ #if: {{{editor-given2|}}} |, {{{editor-given2}}} }}        }}{{           #if: {{{editor-surname3|{{{editor3|}}}}}} |{{             #if: {{{editor-surname4|{{{editor4|}}}}}} |&#059;&#32;             |{{#if:{{{amp|}}}|&#32;&amp;&#32;|{{{author-separator|&#059;}}}&#32;}} }}{{             #if: {{{editorlink3|}}} |{{{editor-surname3|{{{editor3|}}}}}}{{                #if: {{{editor-given3|}}}                 |, {{{editor-given3}}}               }} |{{{editor-surname3|{{{editor3|}}}}}}{{ #if: {{{editor-given3|}}} |, {{{editor-given3}}} }}           }}{{              #if:{{{editor-surname4|{{{editor4|}}}}}} |&#32;et al. }}        }}      }}{{        #if: {{{chapter|{{{contribution|}}}}}} |       |{{{separator|{{{separator|{{{sep|,}}}}}}}}}&#32;ed{{ #if:{{{editor-surname2|{{{editor2|}}}}}}|s}}{{ #ifeq:{{{separator|{{{separator|{{{sep|,}}}}}}}}}|.||.}} }}  }} }}{{

#if: {{{periodical|}}} |{{    #if: {{{other|}}}{{{others|}}} |{{{separator|{{{sep|,}}}}}}&#32;{{{other|}}}{{{others|}}} }}{{    #if: {{{surname1|{{{surname|{{{last|{{{last1|{{{author1|{{{authors|}}}}}}}}}}}}}}}|}}}{{{editor-surname1|{{{editor|{{{editor1|}}}}}}|}}}{{{chapter|{{{contribution|}}}}}} |{{{separator|{{{sep|,}}}}}}&#32;}}{{ #if: {{{trans_chapter|}}} |{{Citation/make link | 1={{             #if: {{{chapter|{{{contribution|}}}}}} |{{                #if: {{{chapter-url|{{{contribution-url|}}}}}} |{{                   #if: |{{{url}}} |{{                      #ifexpr: {{#time: U}} > {{#time: U | {{{embargo|2001-10-10}}} }} | {{ #if: {{{PMC|}}} | http://www.pubmedcentral.nih.gov/articlerender.fcgi?tool=pmcentrez&artid={{{PMC}}} }}                    }}                  }}               }}              |{{                 #if: {{{url|}}} |{{{url}}} |{{#ifexpr:{{#time: U}} > {{#time: U | {{{embargo|2001-10-10}}} }} |{{ #if: {{{PMC|}}} | http://www.pubmedcentral.nih.gov/articlerender.fcgi?tool=pmcentrez&artid={{{PMC}}} }}                }}               }}            }}        | 2="{{{title}}}{{          #if: {{{trans_chapter|}}}          |{{             #if:              |&#32;           }}&#91;{{{trans_chapter}}}&#93;        }}" }}{{       #if: {{{title-note|}}} |{{{separator|{{{sep|,}}}}}}&#32;{{{title-note}}} }}  }} }}{{  #if: {{{language|{$$}}}} |&#32;(in {{{language|{{{in}}}}}}) }}{{ #if: {{{format|}}} |&#32;({{{format}}}) }}{{  #if: {{{periodical|}}} |{{     #if:{{{chapter|{{{contribution|}}}}}}{{{trans_chapter|}}} |{{{separator|{{{sep|,}}}}}}&#32; }}{{{periodical}}}{{ #if: |{{{separator|{{{sep|,}}}}}}&#32; }}{{     #if: {{{publication-place|}}} |{{        #if: |&#32;({{{publication-place}}}: ) |&#32;({{{publication-place}}}) }}     |{{         #if: {{{publisher|}}} |&#32;({{{publisher}}}) }}   }}{{      #if: |&#32;{{        #if: {{{issue|{{{number|}}}}}} |&#32;({{{issue|{{{number|}}}}}}) }}     |{{         #if: {{{issue|{{{number|}}}}}} |&#32;({{{issue|{{{number|}}}}}}) }}   }}{{      #if: | :    }}   |{{      #if: {{{title|}}}{{{trans-title|}}} |{{        #if: {{{surname1|{{{surname|{{{last|{{{last1|{{{author1|{{{authors|{{{author|}}}}}}}}}}}}}}}}}}|}}}{{{editorsurname1|{{{editor|{{{editor1|}}}}}}|}}}{{{chapter|{{{contribution|}}}}}}{{{periodical|}}} |{{{separator|{{{sep|,}}}}}} }}&#32;{{Citation/make link | 1={{              #if: {{{chapter|{{{contribution|}}}}}} |{{                 #if:{{{chapter-url|{{{contribution-url|}}}}}} |{{                    #if: {{{url|}}} |{{{url}}} |{{#ifexpr:{{#time: U}} > {{#time: U | {{{embargo|2001-10-10}}} }}|{{ #if: {{{PMC|}}} | http://www.pubmedcentral.nih.gov/articlerender.fcgi?tool=pmcentrez&artid={{{PMC}}} }}}}                  }}                }}               |{{                  #if: {{{url|}}} |{{{url}}} |{{#ifexpr:{{#time: U}} > {{#time: U | {{{embargo|2001-10-10}}} }}|{{ #if: {{{PMC|}}} | http://www.pubmedcentral.nih.gov/articlerender.fcgi?tool=pmcentrez&artid={{{PMC}}} }}}}               }}             }}         | 2=''{{{title|}}}{{ #if:{{{trans-title|}}}|&#32;&#91;{{{trans-title}}}&#93; }}''      }}    }}{{      #if: {{{type|}}} |&#32;({{{type}}}) }}{{     #if: {{{series|}}} |{{{separator|{{{sep|,}}}}}}&#32;{{{series}}} }}{{     #if: {{{volume|}}} |{{{separator|{{{sep|,}}}}}}&#32;{{{volume|}}} }}{{     #if: {{{other|{{{others|}}}}}} |{{{separator|{{{sep|,}}}}}}&#32;{{{other|{{{others|}}}}}} }}{{     #if: |&#32;( ed.) }}{{     #if: {{{publication-place|{{{place|{{{location|}}}}}}}}} |{{{separator|{{{sep|,}}}}}}&#32;{{{publication-place|{{{place|{{{location|}}}}}}}}} }}{{     #if: {{{publisher|}}} |{{        #if: {{{publication-place|{{{place|{{{location|}}}}}}}}} | :        |{{{separator|{{{sep|,}}}}}} }}&#32;{{{publisher}}} }} }}{{

#if: {{{surname1|{{{last|{{{last1|{{{author|}}}}}}}}}|}}}{{{editorsurname1|{{{editor|{{{editor1|}}}}}}|}}} | |{{     #if: |{{{separator|{{{sep|,}}}}}}&#32;{{ #if:{{{yearNote|}}} |&#32;[{{{yearNote}}}] }}  }} }}{{

#if: {{{publication-date|}}} |{{    #ifeq: {{{publication-date|}}} | {{{date|}}} |    |{{        #if: {{{editor-surname1|{{{editor|{{{editor1|}}}}}}|}}} |{{          #if: {{{surname1|{{{last|{{{last1|{{{authors|{{{author1|{{{author|}}}}}}}}}}}}}}}|}}} |{{{separator|{{{sep|,}}}}}}&#32;{{{publication-date}}} |&#32;(published {{{publication-date}}}) }}       |{{           #if: {{{periodical|}}} |{{{separator|{{{sep|,}}}}}}&#32;{{{publication-date}}} |&#32;(published {{{publication-date}}}) }}     }}   }} }}{{

#if: {{{periodical|}}} | |{{     #if: {{{at|{{{p|{{{pages|{{{page|}}}}}}}}}|}}} |{{{separator|{{{sep|,}}}}}}&#32;{{ #if: {{{page|}}}|{{#if:{{{nopp|}}}p.&#32;}}}}{{ #if: {{{pages|}}}|{{#if:{{{nopp|}}}pp.&#32;}} }}{{{at|{{{p|{{{pages|{{{page|}}}}}}}}}}}} }} }}{{

|{{{separator|{{{sep|,}}}}}}&#32;{{citation/identifier |identifier=doi |input1={{{DOI||}}}  |input2={{{DOI|{{{doi|}}}Broken|}}} }} }}{{
 * if:

#if: {{{ID|}}} |{{    #if: {{{surname1|{{{last|{{{last1|{{{author|}}}}}}}}}|}}}{{{editorsurname1|{{{editor|{{{editor1|}}}}}}|}}}{{{chapter|{{{contribution|}}}}}}{{{periodical|}}}{{{title|}}}{{{transitalic|}}} |{{{separator|{{{sep|,}}}}}}&#32;{{{ID}}} |{{{ID}}} }} }}{{

#if: |{{{separator|{{{sep|,}}}}}}&#32;{{citation/identifier |identifier=isbn |input1={{{ISBN||}}} }} }}{{

#if: |{{{separator|{{{sep|,}}}}}}&#32;{{citation/identifier |identifier=issn |input1={{{ISSN||}}} }} }}{{

#if: |{{{separator|{{{sep|,}}}}}}&#32;{{citation/identifier |identifier=oclc |input1={{{OCLC||}}} }} }}{{

#if: |{{{separator|{{{sep|,}}}}}}&#32;{{citation/identifier |identifier=pmid |input1={{{PMID||}}} }} }}{{

#if: {{{PMC|}}} |{{    #if: {{{url|}}} |{{{separator|{{{sep|,}}}}}}&#32;{{citation/identifier |identifier=pmc |input1={{{PMC|}}} }} |{{only in print|{{{separator|{{{sep|,}}}}}}&#32;{{citation/identifier  |identifier=pmc |input1={{{PMC|}}} }} }} }} }}{{

#if: |{{{separator|{{{sep|,}}}}}}&#32;{{citation/identifier |identifier=bibcode |input1={{{bibcode|}}} }} }}{{

#if:{{{archiveurl|}}}{{{archivedate|}}} |{{{separator|{{{sep|,}}}}}}&#32;{{#ifeq:{{{sep}}}|.|A|a}}rchived{{ #if:{{{originalurl|}}}{{{chapterurl|}}} |{{#if:{{{archiveurl|}}}|&#32;from {{Citation/make link|{{{originalurl|{{{chapterurl|}}}}}}|the original}}}} }}{{   #if:{{{archivedate|}}} |&#32;on {{{archivedate}}} }}{{   #if:{{#if:{{{archiveurl|}}}||A}}{{#if:{{{originalurl|}}}{{{chapterurl|}}}||B}}{{#if:{{{archivedate|}}}||C}} |. {{citation error|nocat={{{template doc demo|}}} |If you specify, you must {{#if:{{{originalurl|}}}{{{chapterurl|}}}| also specify  |first specify  }}}} }} }} }}{{
 * if: {{{archive|}}}
 * {{{separator|{{{sep|,}}}}}}&#32;{{{archive}}}

#if: {{{title|}}}{{{chapter|{{{contribution|}}}}}}{{{trans_chapter|}}} | {{{separator|{{{sep|,}}}}}}&#32;{{ #if:{{{chapter-url|{{{chapterurl|{{{contribution-url|}}}}}}}}} |{{{chapter-url|{{{chapterurl|{{{contribution-url|}}}}}}}}} |{{{url}}} }}  |{{{separator|{{{sep|,}}}}}}&#32;{{ #if: {{{chapter-url|{{{chapterurl|{{{contribution-url|}}}}}}}}} |{{{chapter-url|{{{chapterurl|{{{contribution-url|}}}}}}}}} |{{{url}}} }} }}{{  #if: {{{accessdate|{{{access|}}}}}} | {{#ifeq:{{{separator|{{{sep|,}}}}}}|,|,&#32;r|.&#32;R}}etrieved {{{accessdate|{{{access|}}}}}} }} }}{{#if:{{{laysummary|}}} |{{{separator|{{{sep|,}}}}}}&#32;[{{{laysummary}}} Lay summary]{{#if: {{{laysource|}}}| – {{{laysource}}}}} }}{{#if:{{{laydate|}}} | &#32;({{{laydate}}}) }}{{#if:{{{quote|}}} |{{{separator|{{{sep|,}}}}}}&#32;"{{{quote}}}" }}{{{PS|}}} <!--<span class="Z3988" title="ctx_ver=Z39.88-2004&rft_val_fmt={{     #if: {{{periodical|}}}      |journal&rft.genre=article&rft.atitle={{urlencode:{{{title|}}}}}&rft.jtitle={{urlencode:{{{periodical|}}}}}      |book{{         #if: {{{chapter|{{{contribution|}}}}}}         |&rft.genre=bookitem&rft.btitle={{urlencode:{{{chapter|{{{contribution|}}}}}}}}&rft.atitle={{urlencode:{{{title|}}}}}         |&rft.genre=book&rft.btitle={{urlencode:{{{title|}}}}}       }}    }}{{     #if:{{{surname1|{{{surname|{{{last|{{{last1|{{{author|{{{author1|}}}}}}}}}}}}}}}|}}} |&rft.aulast={{urlencode:{{{surname1|{{{surname|{{{last|{{{last1|{{{author|{{{author1|}}}}}}}}}}}}}}}}}}}}   }}{{     #if: {{{surname1|{{{surname|{{{last|{{{last1|{{{author|{{{author1|}}}}}}}}}}}}}}}|}}} |&rft.au={{urlencode:{{{surname1|{{{surname|{{{last|{{{last1|{{{author|{{{author1|}}}}}}}}}}}}}}}}}}}}   }}{{      #if: {{{date|}}} |&rft.date={{urlencode:{{{date}}}}} }}{{     #if: {{{series|}}} |&rft.series={{urlencode:{{{series}}}}} }}{{     #if: {{{volume|}}} |&rft.volume={{urlencode:{{{volume}}}}} }}{{     #if: {{{at|{{{p|{{{page|{{{pages|}}}}}}}}}|}}} |&rft.pages={{urlencode:{{{at|{{{p|{{{page|{{{pages|}}}}}}}}}}}}}} }}{{     #if: {{{edition|}}} |&rft.edition={{urlencode:{{{edition}}}}} }}{{     #if: {{{publisher|}}} |&rft.pub={{urlencode:{{{publisher}}}}} }}{{     #if: {{{DOI|{{{doi|}}}|}}} |&rft_id=info:doi/{{urlencode:{{{DOI|{{{doi|}}}}}}}} }}{{     #if: {{{PMID|{{{pmid|}}}|}}} |&rft_id=info:pmid/{{urlencode:{{{PMID|{{{pmid|}}}}}}}} }}{{     #if: {{{bibcode|}}} |&rft_id=info:bibcode/ }}{{     #if: {{{OCLC|{{{oclc|}}}|}}} |&rft_id=info:oclcnum/{{urlencode:{{{OCLC|{{{oclc|}}}}}}}} }}{{     #if: {{{ISBN|{{{isbn|}}}|}}} |&rft.isbn={{urlencode:{{{ISBN|{{{isbn|}}}}}}}} }}{{     #if: {{{ISSN|{{{issn|}}}|}}} |&rft.issn={{urlencode:{{{ISSN|{{{issn|}}}}}}}} }}{{     #if: {{{url|}}}{{{chapter-url|{{{contribution-url|}}}}}}|&rft_id={{urlencode:{{{url|{{{chapter-url|{{{contribution-url|}}}}}}}}}}} }}&rfr_id=info:sid/en.wikipedia.org:"> -->
 * if: {{{url|}}}{{{chapter-url|{{{chapterurl|{{{contribution-url|}}}}}}}}}

The Template:Mcite book is a smaller variation of large Template:Cite book, to use fewer formatting resources in a big article which cannot fit the large template.