Difference between revisions of "Template:Citation/fcite book"
imported>Plastikspork |
imported>Anomalocaris m (properly close <span>) |
||
| (4 intermediate revisions by 3 users not shown) | |||
| Line 52: | Line 52: | ||
-->{{#if: | -->{{#if: | ||
{{{last2|{{{author2|}}} }}}<!--if last2 | {{{last2|{{{author2|}}} }}}<!--if last2 | ||
| − | -->|< | + | -->|<nowiki/>{{{author-separator|;}}} {{{last2|<!-- |
-->{{{author2|}}}}}}{{ | -->{{{author2|}}}}}}{{ | ||
#if:{{{first2|}}}|, {{{first2}}}}}{{ | #if:{{{first2|}}}|, {{{first2}}}}}{{ | ||
#if:{{{last3|{{{author3|}}} }}} | #if:{{{last3|{{{author3|}}} }}} | ||
| − | |< | + | |<nowiki/>{{{author-separator|;}}} {{{last3|{{{author3}}}}}}{{ |
#if:{{{first3|}}}|, {{{first3}}} }}{{ | #if:{{{first3|}}}|, {{{first3}}} }}{{ | ||
#if:{{{last4|{{{author4|}}} }}} | #if:{{{last4|{{{author4|}}} }}} | ||
| − | |< | + | |<nowiki/>{{{author-separator|;}}} {{{last4|{{{author4}}}}}}{{ |
#if:{{{first4|}}}|, {{{first4}}} }}{{ | #if:{{{first4|}}}|, {{{first4}}} }}{{ | ||
#if:{{{last5|{{{author5|}}} }}} | #if:{{{last5|{{{author5|}}} }}} | ||
| − | |< | + | |<nowiki/>{{{author-separator|;}}} {{{last5|{{{author5}}}}}}{{ |
#if:{{{first5|}}}|, {{{first5}}} }} | #if:{{{first5|}}}|, {{{first5}}} }} | ||
}}<!--endif last5-->{{ | }}<!--endif last5-->{{ | ||
#if:{{{last6|{{{author6|}}} }}} | #if:{{{last6|{{{author6|}}} }}} | ||
| − | |< | + | |<nowiki/>{{{author-separator|;}}} {{{last6|{{{author6}}}}}}{{ |
#if:{{{first6|}}}|, {{{first6}}} }} | #if:{{{first6|}}}|, {{{first6}}} }} | ||
}}<!--endif last6-->{{ | }}<!--endif last6-->{{ | ||
#if:{{{last7|{{{author7|}}} }}} | #if:{{{last7|{{{author7|}}} }}} | ||
| − | |< | + | |<nowiki/>{{{author-separator|;}}} {{{last7|{{{author7}}}}}}{{ |
#if:{{{first7|}}}|, {{{first7}}} }} | #if:{{{first7|}}}|, {{{first7}}} }} | ||
}}<!--endif last7-->{{ | }}<!--endif last7-->{{ | ||
#if:{{{last8|{{{author8|}}} }}} | #if:{{{last8|{{{author8|}}} }}} | ||
| − | |< | + | |<nowiki/>{{{author-separator|;}}} {{{last8|{{{author8}}}}}}{{ |
#if:{{{first8|}}}|, {{{first8}}} }} | #if:{{{first8|}}}|, {{{first8}}} }} | ||
}}<!--endif last8--> | }}<!--endif last8--> | ||
| Line 83: | Line 83: | ||
-->{{#if: | -->{{#if: | ||
{{{coauthors|{{{coauthor|}}} }}}<!--when more coauthors--> | {{{coauthors|{{{coauthor|}}} }}}<!--when more coauthors--> | ||
| − | |< | + | |<nowiki/>{{{author-separator|;}}} {{{coauthors|{{{coauthor}}}}}} |
}}<!--endif {coauthors..} | }}<!--endif {coauthors..} | ||
-------------------------------------------------------- Editors no authors | -------------------------------------------------------- Editors no authors | ||
| Line 96: | Line 96: | ||
}}{{ | }}{{ | ||
#if:{{{editor2|{{{editor2-last|}}} }}}<!--if editor2 set--> | #if:{{{editor2|{{{editor2-last|}}} }}}<!--if editor2 set--> | ||
| − | |< | + | |<nowiki/>{{{author-separator|;}}} <!--separator |
-->{{{editor2|{{{editor2-last}}}}}}{{ | -->{{{editor2|{{{editor2-last}}}}}}{{ | ||
#if:{{{editor2-first|}}}|, {{{editor2-first}}} | #if:{{{editor2-first|}}}|, {{{editor2-first}}} | ||
}}{{ | }}{{ | ||
#if:{{{editor3|{{{editor3-last|}}} }}}<!--if editor3 set--> | #if:{{{editor3|{{{editor3-last|}}} }}}<!--if editor3 set--> | ||
| − | |< | + | |<nowiki/>{{{author-separator|;}}} <!--separator |
-->{{{editor3|{{{editor3-last}}}}}}{{ | -->{{{editor3|{{{editor3-last}}}}}}{{ | ||
#if:{{{editor3-first|}}}|, {{{editor3-first}}} | #if:{{{editor3-first|}}}|, {{{editor3-first}}} | ||
}}{{ | }}{{ | ||
#if:{{{editor4|{{{editor4-last|}}} }}}<!--if editor4 set--> | #if:{{{editor4|{{{editor4-last|}}} }}}<!--if editor4 set--> | ||
| − | |< | + | |<nowiki/>{{{author-separator|;}}} <!--separator |
-->{{{editor4|{{{editor4-last}}}}}}{{ | -->{{{editor4|{{{editor4-last}}}}}}{{ | ||
#if:{{{editor4-first|}}}|, {{{editor4-first}}} }} | #if:{{{editor4-first|}}}|, {{{editor4-first}}} }} | ||
}}<!--endif {editor4|editor4-last} --> | }}<!--endif {editor4|editor4-last} --> | ||
}}<!--endif {editor3|editor3-last} | }}<!--endif {editor3|editor3-last} | ||
| − | -->< | + | --><nowiki/>{{{author-separator|;}}} eds.  |
| − | |<!--else no editor2-->< | + | |<!--else no editor2--><nowiki/>{{{author-separator|;}}} ed.  |
}}<!--endif {editor2|editor2-last} --> | }}<!--endif {editor2|editor2-last} --> | ||
}}<!--endif {author|last...} --> | }}<!--endif {author|last...} --> | ||
| Line 128: | Line 128: | ||
#if:{{{origyear|}}}| [{{{origyear}}}] | #if:{{{origyear|}}}| [{{{origyear}}}] | ||
}}{{{sep|.}}}  | }}{{{sep|.}}}  | ||
| − | |< | + | |<nowiki/>{{{author-separator|;}}} <!-- |
-->}}<!--endif {date|year|month} | -->}}<!--endif {date|year|month} | ||
-->}}<!--endif {last|author|last1|author1|editor...} | -->}}<!--endif {last|author|last1|author1|editor...} | ||
| Line 168: | Line 168: | ||
#if:{{{language|}}}| ({{{language}}}) }}{{ | #if:{{{language|}}}| ({{{language}}}) }}{{ | ||
#if:{{{chapter|{{{contribution|}}} }}} | #if:{{{chapter|{{{contribution|}}} }}} | ||
| − | | < | + | | <nowiki/>{{{sep|.}}} <!--space here |
----------------------------------------------------------- If editors later | ----------------------------------------------------------- If editors later | ||
-->{{ | -->{{ | ||
| Line 180: | Line 180: | ||
}}{{ | }}{{ | ||
#if:{{{editor2|{{{editor2-last|}}} }}}<!--if editor2 set--> | #if:{{{editor2|{{{editor2-last|}}} }}}<!--if editor2 set--> | ||
| − | |< | + | |<nowiki/>{{{author-separator|;}}} <!--separator |
-->{{{editor2|{{{editor2-last}}}}}}{{ | -->{{{editor2|{{{editor2-last}}}}}}{{ | ||
#if:{{{editor2-first|}}}|, {{{editor2-first}}} | #if:{{{editor2-first|}}}|, {{{editor2-first}}} | ||
}}{{ | }}{{ | ||
#if:{{{editor3|{{{editor3-last|}}} }}}<!--if editor3 set--> | #if:{{{editor3|{{{editor3-last|}}} }}}<!--if editor3 set--> | ||
| − | |< | + | |<nowiki/>{{{author-separator|;}}} <!--separator |
-->{{{editor3|{{{editor3-last}}}}}}{{ | -->{{{editor3|{{{editor3-last}}}}}}{{ | ||
#if:{{{editor3-first|}}}|, {{{editor3-first}}} | #if:{{{editor3-first|}}}|, {{{editor3-first}}} | ||
}}{{ | }}{{ | ||
#if:{{{editor4|{{{editor4-last|}}} }}}<!--if editor4 set--> | #if:{{{editor4|{{{editor4-last|}}} }}}<!--if editor4 set--> | ||
| − | |< | + | |<nowiki/>{{{author-separator|;}}} <!--separator |
-->{{{editor4|{{{editor4-last}}}}}}{{ | -->{{{editor4|{{{editor4-last}}}}}}{{ | ||
#if:{{{editor4-first|}}}|, {{{editor4-first}}} }} | #if:{{{editor4-first|}}}|, {{{editor4-first}}} }} | ||
}}<!--endif {editor4|editor4-last} --> | }}<!--endif {editor4|editor4-last} --> | ||
}}<!--endif {editor3|editor3-last} | }}<!--endif {editor3|editor3-last} | ||
| − | -->< | + | --><nowiki/>{{{author-separator|;}}} eds. |
| − | |<!--else no editor2-->< | + | |<!--else no editor2--><nowiki/>{{{author-separator|;}}} ed. |
}}<!--endif {editor2|editor2-last} --> | }}<!--endif {editor2|editor2-last} --> | ||
}}<!--endif {author|last...}--> | }}<!--endif {author|last...}--> | ||
| Line 223: | Line 223: | ||
|{{{location|London}}}{{ | |{{{location|London}}}{{ | ||
#if:{{{publisher|{{{agency|}}} }}} | #if:{{{publisher|{{{agency|}}} }}} | ||
| − | |< | + | |<nowiki/>: {{{publisher|{{{agency|[[Reuters]]}}}}}} }} |
|{{{publisher|{{{agency|[[Reuters]]}}}}}} | |{{{publisher|{{{agency|[[Reuters]]}}}}}} | ||
}}<!--endif location--> | }}<!--endif location--> | ||
| Line 279: | Line 279: | ||
}}{{<!-------------------------- PMID --> | }}{{<!-------------------------- PMID --> | ||
#if: {{{pmid|}}} | #if: {{{pmid|}}} | ||
| − | |{{{sep|.}}} [[PubMed Identifier|PMID]] [ | + | |{{{sep|.}}} [[PubMed Identifier|PMID]] [https://www.ncbi.nlm.nih.gov/pubmed/{{{pmid}}} {{{pmid}}}] |
}}{{<!-------------------------- DOI --> | }}{{<!-------------------------- DOI --> | ||
#if:{{{doi|}}} | #if:{{{doi|}}} | ||
| Line 428: | Line 428: | ||
}} | }} | ||
}}<!--endif unsupported parameters | }}<!--endif unsupported parameters | ||
| − | -->}}<noinclude><!-- | + | --></span>}}<noinclude><!-- |
----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ||
--NOTES: | --NOTES: | ||
| Line 461: | Line 461: | ||
--13Jul12 Optimized by checking 7 or 8 rare parameters in single #if. | --13Jul12 Optimized by checking 7 or 8 rare parameters in single #if. | ||
--13Jul12 Added parameters last1/first1... last3/first3 but warn if last4. | --13Jul12 Added parameters last1/first1... last3/first3 but warn if last4. | ||
| − | --13Jul12 Fixed by "< | + | --13Jul12 Fixed by "<nowiki/>" to allow any separator such as ";" or ":". |
--13Jul12 Added parameter "coauthor" same as plural "coauthors". | --13Jul12 Added parameter "coauthor" same as plural "coauthors". | ||
--13Jul12 Supported parameter "ref=harv" as in Cite_web, Cite_book, etc. | --13Jul12 Supported parameter "ref=harv" as in Cite_web, Cite_book, etc. | ||
Latest revision as of 10:50, 5 January 2020
| 30px | This page is currently inactive and is retained for historical reference. Either the page is no longer relevant or consensus on its purpose has become unclear. To revive discussion, seek broader input via a forum such as the village pump. |
{{{title}}}.
| Template:Stop | per Wikipedia:Templates for discussion/Log/2012 July 15#Template:Fcite, this suite of templates is only for use as a testbed, for helping to improve existing citation templates, and should be not deployed in article space. |
The Template:Citation/fcite book, as with {{Citation/fcite web}} and other templates in the Citation/fcite group, is a fast-cite alternative to {{cite book}} for use in large articles. To allow extreme speed, only the basic parameter names are supported, such as "last6=" or "first6=" rather than "surname6=" or "given6=" (etc.), and "author=" but not "authormask=". For rare parameters, the original cite templates can still be used, and mixed within an article. To view parameter names, see: Template:Citation/doc.
In articles which contain more than 300 formatted references, the speed of formatting a large article, during 2009, reached 30–60 seconds for logged-in users, so the Citation/fcite templates can be used to run 5x faster (6–12 seconds) when reformatting an article. Many large articles experienced similar long delays during 2009–2012, due to using numerous large templates. Also, there have been some cases where other large templates, in the same articles, have exceeded template resources, and so {Citation/fcite_web} or {Citation/fcite_news} could be used in those articles to allow hundreds more citations without exceeding the template limits.
Examples
The operation is very similar to {{cite web}} and related templates.
For using {{Citation/fcite_book}}:
- Markup: {{citation/fcite book|title=Life of Days |publisher=Acme Printing |date=May 1999
- | url=http://www.google.com | accessdate=1 June 2009}}
- Result: Life of Days. Acme Printing. May 1999. Retrieved 1 June 2009.
- Markup: {{cite book|title=Life of Days |publisher=Acme Printing |date=May 1999
- | url=http://www.google.com | accessdate=1 June 2009}}
- Result: Life of Days. Acme Printing. May 1999. Retrieved 1 June 2009.
For a chapter, or short story, in the book:
- Markup: {{citation/fcite book|title=Chapter 2: Dawn |work=Life of Days |publisher=Acme Ink
- |date=May 1999| url=https://books.google.com | accessdate=1 June 2009}}
- Result: "Chapter 2: Dawn". Acme Ink. May 1999. Retrieved 1 June 2009.
- Markup: {{cite book|title=Chapter 2: Dawn |work=Life of Days |publisher=Acme Ink
- |date=May 1999| url=https://books.google.com | accessdate=1 June 2009}}
- Result: Chapter 2: Dawn. Life of Days. Acme Ink. May 1999. Retrieved 1 June 2009.
Related templates
The various templates within the Citation/fcite group include:
- Template:Citation/fcite web – for webpages, with "url=" link
- Template:Citation/fcite book – for books, with optional "url=" link
- Template:Citation/fcite news – for news articles, with "url=" link
- Template:Citation/fcite journal – for journal articles, with issue/format
- Template:Citation/fcite – puts a Harvard-ref anchor, linked from {{Harvnb}}
See also
- Template:Cite web – the massive template with many options
- Template:Citation – large template to put Harvard-ref anchors
| The above documentation is transcluded from Template:Citation/fcite book/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Subpages of this template. |