From WikiChip
Difference between revisions of "Template:cite book"
(Created page with "{{#if:{{{last|}}}|{{{last}}}, |}}{{#if:{{{first|}}}|{{{first}}}.|}}{{#if:{{{middle|}}}| {{{middle}}}.|}} ''<cite>{{{title}}}</cite>''. ({{{year}}}). {{{publisher}}}....") |
|||
Line 1: | Line 1: | ||
− | {{#if:{{{last|}}}|{{{last}}},& | + | <includeonly><cite class="book" style="font-style:normal" {{ |
+ | #if: {{{ref|}}} | ||
+ | |{{#ifeq:{{{ref}}}|none||id="{{{ref}}}"}} | ||
+ | |{{#if:{{{last|}}} | {{#if:{{{year|}}} | id="Reference-{{{last}}}-{{{year}}}" }} }} | ||
+ | }}>{{ | ||
+ | #if: {{{author|}}}{{{last|}}} | ||
+ | | {{ | ||
+ | #if: {{{authorlink|}}} | ||
+ | | [[{{{authorlink}}}|{{ | ||
+ | #if: {{{last|}}} | ||
+ | | {{{last}}}{{ #if: {{{first|}}} | , {{{first}}} }} | ||
+ | | {{{author}}} | ||
+ | }}]] | ||
+ | | {{ | ||
+ | #if: {{{last|}}} | ||
+ | | {{{last}}}{{ #if: {{{first|}}} | , {{{first}}} }} | ||
+ | | {{{author}}} | ||
+ | }} | ||
+ | }} | ||
+ | }}{{ | ||
+ | #if: {{{author|}}}{{{last|}}} | ||
+ | | {{ #if: {{{coauthors|}}} | <nowiki>;</nowiki> {{{coauthors}}} }} | ||
+ | }}{{ | ||
+ | #if: {{{origdate|}}} | ||
+ | |  <nowiki>[</nowiki>{{{origdate}}}] | ||
+ | | {{ | ||
+ | #if: {{{origyear|}}} | ||
+ | | {{ | ||
+ | #if: {{{origmonth|}}} | ||
+ | |  <nowiki>[</nowiki>{{{origmonth}}} {{{origyear}}}] | ||
+ | |  <nowiki>[</nowiki>{{{origyear}}}] | ||
+ | }} | ||
+ | }} | ||
+ | }}{{ | ||
+ | #if: {{{date|}}} | ||
+ | |  ({{#ifeq:{{#time:Y-m-d|{{{date}}}}}|{{{date}}}|{{{date}}}|{{#ifeq:{{#time:Y-m-d|{{{date}}}}}|1970-01-01|{{{date}}}|{{{date}}}}}}}) | {{ | ||
+ | #if: {{{year|}}} | ||
+ | | {{ | ||
+ | #if: {{{month|}}} | ||
+ | |  ({{{month}}} {{{year}}}) | ||
+ | |  ({{{year}}}) | ||
+ | }} | ||
+ | }} | ||
+ | }}{{ #if: {{{author|}}}{{{last|}}} | . | ||
+ | }}{{ | ||
+ | #if: {{{chapter|}}} | ||
+ | |  "{{ | ||
+ | #if: {{{chapterurl|}}} | ||
+ | | [{{{chapterurl}}} {{{chapter}}}] | ||
+ | | {{{chapter}}} | ||
+ | }}",}}{{ | ||
+ | #if: {{{editor|}}} | ||
+ | |  in {{{editor}}}: | ||
+ | }} <i>{{ | ||
+ | #if: {{{url|}}} | [{{{url}}} {{{title}}}] | {{{title}}} | ||
+ | }}</i>{{ | ||
+ | #if: {{{format|}}} |  ({{{format}}}) | ||
+ | }}{{ | ||
+ | #if: {{{others|}}} | , {{{others}}} | ||
+ | }}{{ | ||
+ | #if: {{{edition|}}} | , {{{edition}}} | ||
+ | }}{{ | ||
+ | #if: {{{series|}}} | , {{{series}}} | ||
+ | }}{{ | ||
+ | #if: {{{volume|{{{number|}}}}}} |  '''{{{volume|{{{number}}}}}}''' | ||
+ | }}{{ | ||
+ | #if: {{{language|}}} |  (in {{{language}}}) | ||
+ | }}{{ | ||
+ | #if: {{{publisher|}}} | ||
+ | | {{#if: {{{format|}}}{{{others|}}}{{{edition|}}} | ,  | .  }}{{ | ||
+ | #if: {{{location|}}} | ||
+ | | {{{location}}}:  | ||
+ | }}{{{publisher}}} | ||
+ | }}{{ | ||
+ | #if: {{{pages|{{{page|}}}}}} | , {{{pages|{{{page}}}}}} | ||
+ | }}{{ | ||
+ | #if: {{{doi|}}} | . [[Digital object identifier|doi]]:[http://dx.doi.org/{{{doi|{{{doilabel|}}}}}} {{{doi}}}] | ||
+ | }}{{ | ||
+ | #if: {{{id|}}} | . {{{id}}} | ||
+ | }}{{ | ||
+ | #if: {{{isbn|}}} | . ISBN {{{isbn}}} | ||
+ | }}{{ | ||
+ | #if: {{{oclc|}}} | . [[Online Computer Library Center|OCLC]] [http://worldcat.org/oclc/{{urlencode:{{{oclc}}}}} {{{oclc}}}] | ||
+ | }}{{ | ||
+ | #if: {{{url|}}}{{{chapterurl|}}} | {{ | ||
+ | #if: {{{accessdate|}}} | | ||
+ | <span class="reference-accessdate">. Retrieved on {{{accessdate}}}</span> | ||
+ | | {{ | ||
+ | #if: {{{accessyear|}}} | ||
+ | | <span class="reference-accessdate">. Retrieved {{ | ||
+ | #if: {{{accessmonth|}}} | ||
+ | | on {{{accessmonth}}} {{{accessyear}}} | ||
+ | | during {{{accessyear}}} | ||
+ | }}</span>}} | ||
+ | }} | ||
+ | }}.{{ #if: {{{quote|}}} | "{{{quote}}}" | ||
+ | }}</cite></includeonly> |